/* ------------------------------------------------------------
   도시가 보드판 랜딩 — orbit-fms.com 참고 스타일
   구조: 어두운 풀블리드 히어로 / 흰 배경 + 큰 라운드 카드 / 슬레이트 기능 섹션 /
         파란 키워드 하이라이트 / Q. FAQ / 하단 프로모션 바
   토큰만 바꾸면 전체가 따라옵니다. 컴포넌트는 semantic 변수만 사용.
   ------------------------------------------------------------ */
:root {
  color-scheme: light dark;

  /* base (orbit-fms.com 계산값 기준: 본문 #191F28, 회색 #4E5968, 연회색 #F9FAFB, 파랑 #2579EF, 슬레이트 #3D434D) */
  --ink-900: #191F28;
  --ink-800: #333D4B;
  --gray-600: #4E5968;
  --gray-500: #6B7684;
  --gray-200: #E5E8EB;
  --gray-100: #F2F4F6;
  --gray-50:  #F9FAFB;
  --blue-500: #2579EF;
  --blue-600: #1B63D2;
  --blue-300: #7DB0FF;
  --blue-50:  #E8F1FE;
  --slate-700: #3D434D;
  --slate-900: #1C2129;

  /* semantic: light */
  --fill-bg: #FFFFFF;
  --fill-alt: var(--gray-50);
  --fill-card: var(--gray-100);
  --fill-brand: var(--blue-600);
  --fill-brand-weak: var(--blue-50);
  --text-primary: var(--ink-900);
  --text-weak: var(--gray-600);
  --text-faint: var(--gray-500);
  --text-on-brand: #FFFFFF;
  --text-brand: var(--blue-600);
  --border-base: var(--gray-200);

  /* 어두운 섹션은 라이트/다크 공통 */
  --ink-bg: var(--slate-900);
  --ink-bg-2: var(--slate-700);
  --ink-card: rgba(255,255,255,0.06);
  --ink-border: rgba(255,255,255,0.14);
  --ink-text: #FFFFFF;
  --ink-text-weak: rgba(255,255,255,0.74);
  --ink-brand: var(--blue-300);
  --ink-fill-brand: var(--blue-500);

  /* spacing 4px, radius, type */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 24px; --r-pill: 999px;
  --t-12: 12px; --t-14: 14px; --t-16: 16px; --t-20: 20px; --t-24: 24px; --t-32: 32px; --t-44: 44px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fill-bg: #14181E;
    --fill-alt: #1A1F27;
    --fill-card: #1F252E;
    --fill-brand: #5B9BFF;
    --fill-brand-weak: #1E2B40;
    --text-primary: #F2F4F6;
    --text-weak: #B0B8C1;
    --text-faint: #8B95A1;
    --text-on-brand: #0F1420;
    --text-brand: #8FBBFF;
    --border-base: #2A313B;
  }
}
:root[data-theme="dark"] {
  --fill-bg: #14181E; --fill-alt: #1A1F27; --fill-card: #1F252E; --fill-brand: #5B9BFF; --fill-brand-weak: #1E2B40;
  --text-primary: #F2F4F6; --text-weak: #B0B8C1; --text-faint: #8B95A1; --text-on-brand: #0F1420; --text-brand: #8FBBFF; --border-base: #2A313B;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fill-bg); color: var(--text-primary);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: var(--t-16); line-height: 1.55; word-break: keep-all;
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--text-brand); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--fill-brand); outline-offset: 2px; border-radius: var(--r-1); }
.skip { position: absolute; left: -999px; top: 0; background: var(--fill-brand); color: var(--text-on-brand); padding: var(--s-2) var(--s-4); z-index: 50; }
.skip:focus { left: var(--s-4); top: var(--s-2); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s-8); } }
.narrow { max-width: 760px; }
.hidden { display: none !important; }

