:root {
  --night: #0d1222;
  --night-2: #151c33;
  --night-3: #1f2944;
  --hanji: #f5efe4;
  --hanji-2: #ebe2d2;
  --hanji-3: #ded2bd;
  --ink: #1b1712;
  --ink-2: #3c342b;
  --muted: #6e6457;
  --line: rgba(27, 23, 18, 0.12);
  --red: #c63f2a;
  --red-deep: #9c2d1d;
  --blue: #2a5596;
  --blue-deep: #1d3d70;
  --gold: #efbf62;
  --gold-2: #f7d58f;
  --jade: #2e6a5c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 23, 18, 0.06), 0 12px 32px -12px rgba(27, 23, 18, 0.22);
  --display: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--hanji);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
body.is-dark { background: var(--night); color: #efe9de; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───── 머리 */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 0 32px;
  background: rgba(245, 239, 228, 0.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
body.is-dark .nav, .nav.is-over-dark { background: rgba(13, 18, 34, 0.55); border-color: rgba(255, 255, 255, 0.08); color: #f3ece0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 34px; }
.brand small { font-family: var(--body); font-weight: 500; font-size: 12px; opacity: .6; letter-spacing: 0; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; opacity: .78;
  transition: opacity .2s, background .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; background: rgba(27, 23, 18, 0.07); }
body.is-dark .nav-links a.is-active, .nav.is-over-dark .nav-links a.is-active { background: rgba(255, 255, 255, 0.1); }

.tabbar { display: none; }

main { min-height: 100vh; }
.view { display: none; }
.view.is-on { display: block; animation: fadein .45s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wrap { width: min(1120px, 100% - 64px); margin: 0 auto; }
.wrap-narrow { width: min(760px, 100% - 64px); margin: 0 auto; }

/* ───── 공통 글자 */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--red); text-transform: uppercase; }
body.is-dark .eyebrow { color: var(--gold); }
.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.18; letter-spacing: -0.02em; margin: 14px 0 18px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; letter-spacing: -0.015em; margin: 10px 0 14px; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.35; margin: 0 0 8px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 640px; }
body.is-dark .lead { color: rgba(243, 236, 224, 0.82); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.src { font-size: 13px; color: var(--muted); }

/* ───── 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(239, 191, 98, 0); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(198, 63, 42, 0.18), 0 10px 28px -8px rgba(198, 63, 42, 0.6); }
.btn-glow { background: var(--gold); color: var(--night); }
.btn-glow:hover { box-shadow: 0 0 0 4px rgba(239, 191, 98, 0.22), 0 0 36px rgba(239, 191, 98, 0.55); }
.btn-ghost { background: transparent; border-color: var(--line); }
body.is-dark .btn-ghost, .on-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #f3ece0; }
.btn-ghost:hover { background: rgba(27, 23, 18, 0.05); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fffaf2; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--hanji); border-color: var(--ink); }

/* ───── 홈 히어로 */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); color: #f3ece0; }
.hero-map { position: absolute; inset: 0; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 12% 70%, rgba(13, 18, 34, 0.92), rgba(13, 18, 34, 0.25) 60%, rgba(13, 18, 34, 0) 80%),
    linear-gradient(180deg, rgba(13, 18, 34, 0.55) 0%, rgba(13, 18, 34, 0) 28%, rgba(13, 18, 34, 0) 70%, rgba(13, 18, 34, 0.9) 100%);
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(56px, 12vh, 120px); }
.hero-copy .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { position: absolute; right: 24px; bottom: 18px; font-size: 12px; opacity: .55; }

/* ───── 섹션 */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--night); color: #f3ece0; }
.section-paper { background: var(--hanji-2); }
.section-head { margin-bottom: 40px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
}
.stat-value { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); font-weight: 700; color: var(--red); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-weight: 600; font-size: 16px; }
.stat-note { font-size: 14px; color: var(--ink-2); }
.stat .src { margin-top: auto; padding-top: 10px; }

.bars { margin-top: 44px; background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(18px, 3vw, 36px); box-shadow: var(--shadow); }
.bars-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; margin-bottom: 18px; }
.bar-row { display: grid; grid-template-columns: 132px 1fr 88px; gap: 14px; align-items: center; padding: 7px 0; }
.bar-name { font-size: 15px; font-weight: 500; }
.bar-track { height: 14px; border-radius: 99px; background: var(--hanji-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), #e2724f); width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar-row.is-hanok .bar-fill { background: var(--ink-2); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-2); color: #f3ece0; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s ease; }
.step:hover img { transform: scale(1.04); }
.step::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 18, 34, 0) 25%, rgba(13, 18, 34, 0.94) 78%); }
.step-body { padding: 26px; }
.step-num { font-family: var(--display); color: var(--gold); font-size: 15px; letter-spacing: .06em; }
.step p { margin: 6px 0 16px; color: rgba(243, 236, 224, 0.82); font-size: 15px; }

