/* 내려받기 페이지의 제품 움직임(/demo.js). 실제 카톡 화면 대신 회색 막대(스켈레톤)와 지어낸 방 이름만 쓴다. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.download-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; margin-bottom: 40px; }
.download-hero .page-heading { margin-bottom: 0; }

.demo { margin: 0; min-width: 0; }
.demo-stage { position: relative; font-size: 12px; line-height: 1.5; color: var(--ink); user-select: none; padding-bottom: 28px; }
.demo s { display: block; height: 8px; border-radius: 4px; background: var(--line); text-decoration: none; margin-top: 7px; }
.demo s.short { width: 55%; }

.demo-window { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 50px -24px rgba(0,0,0,.35); overflow: hidden; }
.demo-titlebar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 12px; }
.demo-titlebar b { flex: 1; text-align: center; font-weight: 650; }
.demo-dots { display: flex; gap: 5px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo-quit { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.demo-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.demo-tab { padding: 6px 10px; border-radius: 6px 6px 0 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.demo[data-scene="rooms"] .demo-tab[data-tab="rooms"], .demo[data-scene="results"] .demo-tab[data-tab="rooms"], .demo[data-scene="ai"] .demo-tab[data-tab="rooms"], .demo[data-scene="auto"] .demo-tab[data-tab="auto"] { color: var(--ink); border-color: var(--accent); }

.demo-body { position: relative; height: 270px; }
.demo-pane { position: absolute; inset: 0; padding: 14px; transition: opacity .4s, transform .4s; }
.demo-pane-rooms { display: grid; grid-template-columns: 38% 1fr; gap: 14px; }
.demo-pane-auto { opacity: 0; transform: translateX(16px); pointer-events: none; display: grid; gap: 12px; align-content: start; }
.demo[data-scene="auto"] .demo-pane-rooms { opacity: 0; transform: translateX(-16px); }
.demo[data-scene="auto"] .demo-pane-auto { opacity: 1; transform: none; }

.demo-label { margin: 0 0 6px; font-weight: 650; }
.demo-rooms { list-style: none; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.demo-rooms li { padding: 2px 0; }
.demo-rooms .demo-more s { width: 60%; margin-top: 6px; }
.demo-button { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 7px; background: var(--ink); color: var(--paper); font-weight: 650; transition: transform .12s; }
.demo-button.is-pressed { transform: scale(.94); }
.demo-progress { display: block; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.demo.is-reading .demo-progress { opacity: 1; }
.demo.is-reading .demo-progress i { width: 100%; transition: width 1.8s linear; }

.demo-results { position: relative; display: grid; gap: 8px; align-content: start; }
.demo-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.demo-card p { display: flex; justify-content: space-between; margin: 0; }
.demo-card em { font-style: normal; font-weight: 700; background: var(--accent-soft); border-radius: 999px; padding: 0 8px; }
.demo-card s { margin-top: 6px; }
.demo-copy { justify-self: start; opacity: 0; transition: opacity .35s; }
.demo:is([data-scene="results"], [data-scene="ai"]) .demo-card, .demo:is([data-scene="results"], [data-scene="ai"]) .demo-copy { opacity: 1; transform: none; }
.demo:is([data-scene="results"], [data-scene="ai"]) .demo-card:nth-child(2) { transition-delay: .15s; }
.demo:is([data-scene="results"], [data-scene="ai"]) .demo-card:nth-child(3) { transition-delay: .3s; }
.demo:is([data-scene="results"], [data-scene="ai"]) .demo-copy { transition-delay: .45s; }
.demo-toast { position: absolute; left: 0; bottom: -26px; font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.demo.is-copied .demo-toast { opacity: 1; }

.demo-ai { position: absolute; right: -14px; bottom: 0; width: 58%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(0,0,0,.4); padding: 12px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; }
.demo[data-scene="ai"] .demo-ai { opacity: 1; transform: none; }
.demo-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.demo-ai-icon { width: 18px; height: 18px; border-radius: 6px; background: var(--line); }
.demo-ai-paste { margin-left: 22%; padding: 4px 10px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.demo-ai-answer { margin-top: 10px; opacity: 0; transition: opacity .4s; }
.demo-ai-answer p { margin: 4px 0 0; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); font-weight: 600; }
.demo.is-answered .demo-ai-answer { opacity: 1; }

.demo-rule { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; position: relative; }
.demo-rule p { margin: 0; padding-right: 64px; }
.demo-rule s { width: 70%; }
.demo-watch { position: absolute; top: 10px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; }
.demo-watch i { width: 7px; height: 7px; border-radius: 50%; background: #2fa84f; }
.demo-chat { display: grid; gap: 10px; padding: 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); min-height: 130px; align-content: start; }
.demo-bubble { max-width: 75%; padding: 7px 11px; border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.demo-in { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.demo-name { display: block; width: 42px; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 5px; }
.demo-out { justify-self: end; background: var(--accent-soft); border-top-right-radius: 4px; }
.demo-out small { display: block; font-size: 10px; color: var(--muted); }
.demo-in mark { background: transparent; color: inherit; border-radius: 3px; transition: background .3s; }
.demo.is-incoming .demo-in, .demo.is-replied .demo-out { opacity: 1; transform: none; }
.demo.is-hit .demo-in mark { background: var(--accent); }

.demo-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; transform: translate(70%, 50%); transition: transform .9s cubic-bezier(.45,.05,.25,1); z-index: 3; }
.demo-cursor::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 0 78%, 22% 60%, 38% 96%, 52% 90%, 37% 55%, 66% 55%); filter: drop-shadow(0 0 1px var(--paper)); }
.demo-cursor::after { content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.4); }
.demo-cursor.is-click::after { animation: demo-click .45s ease-out; }
@keyframes demo-click { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

.demo-caption { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 44px; }
.demo-step { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }
.demo-text { flex: 1; }
.demo-pause { flex: 0 0 auto; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.demo-pause:hover { border-color: var(--muted); }
.demo.is-paused .demo-stage * { transition: none !important; animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .demo-stage *, .demo-stage *::after { transition: none !important; animation: none !important; }
  .demo-cursor, .demo-pause { display: none; }
}
@media (max-width: 1000px) { .download-hero { grid-template-columns: 1fr; gap: 28px; } .demo { max-width: 600px; } }
@media (max-width: 760px) {
  .demo-stage { font-size: 11px; }
  .demo-body { height: 250px; }
  .demo-pane-rooms { grid-template-columns: 40% 1fr; gap: 10px; padding: 12px; }
  .demo-ai { right: -4px; width: 72%; }
  .demo-caption { font-size: 13px; }
}