/* ---------- header (히어로 위에 떠 있음) ---------- */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 800; font-size: var(--t-20); letter-spacing: -0.02em; color: var(--ink-text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav a { text-decoration: none; font-size: var(--t-14); font-weight: 600; color: var(--ink-text); border: 1px solid var(--ink-border); background: rgba(255,255,255,0.06); border-radius: var(--r-1); padding: var(--s-2) var(--s-3); backdrop-filter: blur(6px); }
.nav a:hover { background: rgba(255,255,255,0.12); }
.nav a.primary { background: var(--ink-fill-brand); border-color: transparent; color: #fff; }
.nav .mobile-hide { display: none; }
@media (min-width: 720px) { .nav .mobile-hide { display: inline-block; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-6); border-radius: var(--r-2); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--fill-brand); color: var(--text-on-brand); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-base); }
.btn-ghost:hover { background: var(--fill-alt); }
.btn-glass { background: rgba(255,255,255,0.12); color: var(--ink-text); border-color: var(--ink-border); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,0.2); }
.btn-ink { background: var(--ink-800); color: #fff; }
.btn-ink:hover { filter: brightness(1.15); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero (어두운 풀블리드) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-bg); color: var(--ink-text); padding: 128px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 20% 10%, rgba(37,121,239,0.28), transparent 70%),
  radial-gradient(50% 45% at 85% 20%, rgba(255,164,96,0.18), transparent 70%),
  linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-head { text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-14); font-weight: 600; color: var(--ink-brand); background: rgba(125,176,255,0.12); border: 1px solid rgba(125,176,255,0.25); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-brand); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); margin-top: var(--s-5); letter-spacing: -0.03em; line-height: 1.15; }
.hero h1 .accent { color: var(--ink-brand); }
.hero .lead { font-size: clamp(16px, 2vw, 20px); color: var(--ink-text-weak); margin-top: var(--s-5); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-8); }
.hero-art { position: relative; margin: var(--s-12) auto 0; max-width: 920px; }
.hero-art svg { width: 100%; height: auto; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-border); margin-top: var(--s-8); }
.pillars div { padding: var(--s-5) var(--s-2); text-align: center; border-left: 1px solid var(--ink-border); }
.pillars div:first-child { border-left: 0; }
.pillars b { display: block; font-size: var(--t-16); letter-spacing: 0.02em; }
.pillars span { display: block; font-size: var(--t-12); color: var(--ink-text-weak); margin-top: var(--s-1); }
@media (min-width: 720px) { .pillars b { font-size: var(--t-20); } .pillars span { font-size: var(--t-14); } }

/* ---------- 공통 섹션 ---------- */
section { padding: var(--s-20) 0; }
@media (min-width: 720px) { section { padding: var(--s-24) 0; } }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; }
.sec-head .sub { color: var(--text-weak); margin-top: var(--s-4); font-size: clamp(15px, 1.6vw, 18px); }
.sec-head.left { text-align: left; margin: 0; }

/* 큰 라운드 카드 (orbit의 연회색 카드) */
.panel { background: var(--fill-alt); border: 1px solid var(--border-base); border-radius: var(--r-4); padding: var(--s-10) var(--s-5); }
@media (min-width: 720px) { .panel { padding: var(--s-16) var(--s-12); } }
.panel .sec-head { margin-bottom: var(--s-10); }

/* 여정(journey) 그림 */
.journey { margin: 0 auto; max-width: 880px; }
.journey svg { width: 100%; height: auto; }
.journey-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
@media (min-width: 720px) { .journey-steps { grid-template-columns: repeat(5, 1fr); } }
.journey-steps div { background: var(--fill-bg); border: 1px solid var(--border-base); border-radius: var(--r-3); padding: var(--s-4); }
.journey-steps b { display: block; font-size: var(--t-14); }
.journey-steps b small { color: var(--text-brand); font-weight: 700; margin-right: var(--s-1); }
.journey-steps p { font-size: var(--t-12); color: var(--text-weak); margin-top: var(--s-1); }

