/* 웹 전용 마케팅. 설치 PWA·좁은 화면에서는 숨김 */

#site,
.site-top,
.site-bg {
  display: none;
}

html.is-pwa #site,
html.is-pwa .site-top,
html.is-pwa .site-bg,
html.is-app #site,
html.is-app .site-top,
html.is-app .site-bg {
  display: none !important;
}

@media (min-width: 860px) {
  html:not(.is-pwa) #site {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(100% - 450px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    color: var(--text);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    background: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html:not(.is-pwa) #site::-webkit-scrollbar { display: none; width: 0; height: 0; }
  html:not(.is-pwa) .site-top {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 450px);
    z-index: 6;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  html:not(.is-pwa) .site-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(100% - 450px);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    color: var(--accent2);
    background: var(--bg);
  }
}

.site-bg-map {
  position: absolute;
  right: -6%;
  top: -4%;
  width: 92%;
  height: 108%;
  opacity: 0.55;
}
:root[data-theme="light"] .site-bg-map { opacity: 0.4; color: #6d28d9; }
.site-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, transparent 70%);
  pointer-events: none;
}
.site-grid {
  stroke: currentColor;
  stroke-width: 0.6;
  opacity: 0.12;
}
.site-routes .route {
  stroke: url(#site-route);
  stroke-width: 1.6;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  animation: siteRoute 42s linear infinite;
}
.site-routes .route-slow { animation-duration: 64s; animation-direction: reverse; }
.site-cities circle { fill: currentColor; }
.site-cities .ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.45;
}
.site-cities text {
  fill: currentColor;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.site-stamps circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.35;
}
.site-stamps text {
  fill: currentColor;
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
  letter-spacing: 0.16em;
  opacity: 0.45;
}
.site-plane { fill: currentColor; opacity: 0.8; }
.site-bg-kicker {
  fill: currentColor;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.28;
}
@keyframes siteRoute {
  to { stroke-dashoffset: -240; }
}
.site-bg-scene {
  opacity: 0;
  transition: opacity 1.15s ease;
}
.site-bg-scene.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .site-routes .route,
  .site-route-line { animation: none; }
  .site-bg-scene { transition: none; }
}