.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tech-card { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 28px; background: var(--night-2); }
.tech-card h3 { font-family: var(--display); margin: 0 0 14px; font-size: 22px; }
.tech-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tech-card li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; font-size: 15px; color: rgba(243, 236, 224, 0.86); }
.tech-card li b { color: var(--gold-2); font-weight: 600; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 24px; background: var(--night); color: #f3ece0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url(../img/alley-dusk.jpg) center/cover; opacity: .28; }
.cta-band > * { position: relative; }

footer { padding: 48px 0 120px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: grid; gap: 10px; }

/* ───── 앱 화면 공통 */
.page { padding: calc(var(--nav-h) + 40px) 0 96px; }
.page-head { margin-bottom: 28px; }
.page-head .h2 { margin-top: 6px; }
.panel { background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
textarea, input[type=text], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--hanji-3);
  border-radius: var(--radius-sm); padding: 14px 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
textarea:focus, input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(198, 63, 42, 0.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.mic {
  width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer; flex: none;
  background: radial-gradient(circle at 50% 40%, #e2553c, var(--red-deep)); color: #fff;
  box-shadow: 0 0 0 0 rgba(198, 63, 42, 0.4); display: grid; place-items: center; transition: transform .15s;
}
.mic svg { width: 30px; height: 30px; }
.mic.is-rec { animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 63, 42, 0.45); } 70% { box-shadow: 0 0 0 22px rgba(198, 63, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 63, 42, 0); } }
.mic-wrap { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: var(--hanji); border: 1px dashed var(--hanji-3); margin-bottom: 18px; }
.mic-wrap .mic-text b { display: block; font-size: 17px; }
.mic-time { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 600; }

.status { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); min-height: 24px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hanji-3); border-top-color: var(--red); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: var(--red-deep); font-weight: 500; }