/* ---------- 어두운 기능 섹션 (orbit 슬레이트 캐러셀 느낌) ---------- */
.ink { background: var(--ink-bg-2); color: var(--ink-text); position: relative; overflow: hidden; }
.ink::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 80% 100%, rgba(37,121,239,0.22), transparent 70%); pointer-events: none; }
.ink .wrap { position: relative; }
.ink .sec-head h2 { color: var(--ink-text); }
.ink .sec-head .sub { color: var(--ink-text-weak); }
.ink .kicker { font-size: var(--t-14); font-weight: 600; color: var(--ink-brand); letter-spacing: 0.02em; }
.feature { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1.3fr; gap: var(--s-16); } }
.feature ul { list-style: none; padding: 0; margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.feature li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); color: var(--ink-text-weak); font-size: var(--t-14); }
.feature li b { color: var(--ink-text); display: block; font-size: var(--t-16); }
.feature li .ico { width: 28px; height: 28px; border-radius: var(--r-1); background: var(--ink-card); border: 1px solid var(--ink-border); display: grid; place-items: center; color: var(--ink-brand); }
.feature li .ico svg { width: 16px; height: 16px; }

/* 폰 목업 3대 */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: end; }
@media (min-width: 720px) { .phones { gap: var(--s-5); } }
.phone { background: #0B0E13; border: 1px solid rgba(255,255,255,0.18); border-radius: 26px; padding: 8px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.phone:nth-child(2) { transform: translateY(-14px); }
.phone .scr { background: #fff; color: var(--ink-900); border-radius: 20px; padding: var(--s-3); min-height: 250px; display: flex; flex-direction: column; gap: var(--s-2); font-size: 11px; line-height: 1.4; overflow: hidden; position: relative; }
@media (min-width: 720px) { .phone .scr { padding: var(--s-4); min-height: 340px; font-size: 13px; gap: var(--s-3); } }
.phone .scr .k { font-size: 0.85em; font-weight: 700; color: var(--blue-600); }
.phone .scr .t { font-weight: 800; font-size: 1.25em; line-height: 1.25; letter-spacing: -0.01em; }
.phone .scr .d { color: var(--gray-600); }
.phone .scr .b { margin-top: auto; background: var(--blue-500); color: #fff; text-align: center; border-radius: 10px; padding: 9px; font-weight: 700; }
.phone .scr .b.ghost { background: var(--gray-100); color: var(--ink-900); }
.phone .scr .map { flex: 1; min-height: 70px; border-radius: 12px; background:
  linear-gradient(var(--gray-200) 1px, transparent 1px) 0 0/22px 22px,
  linear-gradient(90deg, var(--gray-200) 1px, transparent 1px) 0 0/22px 22px, var(--gray-50); position: relative; overflow: hidden; }
.phone .scr .map .pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--blue-500); transform: rotate(-45deg); }
.phone .scr .map .route { position: absolute; left: 12%; top: 60%; width: 70%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-500) 0 6px, transparent 6px 11px); transform: rotate(-18deg); transform-origin: left; }
.phone .scr .chip { display: inline-block; background: var(--gray-100); border-radius: 6px; padding: 3px 7px; font-size: 0.85em; color: var(--gray-600); }
.phone .scr .code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.2em; font-weight: 800; font-size: 1.3em; text-align: center; padding: var(--s-2); border: 1.5px dashed var(--gray-200); border-radius: 10px; }
.phone .scr .ok { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #16A34A; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.phone-label { text-align: center; font-size: var(--t-12); color: var(--ink-text-weak); margin-top: var(--s-3); }

/* ---------- 문장 밴드 (파란 키워드 + 글로우) ---------- */
.statement { position: relative; overflow: hidden; text-align: center; }
.statement .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.statement .glow.a { width: 420px; height: 420px; left: -120px; top: -60px; background: rgba(37,121,239,0.35); }
.statement .glow.b { width: 380px; height: 380px; right: -100px; bottom: -80px; background: rgba(255,164,96,0.35); }
.statement h2 { position: relative; font-size: clamp(26px, 4vw, 44px); line-height: 1.35; letter-spacing: -0.02em; color: var(--text-primary); }
.statement h2 .hl { color: var(--text-brand); }
.statement h2 .dim { color: var(--text-faint); }

/* ---------- 동네 카드 ---------- */
.places { display: grid; gap: var(--s-5); margin-top: var(--s-10); }
@media (min-width: 720px) { .places { grid-template-columns: 1fr 1fr; } }
.place { border: 1px solid var(--border-base); border-radius: var(--r-4); overflow: hidden; background: var(--fill-alt); }
.place .art { aspect-ratio: 16/9; background: var(--ink-bg); }
.place .art svg { width: 100%; height: 100%; }
.place .body { padding: var(--s-6); }
.place .tag { display: inline-block; font-size: var(--t-12); font-weight: 700; color: var(--text-brand); background: var(--fill-brand-weak); padding: 2px var(--s-2); border-radius: var(--r-1); }
.place h3 { font-size: var(--t-20); margin-top: var(--s-3); }
.place p { color: var(--text-weak); font-size: var(--t-14); margin-top: var(--s-2); }

/* ---------- 카드 그리드 (가게가 하는 일 등) ---------- */
.cards { display: grid; gap: var(--s-4); margin-top: var(--s-10); }
@media (min-width: 720px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--fill-bg); border: 1px solid var(--border-base); border-radius: var(--r-3); padding: var(--s-6); }
.card .ico { width: 44px; height: 44px; border-radius: var(--r-2); background: var(--fill-brand-weak); color: var(--text-brand); display: grid; place-items: center; margin-bottom: var(--s-4); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--t-20); }
.card p { color: var(--text-weak); font-size: var(--t-14); margin-top: var(--s-2); }