.site-stage { position: relative; }
.site-log-preview {
  display: none;
}
#site-flow .site-log-preview {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  max-width: 420px;
  margin: 18px 0 32px;
  padding: 10px 8px 14px 4px;
  overflow: visible;
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg2) 62%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
#site-flow .site-log-callout {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  order: -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 2px 0 4px 52px;
  filter: none;
}
#site-flow .site-log-callout-line { display: none; }
#site-flow .site-log-callout-label {
  transform: rotate(-4deg);
  margin: 0;
  font-size: 26px;
}
@media (min-width: 1440px) {
  html:not(.is-pwa) .site-log-preview {
    display: block;
    position: absolute;
    top: 500px;
    left: min(520px, calc(100% - 490px));
    width: 360px;
    max-width: none;
    margin: 0;
    padding: 4px 6px 0 8px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  html:not(.is-pwa) .site-log-preview .tl-group {
    mask-image: linear-gradient(180deg, #000 0%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 94%, transparent 100%);
  }
  html:not(.is-pwa) .site-log-callout {
    position: absolute;
    left: auto;
    right: -8px;
    top: 176px;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0;
    filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--bg) 78%, transparent));
  }
  html:not(.is-pwa) .site-log-callout-line { display: block; }
  html:not(.is-pwa) .site-log-callout-label {
    transform: rotate(-6deg);
    margin-top: -6px;
    margin-right: -6px;
    font-size: 30px;
  }
  html:not(.is-pwa) .site-inner {
    max-width: 572px;
    position: relative;
    z-index: 1;
  }
}
@media (min-width: 1600px) {
  html:not(.is-pwa) .site-log-preview {
    left: min(600px, calc(100% - 460px));
    width: 380px;
  }
  html:not(.is-pwa) .site-log-callout {
    right: -28px;
    width: 152px;
  }
}
.site-log-preview .tl-date-header { padding-top: 8px; }
.site-log-preview .tl-place-city {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  max-width: none;
}
.site-log-preview .tl-date-header { flex-wrap: wrap; }
.site-log-preview .tl-detail-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.site-log-preview .tl-card {
  background: color-mix(in srgb, var(--bg2) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
}
.site-log-preview .tl-card:active { background: color-mix(in srgb, var(--bg2) 86%, transparent); }
.site-log-preview .tl-edit-btn,
.site-log-preview .tl-ai-btn { cursor: default; }
.site-log-preview .tl-note {
  min-height: 0;
  resize: none;
  field-sizing: unset;
  white-space: pre-wrap;
}
.site-log-preview .tl-note strong { font-weight: 800; color: var(--text); }
.site-log-preview .tl-note em { font-style: italic; color: var(--text2); }
.site-log-preview .polaroid { cursor: default; }
.site-log-preview .polaroid:hover {
  transform: var(--tilt, none) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
  z-index: auto;
}
.site-log-preview .polaroid img,
.site-log-preview .site-ticket {
  width: 86px;
  height: 86px;
}
.site-log-callout {
  position: absolute;
  left: calc(100% - 36px);
  top: 176px;
  width: 152px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  z-index: 2;
  color: #f3eee4;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--bg) 78%, transparent));
}
:root[data-theme="light"] .site-log-callout { color: #171717; }
.site-log-callout-line {
  width: 132px;
  height: 74px;
  display: block;
  margin-right: 22px;
}
.site-log-callout-line path {
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-log-callout-label {
  font-family: 'Nanum Pen Script', 'Segoe Print', cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: #fb7185;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: rotate(-6deg);
  transform-origin: 20% center;
  margin-top: -6px;
  margin-right: -6px;
}
:root[data-theme="light"] .site-log-callout-label { color: #e11d48; }

.site-phone-callout {
  display: none;
  pointer-events: none;
  z-index: 21;
}
/* 앱 화면(/app/)과 설치본에서는 소개 페이지용 장식이 보이면 안 된다 (설정 시트·제목·버튼을 가린다) */
html.is-app .site-phone-callout,
html.is-pwa .site-phone-callout { display: none !important; }
@media (min-width: 860px) {
  html:not(.is-pwa) .site-phone-callout {
    display: block;
    position: fixed;
    right: 28px;
    top: 50%;
    width: 410px;
    height: min(844px, calc(100vh - 48px));
    transform: translateY(-50%);
    color: #f3eee4;
    filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--bg) 78%, transparent));
  }
}
:root[data-theme="light"] .site-phone-callout { color: #171717; }
.site-phone-callout-inner {
  position: absolute;
  top: 0;
  left: 50%;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translate(-34px, -28px);
}
.site-phone-callout-line {
  width: 92px;
  height: 56px;
  display: block;
}
.site-phone-callout-line path {
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-phone-callout-label {
  font-family: 'Nanum Pen Script', 'Segoe Print', cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.12;
  color: #fb7185;
  letter-spacing: 0.03em;
  word-break: keep-all;
  text-align: left;
  transform: rotate(-4deg);
  transform-origin: left center;
  margin-top: -10px;
  margin-left: 52px;
}
:root[data-theme="light"] .site-phone-callout-label { color: #e11d48; }
.site-route-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 10px;
  color: var(--accent2);
  background:
    radial-gradient(120px 72px at 72% 36%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 72%),
    color-mix(in srgb, var(--bg) 62%, transparent);
  overflow: hidden;
}
.site-route-grid { stroke: currentColor; stroke-width: 0.7; opacity: 0.16; }
.site-route-land { fill: currentColor; opacity: 0.1; }
.site-route-frame {
  fill: color-mix(in srgb, var(--accent2) 8%, transparent);
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
  opacity: 0.7;
}
.site-route-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  animation: siteRoute 28s linear infinite;
}
.site-route-svg circle { fill: currentColor; }
.site-route-svg .halo { opacity: 0.18; }
.site-route-svg .ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.6;
}
.site-route-svg text {
  fill: currentColor;
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
  text-anchor: middle;
}
.site-log-p1 { --tilt: rotate(-6deg); transform: rotate(-6deg); }
.site-log-p2 { --tilt: rotate(8deg); transform: rotate(8deg); margin-top: 10px; }
.site-log-p3 { --tilt: rotate(-3deg); transform: rotate(-3deg); margin-left: 18px; }
.site-log-p4 { --tilt: rotate(-5deg); transform: rotate(-5deg); }
.site-log-p5 { --tilt: rotate(6deg); transform: rotate(6deg); margin-top: 8px; }
.site-ticket {
  display: flex;
  flex-direction: column;
  background: #1e3a8a;
  color: #fff;
  overflow: hidden;
}
.site-ticket-banner {
  background: #2563eb;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 7px 6px 5px;
  line-height: 1.2;
}
.site-ticket-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 0 0 6px;
}
.site-ticket-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-bottom: 6px;
}
.site-ticket-time {
  background: #facc15;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 7px 6px;
  line-height: 1;
}
.site-ticket-route {
  background: #dc2626;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 6px 6px;
  white-space: nowrap;
}

