/* 레이아웃: 책상 위에 펼친 여행 다이어리 — 가죽 앞표지(히어로) → 종이 속지(기능) → 가죽 뒤표지(받기).
   색은 앱 테마와 같은 계열. 가죽은 표지·책갈피·탭에만 쓴다(앱의 LeatherSurface 원칙과 같게). */
:root {
  --paper: #f1e8d8;
  --sheet: #fcf7ec;
  --ink: #2e2822;
  --ink-soft: #675e54;
  --accent: #9a4a2c;
  --rule: #e2d5bf;
  --leather: #a24f2f;
  --leather-dark: #7e3a21;
  --foil: #f0d4a0;
  --cream: #fcf3e6;
  --night: #1a1511;
  --night-ink: #f0e7d8;
  --night-soft: #a99a84;
  --shadow-deep: rgb(70 35 12 / 0.5);
  --grain-opacity: 0.35;

  /* 앱 화면 목업 기본 색 = 앱 라이트 테마 */
  --a-bg: #f1e8d8; --a-sf: #fcf7ec; --a-tx: #2e2822; --a-sub: #675e54; --a-desc: #746755;
  --a-pri: #9a4a2c; --a-on: #fff; --a-ic: #a99c8a; --a-bd: #e6dbc8; --a-fld: #ebe1d0;

  /* 영어는 Fraunces·Caveat, 한국어는 Gowun Batang·Nanum Pen Script. 섞어 쓰면 한 줄 안에서 숫자와 한글 글꼴이 달라져 언어별로 나눈다. */
  --font-serif: 'Fraunces', 'Gowun Batang', Georgia, serif;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-hand: 'Caveat', 'Nanum Pen Script', cursive;

  --wrap: 1220px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
:root:lang(ko) {
  --font-serif: 'Gowun Batang', 'AppleMyungjo', 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --font-hand: 'Nanum Pen Script', 'Gowun Batang', cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #171310; --sheet: #211c16; --ink: #f0e7d8; --ink-soft: #9c8f7b; --accent: #e0a084; --rule: #342c22;
    --night: #0f0c0a; --shadow-deep: rgb(0 0 0 / 0.7); --grain-opacity: 0.18;
    --a-bg: #171310; --a-sf: #231e17; --a-tx: #f0e7d8; --a-sub: #9c8f7b; --a-desc: #8f8473;
    --a-pri: #e0a084; --a-on: #3a1e12; --a-ic: #8a8072; --a-bd: #342c22; --a-fld: #2c261e;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #171310; --sheet: #211c16; --ink: #f0e7d8; --ink-soft: #9c8f7b; --accent: #e0a084; --rule: #342c22;
  --night: #0f0c0a; --shadow-deep: rgb(0 0 0 / 0.7); --grain-opacity: 0.18;
  --a-bg: #171310; --a-sf: #231e17; --a-tx: #f0e7d8; --a-sub: #9c8f7b; --a-desc: #8f8473;
  --a-pri: #e0a084; --a-on: #3a1e12; --a-ic: #8a8072; --a-bd: #342c22; --a-fld: #2c261e;
  color-scheme: dark;
}

/* ───────── 기본 ───────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 종이 결 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hand { font-family: var(--font-hand); font-weight: 400; line-height: 1.15; }
.eyebrow { font-size: 0.98rem; font-weight: 600; color: var(--accent); }

/* ───────── 가죽 (앱 LeatherSurface 와 같은 층: 색 + 결 + 위쪽 빛 + 가장자리 그늘 + 박음질) ───────── */

.leather {
  position: relative;
  color: var(--cream);
  background-color: var(--leather);
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgb(0 0 0 / 0.22) 100%),
    radial-gradient(ellipse 110% 90% at 30% 20%, rgb(255 255 255 / 0.1), transparent 70%),
    url('../img/leather.png');
  background-size: 100% 100%, 100% 100%, 256px 256px;
  background-blend-mode: normal, normal, overlay;
}
.leather::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgb(252 243 230 / 0.42);
  border-radius: 18px;
  pointer-events: none;
}