/* ---------- 조건 리스트 ---------- */
.terms { margin-top: var(--s-10); border: 1px solid var(--border-base); border-radius: var(--r-4); overflow: hidden; background: var(--fill-bg); }
.terms div { display: grid; grid-template-columns: 1fr; gap: var(--s-1); padding: var(--s-5) var(--s-6); border-top: 1px solid var(--border-base); }
.terms div:first-child { border-top: 0; }
@media (min-width: 720px) { .terms div { grid-template-columns: 220px 1fr; gap: var(--s-6); } }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--text-weak); font-size: var(--t-14); }

/* ---------- 정산 흐름 그림 ---------- */
.flow { margin: var(--s-10) auto 0; max-width: 820px; }
.flow svg { width: 100%; height: auto; }
.flow-note { text-align: center; color: var(--text-faint); font-size: var(--t-14); margin-top: var(--s-4); }

/* ---------- 콜아웃 / CTA 카드 ---------- */
.callout { background: var(--fill-brand-weak); border-radius: var(--r-4); padding: var(--s-8) var(--s-6); margin-top: var(--s-10); }
.callout p + p { margin-top: var(--s-3); }
.callout .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.cta-dark { position: relative; overflow: hidden; background: var(--ink-bg); color: var(--ink-text); border-radius: var(--r-4); padding: var(--s-12) var(--s-6); text-align: center; }
@media (min-width: 720px) { .cta-dark { padding: var(--s-20) var(--s-12); } }
.cta-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 120%, rgba(37,121,239,0.4), transparent 70%); }
.cta-dark > * { position: relative; }
.cta-dark h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; }
.cta-dark p { color: var(--ink-text-weak); margin-top: var(--s-4); }
.cta-dark .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-8); }

/* ---------- FAQ (orbit식 Q. 행) ---------- */
.faq { max-width: 760px; margin: var(--s-10) auto 0; display: grid; gap: var(--s-3); }
.faq details { background: var(--fill-alt); border: 1px solid var(--border-base); border-radius: var(--r-2); padding: 0 var(--s-5); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { color: var(--text-brand); font-weight: 800; }
.faq summary .chev { margin-left: auto; width: 20px; height: 20px; color: var(--text-faint); transition: transform .2s; flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--text-weak); font-size: var(--t-14); padding: 0 0 var(--s-5) 30px; }

