/* 전시회 부스 오디오 가이드 견본 설명(/audioguide/expo) — views/preview_audioguide_expo.ejs 전용 (2026-10-14)
   바탕 글꼴·색·구역 리듬은 audio-guide.css(.ag 토큰)·휴대폰 틀은 qr-phone.css 를 그대로 쓰고, 여기는 이 페이지만의 칸.
   ① 찍어 볼 QR  ② 실제 관람객 화면(iframe — 진짜 /audioguide/expo/tour 를 휴대폰 틀 안에 줄여 띄움)  ③ 목소리 견본 표
   ④ 운영자 화면(실제 화면 캡처 + 견본 운영자 화면 /audioguide/expo/admin 으로)  ⑤ 만들고 고치는 순서
   ⑥ 비용(맞춤 견적 없음 — 이 견본에 든 글자 × 요금제)  ⑦ 질문  ⑧ 시작
   바탕은 구역마다 번갈아: 흰 → 회색 → 흰 → 옅은 회색 → 흰 → 회색(비용) → 흰(질문) → 연보라(시작) */

/* ① 첫 화면 */
.ex-hero { padding: 64px 0 88px; }
.ex-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ex-eyebrow { margin-bottom: 16px; font-size: 15px; line-height: 1.4; font-weight: 750; color: var(--ag-brand); }
.ex-hero .ag-lead { max-width: 560px; }
.ex-scan { margin-top: 32px; display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--ag-line-2); box-shadow: 0 18px 40px -28px rgba(17, 18, 20, 0.35); max-width: 520px; }
.ex-qr { flex-shrink: 0; width: 132px; height: 132px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--ag-line); }
.ex-qr svg { display: block; width: 100%; height: 100%; }
.ex-scan b { display: block; font-size: 18px; line-height: 1.45; font-weight: 750; letter-spacing: -0.015em; word-break: keep-all; }
.ex-scan small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ag-cap); word-break: keep-all; }
.ex-scan-url { margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--ag-brand); word-break: break-all; }
.ex-open { display: none; }
.ex-hero-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.ex-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--ag-cap); word-break: keep-all; }
.ex-hero-photo { margin: 0; }
.ex-hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }

/* ② 실제 관람객 화면 — 진짜 페이지를 390px 폭으로 띄우고 휴대폰 화면 폭에 맞춰 줄인다(--s = 화면 폭 / 390, JS) */
.ex-visitor { background: var(--ag-gallery); }
.ex-visitor-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 88px; align-items: center; }
.ex-live-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ex-live { max-width: 340px; }
.ex-live .ag-screen { padding: 0; background: #fff; }
.ex-live iframe { position: absolute; left: 0; top: 11.5cqw; width: 390px; border: 0; transform: scale(var(--s, 0.8)); transform-origin: 0 0; background: #fff; }
.ex-live-open { display: none; }
.ex-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ex-langs-label { width: 100%; text-align: center; font-size: 13px; font-weight: 700; color: var(--ag-cap); }
.ex-lang { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ag-line-2); background: #fff; font: inherit; font-size: 14px; font-weight: 650; color: var(--ag-ink); cursor: pointer; }
.ex-lang.is-on { border-color: var(--ag-brand); background: var(--ag-band); color: var(--ag-band-ink); }
.ex-steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: ex; }
.ex-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--ag-line); }
.ex-steps li:last-child { border-bottom: 1px solid var(--ag-line); }
.ex-n { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--ag-ink); color: #fff; font-size: 14px; font-weight: 800; }
.ex-steps b { display: block; font-size: 18px; line-height: 1.4; font-weight: 750; letter-spacing: -0.015em; word-break: keep-all; }
.ex-steps div > span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.7; color: var(--ag-sub); word-break: keep-all; }