/* ───── 가게 카드 (결과) */
.shopcard { position: relative; border-radius: 22px; overflow: hidden; background: var(--night); color: #f3ece0; box-shadow: 0 30px 60px -30px rgba(13, 18, 34, 0.7); }
.shopcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--night-2) center/cover; }
.shopcard-media img { width: 100%; height: 100%; object-fit: cover; }
.shopcard-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 34, 0) 45%, rgba(13, 18, 34, 0.95)); }
.shopcard-title { position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 2; }
.shopcard-title .cat { font-size: 13px; color: var(--gold); letter-spacing: .06em; }
.shopcard-title h3 { font-family: var(--display); font-size: 28px; margin: 4px 0 0; line-height: 1.25; }
.shopcard-body { padding: 20px 22px 24px; }
.lantern-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(239, 191, 98, 0.1); border: 1px solid rgba(239, 191, 98, 0.25); margin-bottom: 16px; }
.lantern-line .lantern { transform: scale(.9); }
.lantern-line q { font-family: var(--display); font-size: 19px; quotes: none; }
.tabs { display: flex; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.tabs button { border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; color: #f3ece0; }
.tabs button[aria-selected="true"] { background: #f3ece0; color: var(--night); }
.shopcard-story { font-size: 16px; color: rgba(243, 236, 224, 0.9); min-height: 80px; }
.menu-list { display: grid; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.menu-list li { display: flex; gap: 10px; font-size: 15px; }
.menu-list li b { color: var(--gold-2); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.shopcard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.shopcard-actions .btn { min-height: 42px; font-size: 15px; }

.placeholder { border: 1px dashed var(--hanji-3); border-radius: 22px; min-height: 420px; display: grid; place-items: center; text-align: center; padding: 28px; color: var(--muted); background: repeating-linear-gradient(135deg, rgba(27, 23, 18, 0.02) 0 12px, transparent 12px 24px); }
.placeholder .lantern { margin: 0 auto 16px; transform: scale(1.6); }

/* ───── 초롱(마커) */
.lantern { position: relative; width: 22px; height: 32px; display: inline-block; flex: none; filter: drop-shadow(0 0 8px rgba(239, 191, 98, 0.75)); }
.lantern::before { content: ''; position: absolute; left: 50%; top: -6px; width: 2px; height: 6px; background: #b88b3c; transform: translateX(-50%); }
.lantern i { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, var(--red) 0 50%, var(--blue) 50% 100%); box-shadow: inset 0 0 0 1.5px #d9a648, inset 0 0 12px rgba(255, 220, 150, 0.65); }
.lantern i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: #d9a648; }
.lantern::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 8px; border-radius: 0 0 2px 2px; background: var(--red); transform: translateX(-50%); }
.lantern.is-lit { animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { filter: drop-shadow(0 0 8px rgba(239, 191, 98, 0.75)); } 50% { filter: drop-shadow(0 0 16px rgba(239, 191, 98, 0.95)); } }
.marker { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.marker .tag { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 3px 9px; border-radius: 99px; background: rgba(13, 18, 34, 0.82); color: #f3ece0; border: 1px solid rgba(239, 191, 98, 0.35); }
.marker.is-place .tag { background: rgba(245, 239, 228, 0.92); color: var(--ink); border-color: rgba(27, 23, 18, 0.1); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(239, 191, 98, 0.25), 0 0 14px rgba(239, 191, 98, 0.8); }
.marker .num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #4aa3ff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(74, 163, 255, 0.25); }

/* ───── 지도 상자 */
.mapbox { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--night); min-height: 520px; box-shadow: var(--shadow); }
.mapbox .map { position: absolute; inset: 0; }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 3; font-size: 13px; color: #f3ece0; background: rgba(13, 18, 34, 0.72); border-radius: 12px; padding: 8px 12px; backdrop-filter: blur(6px); }
.maplibregl-ctrl-attrib { font-size: 10px !important; }
.maplibregl-popup-content { border-radius: 14px !important; padding: 14px 16px !important; font-family: var(--body); max-width: 260px; }

/* ───── 코스 */
.course-out { display: grid; gap: 12px; }
.stop { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; }
.stop:hover { border-color: var(--red); }
.stop-n { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.stop h4 { margin: 0; font-size: 17px; }
.stop .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stop p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.walk { font-size: 13px; color: var(--jade); font-weight: 600; padding-left: 54px; }
.summary-box { padding: 16px 18px; border-radius: 16px; background: var(--night); color: #f3ece0; }
.summary-box h3 { font-family: var(--display); margin: 0 0 6px; font-size: 22px; }

/* ───── AR */
.ar-stage { position: relative; height: calc(100svh - var(--nav-h)); margin-top: var(--nav-h); background: #000; overflow: hidden; color: #fff; }
.ar-stage video, .ar-stage .ar-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-layer { position: absolute; inset: 0; pointer-events: none; }
.ar-item { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: left .12s linear, top .12s linear; }
.ar-card { background: rgba(13, 18, 34, 0.78); border: 1px solid rgba(239, 191, 98, 0.45); border-radius: 14px; padding: 8px 12px; text-align: center; backdrop-filter: blur(8px); min-width: 120px; }
.ar-card b { display: block; font-size: 15px; }
.ar-card span { font-size: 13px; color: var(--gold-2); }
.ar-item .lantern { transform: scale(1.5); }
.ar-hud { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); z-index: 5; }
.ar-hud .pill { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(13, 18, 34, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); }
.ar-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 5; display: grid; gap: 10px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.ar-compass { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 5; font-size: 13px; padding: 6px 14px; border-radius: 99px; background: rgba(13, 18, 34, 0.7); font-variant-numeric: tabular-nums; }
.ar-edge { position: absolute; top: 50%; z-index: 4; font-size: 13px; padding: 6px 10px; border-radius: 99px; background: rgba(13, 18, 34, 0.75); border: 1px solid rgba(239, 191, 98, 0.4); }
.ar-edge.left { left: 10px; } .ar-edge.right { right: 10px; }
.ar-intro { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 500px at 50% 40%, rgba(31, 41, 68, 0.9), rgba(13, 18, 34, 0.97)); }
.ar-intro-box { max-width: 520px; text-align: center; }
.ar-intro-box .lantern { transform: scale(2.2); margin: 18px auto 34px; }
.ar-intro-box .row { justify-content: center; }

/* ───── 흐름판 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px; border-radius: 16px; background: #fffaf2; border: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 14px; color: var(--muted); }
.zone-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.zone-table th, .zone-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.zone-table td.num, .zone-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--hanji-2); color: var(--ink-2); }
.badge-demo { background: rgba(42, 85, 150, 0.12); color: var(--blue-deep); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 80; background: var(--night); color: #f3ece0; padding: 12px 18px; border-radius: 14px; font-size: 15px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5); transition: all .3s ease; pointer-events: none; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───── 반응형 */
@media (max-width: 960px) {
  .stats, .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 360px; }
  .tech, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(245, 239, 228, 0.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  body.is-dark .tabbar { background: rgba(13, 18, 34, 0.9); border-color: rgba(255, 255, 255, 0.08); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 12px; text-decoration: none; padding: 6px 0; opacity: .65; }
  .tabbar a.is-active { opacity: 1; color: var(--red); }
  body.is-dark .tabbar a.is-active { color: var(--gold); }
  .tabbar svg { width: 22px; height: 22px; }
  .hero { min-height: 600px; }
  .hero-copy { bottom: 96px; }
  .bar-row { grid-template-columns: 96px 1fr 64px; gap: 10px; }
  .bar-name, .bar-val { font-size: 14px; }
  .stat { padding: 18px 16px; }
  .mapbox { min-height: 420px; }
  .mic-wrap { padding: 14px; gap: 14px; }
  .mic { width: 64px; height: 64px; }
  .tech-card li { grid-template-columns: 1fr; gap: 2px; }
  .page { padding-bottom: 120px; }
  .ar-stage { height: calc(100svh - var(--nav-h) - 64px); }
  .cta-band { padding: 28px 22px; }
  footer { padding-bottom: 120px; }
}
@media (max-width: 400px) {
  .stats, .kpis { grid-template-columns: 1fr; }
}

/* 어두운 배경 위 글자 */
.hero .lead, .on-dark .lead { color: rgba(243, 236, 224, 0.86); }
.hero .eyebrow, .section-dark .eyebrow, .cta-band .eyebrow { color: var(--gold); }
.hero .h1 { text-shadow: 0 2px 30px rgba(13, 18, 34, 0.6); }
.cta-band .h2 { color: #f3ece0; }