/* ---------- 문의 / 푸터 ---------- */
.contact { position: relative; overflow: hidden; }
.contact .glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; pointer-events: none; }
.contact .glow.a { width: 500px; height: 500px; left: -200px; bottom: -200px; background: rgba(37,121,239,0.4); }
.contact .glow.b { width: 420px; height: 420px; right: -150px; top: -150px; background: rgba(255,164,96,0.35); }
.contact .wrap { position: relative; }
.contact-grid { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; }
.contact .lead { color: var(--text-weak); margin-top: var(--s-4); }
.contact .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.contact .side { background: var(--fill-alt); border: 1px solid var(--border-base); border-radius: var(--r-4); padding: var(--s-6); }
.contact .side h3 { font-size: var(--t-16); }
.contact .side ol { margin: var(--s-3) 0 0; padding-left: 20px; color: var(--text-weak); font-size: var(--t-14); display: grid; gap: var(--s-2); }
.contact .side .small { font-size: var(--t-12); color: var(--text-faint); margin-top: var(--s-4); }
footer { border-top: 1px solid var(--border-base); padding: var(--s-10) 0 calc(var(--s-24) + env(safe-area-inset-bottom)); color: var(--text-faint); font-size: var(--t-14); }
footer .links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-4); }
footer .links a { color: var(--text-weak); text-decoration: none; font-weight: 600; }
footer p + p { margin-top: var(--s-2); }
footer .src { font-size: var(--t-12); }

/* ---------- 하단 프로모션 바 (orbit식 알약 바) ---------- */
.promo { position: fixed; left: 50%; bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); width: min(960px, calc(100% - 32px)); z-index: 30; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); background: var(--fill-bg); border: 1px solid var(--border-base); border-radius: var(--r-3); box-shadow: 0 16px 40px rgba(0,0,0,0.18); transition: transform .25s ease; }
.promo.on { transform: translate(-50%, 0); }
.promo .label { font-size: var(--t-12); font-weight: 700; color: var(--text-brand); background: var(--fill-brand-weak); padding: var(--s-1) var(--s-2); border-radius: var(--r-1); white-space: nowrap; }
.promo .msg { flex: 1; font-size: var(--t-14); color: var(--text-weak); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo .btn { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-14); }
@media (max-width: 480px) { .promo .msg { display: none; } .promo { justify-content: space-between; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink-800); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); font-size: var(--t-14); z-index: 40; max-width: calc(100% - 32px); }

/* ---------- 애니메이션 ---------- */
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s ease both; }
.rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .25s; } .rise.d3 { animation-delay: .4s; }