/* ③ 목소리 견본 */
.ex-voices-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: start; }
.ex-vtable { width: 100%; border-collapse: collapse; }
.ex-vtable th { padding: 0 0 12px; text-align: left; font-size: 13.5px; font-weight: 700; color: var(--ag-cap); border-bottom: 1px solid var(--ag-line-2); }
.ex-vtable td { padding: 14px 0; border-bottom: 1px solid var(--ag-line); vertical-align: middle; }
.ex-vtable td:first-child { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.ex-vplay { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 16px 4px 4px; border-radius: 999px; border: 1px solid var(--ag-line-2); background: #fff; font: inherit; color: var(--ag-ink); cursor: pointer; }
.ex-vplay i { width: 36px; height: 36px; border-radius: 999px; background: var(--ag-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ex-vplay .qi { width: 20px; height: 20px; fill: currentColor; }
.ex-vplay .qi-pause, .ex-vplay.is-playing .qi-play { display: none; }
.ex-vplay.is-playing .qi-pause { display: block; }
.ex-vplay.is-playing { border-color: var(--ag-brand); }
.ex-vplay.is-playing i { background: var(--ag-brand); }
.ex-vplay span { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.ex-vplay b { font-size: 14.5px; font-weight: 700; }
.ex-vplay small { font-size: 12.5px; color: var(--ag-cap); font-variant-numeric: tabular-nums; }
.ex-how { padding: 24px; border-radius: 20px; background: var(--ag-gallery); }
.ex-how h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.015em; }
.ex-how dl { margin: 14px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; }
.ex-how dt { font-size: 14px; font-weight: 700; color: var(--ag-cap); white-space: nowrap; }
.ex-how dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ag-ink); word-break: keep-all; }

/* ④ 운영자 화면 — 실제 화면 캡처. 넓은 화면 = 왼쪽 단계 탭 + 오른쪽 큰 화면 한 장(글씨가 읽히는 크기),
   스크립트가 없거나 휴대폰이면 다섯 장을 차례로 보여 준다(.is-ready 는 스크립트가 붙인다) */
.ex-admin { background: var(--ag-soft); }
.ex-tour { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
.ex-tour-tabs { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; }
.ex-tour-tab { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; font: inherit; font-size: 16px; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; color: var(--ag-sub); text-align: left; cursor: pointer; word-break: keep-all; }
.ex-tour-tab .ex-n { background: #fff; color: var(--ag-sub); border: 1px solid var(--ag-line-2); }
.ex-tour-tab:hover { background: rgba(255, 255, 255, 0.7); color: var(--ag-ink); }
.ex-tour-tab.is-on { background: #fff; border-color: var(--ag-line-2); color: var(--ag-ink); box-shadow: 0 12px 28px -22px rgba(17, 18, 20, 0.45); }
.ex-tour-tab.is-on .ex-n { background: var(--ag-brand); border-color: var(--ag-brand); color: #fff; }
.ex-tour-tab:focus-visible { outline: 2px solid var(--ag-brand); outline-offset: 2px; }
.ex-tour-view { min-width: 0; }
.ex-tour-shot { margin: 0; }
.ex-tour-shot + .ex-tour-shot { margin-top: 56px; }
.ex-tour.is-ready .ex-tour-shot + .ex-tour-shot { margin-top: 0; }
.ex-tour.is-ready .ex-tour-shot:not(.is-on) { display: none; }
.ex-tour-head { display: none; }
.ex-tour-zoom { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--ag-line-2); background: #fff; box-shadow: 0 28px 56px -40px rgba(17, 18, 20, 0.5); cursor: zoom-in; }
.ex-tour-img { display: block; width: 100%; height: auto; }
/* 잘라 낸 칸(번역문 고치기) — 다른 화면과 같은 틀(1000:620)·같은 글씨 크기로 가운데에 */
.ex-tour-zoom.is-narrow { display: flex; justify-content: center; aspect-ratio: 1000 / 620; background: var(--ag-gallery); }
.ex-tour-zoom.is-narrow .ex-tour-img { width: auto; height: 100%; max-width: 100%; background: #fff; box-shadow: 0 0 0 1px var(--ag-line-2); }
.ex-tour-desc { margin: 18px 0 0; max-width: 680px; font-size: 16px; line-height: 1.7; color: var(--ag-sub); word-break: keep-all; }

/* ④ 견본 운영자 화면으로 */
.ex-admin-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ex-admin-cta span { font-size: 14px; line-height: 1.55; color: var(--ag-cap); word-break: keep-all; }

/* ⑤ 만들고 고치는 순서 */
.ex-flow { width: 100%; border-collapse: collapse; }
.ex-flow th { padding: 0 16px 12px 0; text-align: left; font-size: 13.5px; font-weight: 700; color: var(--ag-cap); border-bottom: 1px solid var(--ag-line-2); }
.ex-flow td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--ag-line); vertical-align: top; font-size: 15.5px; line-height: 1.65; color: var(--ag-sub); word-break: keep-all; }
.ex-flow td:first-child { width: 28%; font-size: 17px; font-weight: 750; color: var(--ag-ink); letter-spacing: -0.01em; }
.ex-flow td:last-child { width: 22%; font-weight: 700; color: var(--ag-brand); }
.ex-flow tr.is-key td { background: var(--ag-band); }
.ex-flow tr.is-key td:first-child { padding-left: 14px; border-radius: 12px 0 0 12px; }
.ex-flow tr.is-key td:last-child { border-radius: 0 12px 12px 0; }

/* ⑥ 비용 — 이 견본에 든 글자(언어별) · 요금제별 한 달 글자와 남는 글자(맞는 요금제 강조) */
.ex-cost { background: var(--ag-gallery); }
.ex-cost-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ex-chars { padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--ag-line); }
.ex-chars h3 { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.ex-chars dl { margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
.ex-chars dt { font-size: 15px; color: var(--ag-sub); }
.ex-chars dd { margin: 0; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ex-chars .ex-chars-sum { padding-top: 10px; border-top: 1px solid var(--ag-line-2); font-weight: 800; color: var(--ag-ink); }
.ex-cost-table-wrap { overflow-x: auto; border-radius: 20px; background: #fff; border: 1px solid var(--ag-line); }
.ex-cost-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.ex-cost-table th, .ex-cost-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ag-line); word-break: keep-all; font-variant-numeric: tabular-nums; vertical-align: middle; }
.ex-cost-table thead th { font-size: 13.5px; font-weight: 700; color: var(--ag-cap); }
.ex-cost-table tbody th { font-weight: 800; color: var(--ag-ink); }
.ex-cost-table td { color: var(--ag-sub); font-weight: 600; }
.ex-cost-table tbody tr:last-child th, .ex-cost-table tbody tr:last-child td { border-bottom: 0; }
.ex-cost-table tr.is-pick th, .ex-cost-table tr.is-pick td { background: var(--ag-band); color: var(--ag-band-ink); }
.ex-pick { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--ag-brand); }
.ex-cost .ag-cap { margin-top: 16px; }
.ex-cost-cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ⑦ 질문 — 비용(회색) 다음이라 흰 바탕 */
.ex .ag-faq { background: #fff; }

/* ⑧ 시작 */
.ex-end { text-align: center; background: var(--ag-band); }
.ex-end .ag-lead { margin-left: auto; margin-right: auto; }
.ex-end-cta { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ex-tel { margin-top: 18px; font-size: 15px; color: var(--ag-cap); }
.ex-tel a { color: var(--ag-ink); font-weight: 700; white-space: nowrap; }

@media (max-width: 1080px) {
  .ex-hero-grid, .ex-visitor-grid, .ex-voices-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ex-cost-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ex-live-col { order: 2; }
  /* 태블릿 — 단계 탭을 화면 위 한 줄(옆으로 밀기)로 */
  .ex-tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ex-tour-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px; }
  .ex-tour-tabs::-webkit-scrollbar { display: none; }
  .ex-tour-tab { width: auto; flex: 0 0 auto; grid-template-columns: 26px auto; padding: 10px 14px; font-size: 15px; white-space: nowrap; }
  .ex-tour-tab .ex-n { width: 26px; height: 26px; font-size: 13px; }
}
@media (max-width: 720px) {
  .ex-hero { padding: 32px 0 56px; }
  .ex-scan { display: none; }
  .ex-open { display: inline-flex; }
  .ex-hero-cta .btn { flex: 1 1 100%; }
  .ex-admin-cta .btn, .ex-cost-cta .btn, .ex-end-cta .btn { flex: 1 1 100%; }
  .ex-live { width: min(300px, 100%); }
  /* 좁은 화면 = 이미 휴대폰 — 틀 안 화면을 손가락으로 굴리면 페이지가 안 내려가니, 틀은 그림으로 두고 크게 여는 단추를 얹는다 */
  .ex-live iframe { pointer-events: none; }
  .ex-live-open { display: flex; position: absolute; z-index: 4; left: 50%; bottom: 8%; transform: translateX(-50%); align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #181a1f; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 28px -12px rgba(17, 18, 20, 0.6); }
  /* 휴대폰 — 탭 없이 다섯 장을 차례로(제목 → 화면 → 설명). 화면을 누르면 큰 그림이 열려 손가락으로 키워 본다 */
  .ex-tour-tabs { display: none; }
  .ex-tour.is-ready .ex-tour-shot:not(.is-on) { display: block; }
  .ex-tour.is-ready .ex-tour-shot + .ex-tour-shot, .ex-tour-shot + .ex-tour-shot { margin-top: 44px; }
  .ex-tour-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; line-height: 1.4; letter-spacing: -0.015em; word-break: keep-all; }
  .ex-tour-head b { font-weight: 750; }
  .ex-tour-head .ex-n { flex-shrink: 0; }
  .ex-tour-zoom { border-radius: 10px; }
  .ex-tour-zoom.is-narrow { display: block; aspect-ratio: auto; background: #fff; }
  .ex-tour-zoom.is-narrow .ex-tour-img { width: 100%; height: auto; box-shadow: none; }
  .ex-tour-desc { margin-top: 12px; font-size: 15.5px; }
  .ex-flow thead { display: none; }
  .ex-flow tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--ag-line); }
  .ex-flow td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .ex-flow tr.is-key { padding: 14px; border-radius: 12px; background: var(--ag-band); }
  .ex-flow tr.is-key td { background: none; padding-left: 0; }
  .ex-vtable th:not(:first-child) { display: none; }
  .ex-vtable td { display: block; padding: 6px 0; border: 0; }
  .ex-vtable tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--ag-line); }
}