.site-inner {
  max-width: 680px;
  padding: 72px 48px 72px;
  margin: 0 auto 0 0;
}

.site-top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  min-height: 56px;
  padding: 0 24px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.site-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.site-theme {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border2);
}
.site-theme-opt {
  width: 30px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}
.site-theme-opt:hover { color: var(--text); }
.site-theme-opt.is-on {
  background: var(--accent);
  color: #fff;
}
.site-nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}
.site-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-links a:hover { color: var(--accent2); }
@media (max-width: 1180px) { .site-nav-links a { display: none; } }
.site-lang {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 3px 6px;
  cursor: pointer;
}
.site-lang option { color: #111; }

.site-hero { padding: 28px 0 12px; }
.site-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.site-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin: 0 0 14px;
  background: linear-gradient(120deg, var(--text) 18%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-hand {
  font-family: 'Nanum Pen Script', 'Segoe Print', cursive;
  font-size: 26px;
  color: var(--accent2);
  margin: 0 0 18px;
  line-height: 1.3;
}
.site-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 54ch;
  margin: 0 0 28px;
}
.site-lead strong { color: var(--text); font-weight: 700; }

.site-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.site-install {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent2);
  border-radius: 0 12px 12px 0;
  background: var(--accent-bg);
}
.site-install-a { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0 0 6px; }
.site-install-b { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.6; margin: 0; }
.site-install-b strong { color: var(--accent2); font-weight: 800; }
.site-plan-note {
  grid-column: 1 / -1;
  margin: 6px 4px 8px;
  font-family: 'Nanum Pen Script', 'Segoe Print', cursive;
  font-size: 22px;
  line-height: 1.35;
  color: var(--accent2);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.12s, background 0.15s;
}
.site-btn:active { transform: scale(0.98); }
.site-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.site-btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
}

.site-section { padding: 42px 0 8px; }
.site-h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.site-sec-lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0 0 22px;
  max-width: 48ch;
}