/* 히어로: QR 스캔 → 이야기 시작 (6초 루프) */
.qr-scene .scan { animation: scan 6s infinite; transform-box: fill-box; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 5% { opacity: 1; } 20% { transform: translateY(118px); } 35% { transform: translateY(0); } 40% { opacity: 1; } 44% { opacity: 0; } 100% { opacity: 0; } }
.qr-scene .flash { animation: flash 6s infinite; }
@keyframes flash { 0%,40% { opacity: 0; } 44% { opacity: .9; } 50% { opacity: 0; } 100% { opacity: 0; } }
.qr-scene .cam { animation: cam 6s infinite; }
@keyframes cam { 0%,42% { opacity: 1; } 48%,92% { opacity: 0; } 97%,100% { opacity: 1; } }
.qr-scene .story { animation: story 6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes story { 0%,44% { opacity: 0; transform: translateY(16px); } 52%,90% { opacity: 1; transform: none; } 96%,100% { opacity: 0; transform: translateY(16px); } }
.qr-scene .beam { animation: beam 6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes beam { 0%,4% { opacity: 0; } 10%,38% { opacity: .9; } 46%,100% { opacity: 0; } }
.qr-scene .ring { animation: ring 6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0%,44% { opacity: 0; transform: scale(.6); } 50% { opacity: .8; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1.4); } }

/* 여정: 경로가 그려지고 점이 따라감 (10초 루프) */
.journey .trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trail 10s linear infinite; }
@keyframes trail { 0% { stroke-dashoffset: 1; } 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.journey .walker { animation: walk 10s linear infinite; }
@keyframes walk { 0% { offset-distance: 0%; } 85% { offset-distance: 100%; } 100% { offset-distance: 100%; } }
.journey .node { transform-box: fill-box; transform-origin: center; animation: node 10s infinite; }
.journey .node.n1 { animation-delay: 0s; } .journey .node.n2 { animation-delay: 2.1s; } .journey .node.n3 { animation-delay: 4.2s; } .journey .node.n4 { animation-delay: 6.3s; } .journey .node.n5 { animation-delay: 8.4s; }
@keyframes node { 0%,2% { transform: scale(1); } 6% { transform: scale(1.25); } 12%,100% { transform: scale(1); } }

/* 가게: 손님 도착 → 암호 → 확인 (6초 루프) */
.shop-scene .walker-in { animation: walkin 6s infinite; transform-box: fill-box; }
@keyframes walkin { 0% { transform: translateX(-60px); opacity: 0; } 15%,100% { transform: none; opacity: 1; } }
.shop-scene .bubble { animation: bubble 6s infinite; transform-box: fill-box; transform-origin: bottom left; }
@keyframes bubble { 0%,20% { opacity: 0; transform: scale(.8); } 28%,70% { opacity: 1; transform: none; } 78%,100% { opacity: 0; } }
.shop-scene .check { animation: check 6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes check { 0%,48% { opacity: 0; transform: scale(.4); } 56% { opacity: 1; transform: scale(1.15); } 62%,88% { opacity: 1; transform: scale(1); } 95%,100% { opacity: 0; } }

/* 정산 흐름: 점이 흘러감 */
.flow .dots { stroke-dasharray: 2 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .promo { transition: none; }
  .qr-scene .scan, .qr-scene .flash, .qr-scene .beam, .qr-scene .ring, .journey .walker, .journey .node, .shop-scene .walker-in, .flow .dots, .eyebrow .dot, .rise { animation: none; }
  .qr-scene .cam { animation: none; opacity: 0; } .qr-scene .story { animation: none; opacity: 1; transform: none; }
  .journey .trail { animation: none; stroke-dashoffset: 0; }
  .shop-scene .bubble, .shop-scene .check { animation: none; opacity: 1; transform: none; }
}

/* ---------- 모바일 보정 ---------- */
.qr-scene .beam { filter: blur(22px); }
@keyframes beam { 0%,4% { opacity: 0; } 10%,38% { opacity: .55; } 46%,100% { opacity: 0; } }
@media (max-width: 719px) {
  .brand { font-size: 17px; }
  .nav a { font-size: 13px; padding: 6px 10px; }
  .journey text { display: none; }
  .journey .node circle { r: 26; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 6px 20px 14px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 240px; scroll-snap-align: center; }
  .phone:nth-child(2) { transform: none; }
  .phone .scr { min-height: 330px; font-size: 13px; padding: 16px; gap: 12px; }
  .phone-label::before { content: "옆으로 넘겨 보세요 · "; }
}

/* ---------- 사진 히어로 ---------- */
.hero.photo { min-height: clamp(600px, 88vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 150px; }
.hero.photo::before { display: none; }
.hero.photo .bg { position: absolute; inset: 0; background: var(--hero-img) center 40% / cover no-repeat; }
.hero.photo .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,30,.62) 0%, rgba(20,24,30,.42) 35%, rgba(20,24,30,.82) 70%, rgba(20,24,30,.97) 100%); }
.hero.photo .hero-head { margin-bottom: var(--s-16); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero.photo .lead { color: rgba(255,255,255,.86); }
.hero.photo .pillars { border-top-color: rgba(255,255,255,.18); }
@media (min-width: 900px) { .hero.photo { min-height: clamp(680px, 92vh, 900px); } .hero.photo .hero-head { margin-bottom: var(--s-24); } }
.place .art { aspect-ratio: 16/10; }
.place .art img { width: 100%; height: 100%; object-fit: cover; }
footer .src a { color: inherit; }