/* ───────── 상단 바 ───────── */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-serif); font-size: 1.2rem; }
.brand img { border-radius: 8px; }
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.topnav a { text-decoration: none; color: var(--ink-soft); }
.topnav a:hover { color: var(--ink); }
.lang { display: flex; padding: 2px; border: 1px solid var(--rule); border-radius: 999px; }
.lang button {
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: 600 0.8rem/1.4 var(--font-body);
  cursor: pointer;
}
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.btn-get {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* ───────── 앞표지 (히어로) ───────── */

.hero { padding-block: 4px 0; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.cover { border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -40px var(--shadow-deep), inset 0 1px 0 rgb(255 255 255 / 0.15); }
.cover-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 32px;
  padding: 64px 48px 56px;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.seal { width: 92px; height: 92px; color: var(--foil); transform: rotate(-12deg); filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.3)); }
.hero .eyebrow { color: var(--foil); }
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.4rem); line-height: 1.2; color: var(--cream); }
.foil-word {
  background: linear-gradient(100deg, #d9a968 0%, #f6e2b8 35%, #fff6df 48%, #e7bf80 62%, #f0d4a0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 5s ease-in-out infinite;
}
@keyframes foil { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.lede { max-width: 30em; font-size: 1.08rem; color: rgb(252 243 230 / 0.85); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #1c1410;
  color: #fcf3e6;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(240 212 160 / 0.25), 0 8px 18px -10px rgb(0 0 0 / 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgb(240 212 160 / 0.55), 0 12px 22px -10px rgb(0 0 0 / 0.6); }
.store .ico { width: 26px; height: 26px; }
.store span { display: grid; white-space: nowrap; font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.store small { font-size: 0.72rem; font-weight: 400; opacity: 0.75; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 6px 0 0; }
.hero-stats div { padding: 0 26px; border-left: 1.5px dashed rgb(252 243 230 / 0.35); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-family: var(--font-serif); font-size: 2rem; line-height: 1.1; color: var(--foil); }
.hero-stats dd { margin: 0; font-size: 0.85rem; color: rgb(252 243 230 / 0.75); }

.hero-stage { position: relative; height: 640px; min-width: 0; perspective: 1400px; }
.hero-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s ease-out;
}
.hero-front { --z: 0.72; position: absolute; left: 12%; top: 10px; transform: rotate(-4deg) translateZ(40px); z-index: 2; }
.hero-back { --z: 0.6; position: absolute; right: 0; top: 70px; transform: rotate(6deg); z-index: 1; filter: brightness(0.96); }
.hero-stamp { position: absolute; right: -3%; top: 0; z-index: 3; width: 128px; color: var(--foil); transform: translateZ(90px); }
.hero-stamp .stamp { width: 128px; height: 128px; color: var(--foil); transform: none; animation: turn 40s linear infinite; }
@keyframes turn { to { transform: rotate(348deg); } }

.float-pola {
  margin: 0;
  width: 170px;
  padding: 9px 9px 0;
  background: #fffdf8;
  color: #3a3029;
  box-shadow: 0 18px 30px -16px rgb(30 15 5 / 0.55), 0 2px 4px rgb(30 15 5 / 0.15);
}
.float-pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.float-pola figcaption { padding: 6px 2px 8px; font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1; text-align: center; }
.hero .float-pola { position: absolute; z-index: 4; }
.fp1 { left: -6%; bottom: 10px; transform: rotate(-9deg) translateZ(110px); }
.fp2 { right: -2%; bottom: 40px; width: 140px; transform: rotate(8deg) translateZ(130px); }

@media (prefers-reduced-motion: no-preference) {
  .hero-front, .hero-back, .hero .float-pola, .hero-stamp { animation: settle 1s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
  .hero-back { animation-delay: 0.1s; }
  .fp1 { animation-delay: 0.35s; }
  .fp2 { animation-delay: 0.5s; }
  .hero-stamp { animation-delay: 0.7s; }
}
@keyframes settle { from { opacity: 0; translate: 0 40px; } }

/* ───────── 폴라로이드 띠 ───────── */

.strip { padding-block: 64px 20px; overflow: hidden; }
.strip-note { padding-left: var(--gutter-l); padding-right: var(--gutter-r); text-align: center; font-size: 1.8rem; color: var(--accent); }
.strip-viewport { margin-top: 18px; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 30px; width: max-content; padding: 22px 0 30px; }
.strip-track .float-pola { width: 190px; transform: rotate(var(--r)); transition: transform 0.3s; }
.strip-track .float-pola:hover { transform: rotate(0deg) scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: marquee 70s linear infinite; }
  .strip-viewport:hover .strip-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── 섹션 머리 ───────── */

.section-head {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding-block: 80px 24px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ───────── 기능 소개 (스크롤 따라 화면이 바뀌는 무대) ───────── */

.story-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.chapter {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-block: 40px;
  transition: opacity 0.4s;
}
.story.is-ready .chapter:not(.is-active) { opacity: 0.32; }
.ch-label {
  /* 다이어리 옆면의 가죽 색인 탭 */
  align-self: flex-start;
  margin-left: -24px;
  padding: 5px 16px 5px 24px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, var(--leather-dark), var(--leather));
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px -6px var(--shadow-deep);
}
.chapter h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.22; }
.chapter > p:not(.ch-label) { max-width: 30em; color: var(--ink-soft); font-size: 1.06rem; }
.ticks { display: grid; margin: 0; padding: 0; list-style: none; max-width: 30em; }
.ticks li { padding: 10px 0 10px 28px; border-top: 1.5px dashed var(--rule); font-size: 0.97rem; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border: 1.8px solid var(--accent); border-radius: 50%; }
.pen { padding: 0 3px; color: #2e2822; background: linear-gradient(transparent 12%, #fbef7e 12%, #fbef7e 88%, transparent 88%); }
.pen-red { color: #c9443a; }
.ch-phone { display: none; }

.stage { position: relative; }
.stage-sticky {
  --z: 0.76;
  --ph: calc(844px * var(--z) + 22px);
  position: sticky;
  top: max(76px, calc(50vh - var(--ph) / 2));
  height: var(--ph);
  display: grid;
  place-items: center;
  margin-block: calc(44vh - var(--ph) / 2);
}
.stage-sticky::before {
  /* 폰 뒤의 옅은 원 — 책상 위 스탠드 불빛 */
  content: '';
  position: absolute;
  width: min(560px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sheet) 85%, transparent), transparent 68%);
}
.stage-phone { --z: inherit; }
@media (max-height: 820px) { .stage-sticky { --z: 0.66; } }
@media (max-height: 700px) { .stage-sticky { --z: 0.56; } }
.screens { display: grid; }
.screens > .screen {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.45s, transform 0.45s, visibility 0s 0.45s;
}
.screens > .screen.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.diary-scroll, .rep-scroll { position: relative; }

.prop {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(0.85);
  transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.prop.is-on { opacity: 1; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(1); transition-delay: 0.15s; }
.prop-note p, .prop-caption { font-size: 1.6rem; color: var(--accent); text-align: center; }
.prop-note .arrow { display: block; width: 110px; margin: 2px 0 0 90px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.prop.float-pola { width: 160px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 30px -18px var(--shadow-deep);
  font-size: 0.9rem;
}
.toolbar .sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.tb-sep { width: 1px; height: 18px; background: var(--rule); }
.tb-hl { padding: 0 4px; color: #2e2822; background: #fbef7e; }
.layouts { width: 190px; padding: 14px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 14px 30px -18px var(--shadow-deep); }
.layouts p { margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* 템플릿 모양 아이콘 — 사진 칸(진한 면)과 글 줄(가는 선) */
.lt { --p: color-mix(in srgb, var(--accent) 55%, var(--sheet)); --l: var(--rule); aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--rule); background-color: var(--paper); background-repeat: no-repeat; }
.lt-tl { background-image: linear-gradient(var(--p) 0 0), repeating-linear-gradient(var(--l) 0 2px, transparent 2px 6px); background-size: 40% 50%, 40% 50%; background-position: 12% 50%, 88% 52%; }
.lt-tr { background-image: linear-gradient(var(--p) 0 0), repeating-linear-gradient(var(--l) 0 2px, transparent 2px 6px); background-size: 40% 50%, 40% 50%; background-position: 88% 50%, 12% 52%; }
.lt-tb { background-image: linear-gradient(var(--p) 0 0), linear-gradient(var(--p) 0 0), repeating-linear-gradient(var(--l) 0 2px, transparent 2px 6px); background-size: 24% 44%, 24% 44%, 36% 44%; background-position: 10% 50%, 90% 50%, 50% 52%; }
.lt-p1 { background-image: linear-gradient(var(--p) 0 0); background-size: 76% 60%; background-position: 50% 50%; }
.lt-p2 { background-image: linear-gradient(var(--p) 0 0), linear-gradient(var(--p) 0 0); background-size: 36% 56%, 36% 56%; background-position: 14% 50%, 86% 50%; }
.lt-p3 { background-image: linear-gradient(var(--p) 0 0), linear-gradient(var(--p) 0 0), linear-gradient(var(--p) 0 0); background-size: 24% 50%, 24% 50%, 24% 50%; background-position: 10% 50%, 50% 50%, 90% 50%; }
.lt-tx { background-image: repeating-linear-gradient(var(--l) 0 2px, transparent 2px 7px); background-size: 72% 56%; background-position: 50% 54%; }
.lt-vd { background-image: linear-gradient(var(--p) 0 0); background-size: 76% 60%; background-position: 50% 50%; position: relative; }
.lt-vd::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 9px solid var(--sheet); border-block: 6px solid transparent; transform: translateX(2px); }
.lt-dv { background-image: linear-gradient(var(--p) 0 0), linear-gradient(var(--p) 0 0); background-size: 72% 2px, 6px 6px; background-position: 50% 50%, 50% 50%; }

.prop-stamp { width: 150px; color: var(--accent); }
.prop-stamp .stamp { width: 150px; height: 150px; color: var(--accent); }

.ticket {
  display: flex;
  width: 300px;
  border-radius: 14px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 34px -18px var(--shadow-deep);
  font-variant-numeric: tabular-nums;
}
.tk-main { flex: 1; padding: 14px 16px; }
.tk-kind { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.tk-route { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.1; }
.tk-route span { font-size: 1rem; color: var(--ink-soft); }
.tk-meta { display: flex; gap: 14px; font-size: 0.85rem; font-weight: 600; }
.tk-meta small, .tk-stub small { display: block; font-size: 0.66rem; font-weight: 400; color: var(--ink-soft); }
.tk-stub { display: grid; place-content: center; width: 74px; border-left: 2px dashed var(--rule); text-align: center; font-size: 1.3rem; }

.rate { width: 230px; padding: 16px 18px; border-radius: 4px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 18px 34px -18px var(--shadow-deep); font-variant-numeric: tabular-nums; }
.rate-lbl { font-size: 0.8rem; color: var(--ink-soft); }
.rate-val { margin: 2px 0 8px; font-family: var(--font-serif); font-size: 1.6rem; color: var(--accent); }
.rate-sum { padding-top: 8px; border-top: 1.5px dashed var(--rule); font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }

.share-card { width: 210px; padding: 10px 10px 14px; background: #fffdf8; color: #3a3029; box-shadow: 0 18px 34px -16px var(--shadow-deep); }
.share-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-title { margin-top: 10px; font-family: var(--font-serif); font-size: 1.2rem; }
.sc-line { font-size: 0.78rem; color: #6a5d50; }
.sc-line b { color: #9a4a2c; font-weight: 600; }

/* ───────── 컬러 테마 ───────── */

.themes { margin-top: 60px; padding-block: 90px; background: var(--sheet); border-block: 1px solid var(--rule); }
.themes-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.themes-copy { display: grid; gap: 18px; }
.themes-copy > p:not(.eyebrow) { max-width: 26em; color: var(--ink-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.swatch {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--s1) 50%, var(--s2) 50%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 0 3px var(--sheet), 0 0 0 4px transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked='true'] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 0 3px var(--sheet), 0 0 0 5px var(--ink); }
.swatch-name { font-family: var(--font-hand); font-size: 1.7rem; color: var(--accent); min-height: 1.2em; }
.themes-phones { display: flex; justify-content: center; gap: 28px; }
.themes-phones .phone { --z: 0.6; }
.themes-phones .phone:last-child { margin-top: 60px; }

/* ───────── 그 밖의 기능 ───────── */

.extras { padding-bottom: 100px; }
.extra-list {
  max-width: var(--wrap);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.extra-list > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1.5px dashed var(--rule); }
.extra-list dt { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.2rem; }
.extra-list dt .ico { color: var(--accent); }
.extra-list dd { margin: 0; color: var(--ink-soft); font-size: 0.98rem; align-self: center; }

/* ───────── 개인정보 (앱 잠금 화면처럼 어두운 면) ───────── */

.private { padding-block: 110px; background: var(--night); color: var(--night-ink); }
.private-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 64px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.lock-cover {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 10px 24px 24px 10px;
  box-shadow: inset 14px 0 18px -10px rgb(0 0 0 / 0.45), 0 40px 70px -30px rgb(0 0 0 / 0.8);
  transform: rotate(-3deg);
}
.lock-cover .seal.deboss { width: 140px; height: 140px; color: rgb(0 0 0 / 0.24); filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.2)); }
.unlock {
  position: absolute;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.25);
  font-size: 0.85rem;
}
.unlock .ico { width: 18px; height: 18px; }
.private-copy { display: grid; gap: 18px; }
.private .eyebrow { color: var(--foil); }
.promises { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.promises li { display: flex; gap: 16px; padding-block: 18px; border-top: 1.5px dashed rgb(240 231 216 / 0.16); }
.promises .ico { margin-top: 3px; color: var(--foil); }
.promises p { color: var(--night-soft); font-size: 0.98rem; }
.promises b { display: block; color: var(--night-ink); font-size: 1.08rem; font-weight: 600; }

/* ───────── 뒤표지 ───────── */

.backcover { padding-block: 80px 16px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.backcover-inner { grid-template-columns: 1fr; justify-items: center; gap: 26px; padding-block: 96px; text-align: center; }
.app-icon { border-radius: 22px; box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.6); }
.backcover h2 { color: var(--cream); }
.backcover .stores { justify-content: center; }
.cover-note { font-size: 1.5rem; color: var(--foil); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding-block: 28px 40px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer .email { user-select: all; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  box-shadow: 0 14px 30px -12px var(--shadow-deep);
}

/* ───────── 좁은 화면 ───────── */

@media (max-width: 1180px) {
  .prop { display: none; }
}

@media (max-width: 959px) {
  .topnav { display: none; }
  .lang { margin-left: auto; }
  .cover-inner { grid-template-columns: 1fr; padding: 52px 28px 40px; }
  .hero-stage { height: 560px; max-width: 520px; width: 100%; justify-self: center; }
  .hero-front { --z: 0.62; left: 6%; }
  .hero-back { --z: 0.52; }
  .fp1 { width: 140px; left: -2%; }
  .fp2 { width: 116px; right: 0; }

  .story-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .chapter { min-height: 0; padding-block: 36px; }
  .story.is-ready .chapter:not(.is-active) { opacity: 1; }
  .ch-label { margin-left: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); }
  .ch-phone { display: flex; justify-content: center; margin-top: 12px; }
  .ch-phone .phone { --z: 0.7; }

  .themes-grid, .private-inner { grid-template-columns: 1fr; }
  .themes-phones .phone { --z: 0.5; }
  .themes-phones .phone:last-child { margin-top: 40px; }
  .extra-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar { gap: 12px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .brand span { font-size: 1.05rem; white-space: nowrap; }
  .btn-get { display: none; }
  .hero { padding-left: 8px; padding-right: 8px; }
  .cover { border-radius: 22px; }
  .leather::before { inset: 9px; border-radius: 14px; }
  .cover-inner { padding: 44px max(22px, env(safe-area-inset-left, 0px)) 32px; gap: 20px; }
  .seal { width: 72px; height: 72px; }
  .store { min-width: 0; flex: 1 1 140px; gap: 8px; padding: 10px 12px; }
  .store .ico { width: 22px; height: 22px; }
  .store span { font-size: 1rem; }
  .hero-stats { flex-wrap: nowrap; }
  .hero-stats div { padding: 0 12px; }
  .hero-stats dt { font-size: 1.6rem; }
  .hero-stats dd { font-size: 0.76rem; white-space: nowrap; }
  .hero-stage { height: 470px; }
  .hero-front { --z: 0.52; left: 2%; }
  .hero-back { --z: 0.44; right: -2%; }
  .hero-stamp, .hero-stamp .stamp { width: 96px; height: 96px; }
  .hero-stamp { left: auto; right: 4%; top: auto; bottom: 0; }
  .fp1 { width: 112px; bottom: 0; left: -4%; }
  .fp2 { display: none; }
  .strip-track .float-pola { width: 150px; }
  .section-head { padding-block: 64px 8px; }
  .ch-phone .phone { --z: 0.66; }
  .themes-phones { gap: 12px; }
  .themes-phones .phone { --z: 0.36; }
  .extra-list > div { grid-template-columns: 1fr; gap: 4px; }
  .private { padding-block: 80px; }
  .backcover-inner { padding-block: 72px; }
}

@media (max-width: 360px) {
  .ch-phone .phone { --z: 0.6; }
  .themes-phones .phone { --z: 0.32; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .foil-word, .hero-stamp .stamp { animation: none; }
  .hero-tilt { transform: none; }
}