.site-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.site-card-ico { font-size: 22px; display: block; margin-bottom: 10px; }
.site-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
}
.site-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin: 0;
}
.site-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  text-decoration: none;
}
.site-card em {
  font-style: normal;
  color: #2dd4bf;
  font-weight: 700;
}
:root[data-theme="light"] .site-card em { color: #0f766e; }

.site-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-flow li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.site-flow li:last-child { border-bottom: 1px solid var(--border); }
.site-flow-n {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent2);
  padding-top: 2px;
}
.site-flow h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}
.site-flow p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin: 0;
}
.site-flow-last .site-flow-n,
.site-flow-last h3 { color: #2dd4bf; }
:root[data-theme="light"] .site-flow-last .site-flow-n,
:root[data-theme="light"] .site-flow-last h3 { color: #0f766e; }

.site-gain {
  margin-top: 28px;
  padding: 28px 0 4px;
}
.site-gain-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent2);
  margin: 0 0 12px;
}
.site-gain-line {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.28;
  margin: 0 0 14px;
  background: linear-gradient(120deg, var(--text) 14%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-gain-hand {
  font-family: 'Nanum Pen Script', 'Segoe Print', cursive;
  font-size: 24px;
  color: var(--accent2);
  margin: 0;
  line-height: 1.35;
}

.site-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 520px) {
  .site-plans { grid-template-columns: 1fr; }
}
.site-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.site-plan-hi {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14) 0%, var(--surface) 48%);
}
.site-plan-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent2);
  margin: 0 0 4px;
}
.site-plan h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}
.site-plan-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
.site-plan-price span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-left: 2px;
}
.site-plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-plan li {
  font-size: 12px;
  color: var(--text2);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

/* ── Booklet promo section ── */
.site-section-book { padding: 40px 0 16px; container-type: inline-size; }
.site-book-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, #f59e0b 10%, transparent), transparent 60%),
    var(--surface);
}
.site-book-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  perspective: 1100px;
}
.site-book-glow {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 45%, transparent), transparent 70%);
  filter: blur(20px);
}
.bk-tilt {
  --bw: 130px;
  --bh: 184px;
  position: relative;
  width: calc(var(--bw) * 2);
  height: var(--bh);
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-10deg);
}
.bk-open {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: bk-shift 12s ease-in-out infinite;
}
.bk-leaf, .bk-base {
  position: absolute;
  left: 50%; top: 0;
  width: var(--bw); height: var(--bh);
  transform-origin: left center;
}
.bk-leaf { transform-style: preserve-3d; }
.bk-base {
  border-radius: 2px 7px 7px 2px;
  background: #d9d0bb;
  transform: translateZ(-1px);
  box-shadow: 0 16px 18px -6px rgba(0,0,0,0.35);
}
.bk-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.bk-front { border-radius: 2px 7px 7px 2px; }
.bk-back  { transform: rotateY(180deg); border-radius: 7px 2px 2px 7px; }
.bk-paper {
  background: linear-gradient(90deg, #e6dfcd, #f6f1e5 14%, #f6f1e5);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-back.bk-paper { background: linear-gradient(270deg, #e6dfcd, #f6f1e5 14%, #f6f1e5); }
.bk-ttl { font-size: 15px; font-weight: 800; color: #6d28d9; letter-spacing: 0.04em; }
.bk-lines {
  display: block;
  height: 64px;
  background: repeating-linear-gradient(to bottom, #b8ad94 0 2px, transparent 2px 9px);
  opacity: 0.55;
  border-radius: 1px;
}
.bk-lines--long { height: 140px; }
.bk-photo {
  display: block;
  height: 70px;
  border-radius: 3px;
  background: linear-gradient(160deg, #7dd3fc 0%, #60a5fa 45%, #34d399 46%, #10b981 100%);
}
.bk-photo--b { background: linear-gradient(160deg, #fcd34d 0%, #fb923c 50%, #7c3aed 100%); }
.bk-photo--c { background: linear-gradient(160deg, #f9a8d4 0%, #c084fc 55%, #6366f1 100%); }

.bk-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px 16px 20px;
  background: linear-gradient(155deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.bk-cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 11px;
  background: linear-gradient(90deg, rgba(0,0,0,0.38), rgba(255,255,255,0.08));
}
.bk-cover::after {
  content: '';
  position: absolute;
  inset: 9px 9px 9px 19px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 2px;
}
.bk-cover-top { font-size: 7px; font-weight: 700; letter-spacing: 0.22em; color: rgba(255,255,255,0.7); }
.bk-cover-icon { font-size: 30px; line-height: 1; color: #fff; }
.bk-cover-title { font-size: 15px; font-weight: 800; color: #fff; text-align: center; }
.bk-cover-rule { width: 28px; height: 2px; background: #fbbf24; border-radius: 2px; }
.bk-cover-sub { font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.8); }

.bk-leaf--0 { animation: bk-f0 12s ease-in-out infinite; }
.bk-leaf--1 { animation: bk-f1 12s ease-in-out infinite; }
.bk-leaf--2 { animation: bk-f2 12s ease-in-out infinite; }
.bk-leaf--3 { animation: bk-f3 12s ease-in-out infinite; }

@keyframes bk-shift {
  0%, 6%    { transform: translateX(calc(var(--bw) * -0.5)); }
  14%, 86%  { transform: translateX(0); }
  96%, 100% { transform: translateX(calc(var(--bw) * -0.5)); }
}
@keyframes bk-f0 {
  0%, 8%    { transform: translateZ(4px) rotateY(0); }
  14%, 89%  { transform: translateZ(1px) rotateY(-180deg); }
  95%, 100% { transform: translateZ(4px) rotateY(0); }
}
@keyframes bk-f1 {
  0%, 17%   { transform: translateZ(3px) rotateY(0); }
  23%, 86%  { transform: translateZ(2px) rotateY(-180deg); }
  92%, 100% { transform: translateZ(3px) rotateY(0); }
}
@keyframes bk-f2 {
  0%, 26%   { transform: translateZ(2px) rotateY(0); }
  32%, 83%  { transform: translateZ(3px) rotateY(-180deg); }
  89%, 100% { transform: translateZ(2px) rotateY(0); }
}
@keyframes bk-f3 {
  0%, 35%   { transform: translateZ(1px) rotateY(0); }
  41%, 80%  { transform: translateZ(4px) rotateY(-180deg); }
  86%, 100% { transform: translateZ(1px) rotateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bk-open, .bk-leaf { animation: none; }
  .bk-open { transform: translateX(calc(var(--bw) * -0.5)); }
  .bk-leaf--0 { transform: translateZ(4px); }
  .bk-leaf--1 { transform: translateZ(3px); }
  .bk-leaf--2 { transform: translateZ(2px); }
  .bk-leaf--3 { transform: translateZ(1px); }
}
.site-book-chip {
  position: absolute;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--bg);
  color: var(--accent2);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.site-book-chip--a { top: 10px; right: 10%; }
.site-book-chip--b { bottom: 10px; left: 10%; }

.site-book-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent2);
  background: var(--accent-bg);
}
.site-book-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-book-desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}
.site-book-desc strong { color: var(--text); font-weight: 700; }

.site-book-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.site-book-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.site-book-tier--hi {
  border-color: color-mix(in srgb, #f59e0b 55%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, #f59e0b 12%, var(--bg)), var(--bg));
}
.site-book-tier-badge {
  position: absolute;
  top: -9px; right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.site-book-tier-name { font-size: 12px; font-weight: 800; color: var(--accent2); }
.site-book-tier--hi .site-book-tier-name { color: #d97706; }
.site-book-tier-main { font-size: 15px; font-weight: 600; color: var(--text); word-break: keep-all; }
.site-book-tier-main b { font-size: 20px; font-weight: 800; }
.site-book-tier-sub { font-size: 12px; color: var(--text3); }

.site-book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-book-tags li {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
}

@container (min-width: 760px) {
  .site-book-wrap { grid-template-columns: 300px 1fr; gap: 36px; padding: 36px 40px; }
}
@container (max-width: 520px) {
  .site-book-tiers { gap: 10px; }
  .site-book-tier { padding: 12px; }
  .site-book-tier-main { font-size: 13px; }
  .site-book-tier-main b { font-size: 17px; }
  .site-book-title { font-size: 24px; }
}
@container (max-width: 380px) {
  .site-book-tiers { grid-template-columns: 1fr; }
}

/* ── end booklet promo ── */

.site-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.site-foot p {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}
.site-foot-sub {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text3);
}

@media (max-width: 1099px) {
  .site-features { grid-template-columns: 1fr; }
  .site-inner { padding: 72px 24px 64px; }
  .site-nav { padding: 0 24px; }
}

/* ── 사이트 네비 로그인 버튼 ── */
.site-nav-login {
  height: 32px; padding: 0 16px; border-radius: 16px;
  border: 1.5px solid var(--accent2); background: transparent;
  color: var(--accent2); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: all 0.15s; -webkit-tap-highlight-color: transparent;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
.site-nav-login:hover { background: var(--accent-bg); }
.site-nav-login--in {
  background: var(--accent2); color: #fff; border-color: transparent;
}
.site-nav-login--in:hover { opacity: 0.88; background: var(--accent2); }


/* ── 이용약관 모달 ── */
.terms-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.terms-overlay[hidden] { display: none; }
.terms-dialog {
  width: 100%; max-width: 640px; max-height: 82vh; max-height: 82dvh;
  display: flex; flex-direction: column;
  background: var(--bg2, var(--bg)); color: var(--text);
  border: 1px solid var(--border2, var(--border)); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  overflow: hidden;
}
.terms-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.terms-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.terms-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--surface); color: var(--text2); font-size: 14px; cursor: pointer;
}
.terms-body {
  padding: 16px 22px 24px; overflow-y: auto; overscroll-behavior: contain;
  font-size: 13px; line-height: 1.75; color: var(--text2);
}
.terms-body h3 { margin: 18px 0 6px; font-size: 14px; font-weight: 800; color: var(--text); }
.terms-body p { margin: 0; }
.terms-draft {
  padding: 10px 12px; border-radius: 10px; font-size: 12px !important;
  background: var(--accent-bg); color: var(--accent2); font-weight: 600;
}
.site-foot-links { margin: 10px 0 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-foot-links a { color: var(--accent2); text-decoration: underline; cursor: pointer; }

/* 위치정보 동의 대화상자 */
.gps-dialog { max-width: 420px; }
.gps-list { margin: 10px 0 0; padding-left: 18px; }
.gps-list li { margin-bottom: 6px; }
.gps-terms-note { margin-top: 10px !important; font-size: 12px; color: var(--text3); }
.gps-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px calc(var(--safe-b, 0px) + 16px); border-top: 1px solid var(--border); }

/* ── iOS 설치 안내: 그림 단계 + 공유 버튼 화살표 ── */
.gps-list.ig-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 12px; }
.gps-list.ig-list .ig-step { display: flex; align-items: center; gap: 12px; margin: 0; }
.ig-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; font-size: 12px; font-weight: 800;
}
.ig-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ig-txt { font-size: 13px; line-height: 1.45; color: var(--text); font-weight: 600; }
.ig-ico {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border2); color: #0a84ff;
}
.ig-mock {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; align-self: flex-start;
  padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border2);
  font-size: 13px; font-weight: 700; color: var(--text);
}
.ig-mock i { display: inline-flex; font-style: normal; color: var(--text); }
.ig-mock--btn { color: #0a84ff; font-weight: 800; padding: 6px 16px; }
.gps-list.ig-list .ig-note { margin: 0; font-size: 12px; color: var(--text3); }
.ios-arrow {
  position: fixed; left: 50%; bottom: calc(var(--safe-b, 0px) + 6px); transform: translateX(-50%);
  color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); pointer-events: none;
  animation: igBounce 1.1s ease-in-out infinite;
}
.ios-arrow[hidden] { display: none; }
.ios-arrow.is-top { bottom: auto; top: calc(var(--safe-t, 0px) + 6px); left: auto; right: 22px; transform: rotate(180deg); animation-name: igBounceTop; }
@keyframes igBounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
@keyframes igBounceTop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* PRO 기능 카드 (AI · GPS 지도) */
.site-card--pro { position: relative; }
.site-card-badge {
  display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
