/* ============================================================
   화살 미로 (Arrow Maze) — Landing Page Styles
   컨셉: 한지(hanji) 종이 + 창호(격자) 무늬 + 벚꽃 파스텔
   레이아웃 차별점: 좌측 세로 '경로 레일' 내비 / 기와 프레임 히어로 /
                   지그재그 스텝 / 비대칭 벤토 그리드 / 가로 스냅 갤러리
   ============================================================ */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* 색상 — 밝은 파스텔(벚꽃·하늘·청록·단청 금색) */
  --pink:      #FF6F9C;
  --pink-soft: #FFE3EC;
  --sky:       #3EB0EE;
  --sky-soft:  #DDF1FD;
  --mint:      #24B79E;
  --mint-soft: #D8F5EF;
  --gold:      #F5A524;
  --gold-soft: #FFF0D6;
  --plum:      #8B6FE8;

  /* 중립 — 한지 톤 배경 + 진한 먹색 텍스트(명암비 확보) */
  --paper:     #FFF9F3;
  --paper-2:   #FDF2E9;
  --card:      #FFFFFF;
  --ink:       #24304A;   /* 본문 대비 12:1 이상 */
  --ink-soft:  #4C5A76;   /* 보조 텍스트 (AA 통과) */
  --line:      #EADFD3;

  /* 형태 */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* 그림자 — 종이 위에 올린 카드 느낌 */
  --sh-sm: 0 2px 6px rgba(36, 48, 74, .06);
  --sh-md: 0 10px 26px -12px rgba(36, 48, 74, .18);
  --sh-lg: 0 26px 60px -24px rgba(36, 48, 74, .26);

  /* 타이포 */
  --f-display: 'Jua', 'Noto Sans KR', system-ui, sans-serif;
  --f-body: 'Noto Sans KR', system-ui, -apple-system, sans-serif;

  /* 레이아웃 */
  --wrap: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 리셋 & 기본 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 앵커 이동 시 플로팅 내비에 가려지지 않도록 */
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
/* display 를 명시한 컴포넌트에서도 hidden 속성이 우선하도록 보장 */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.28; letter-spacing: -.01em; }

/* 키보드 포커스 링 */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lucide 스타일 스트로크 아이콘 공통 규격 (24x24 viewBox) */
.ico {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

/* ---------- 3. 배경 레이어 ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* 한지 종이 그라데이션 */
.bg-hanji {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #FFFFFF 0%, var(--paper) 45%, var(--paper-2) 100%);
}

/* 창호(문살) 격자 무늬 — 아주 옅게 */
.bg-lattice {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(180, 140, 100, .085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 140, 100, .085) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 25%, transparent 78%);
}

/* 색 번짐 글로우 */
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow--pink { width: 620px; height: 620px; top: -160px; right: -140px; background: var(--pink-soft); }
.bg-glow--sky  { width: 560px; height: 560px; top: 46%; left: -180px; background: var(--sky-soft); }

/* 떠다니는 벚꽃잎 (JS가 생성) */
.petals span {
  position: absolute;
  top: -6vh;
  width: 11px; height: 11px;
  background: var(--pink-soft);
  border-radius: 60% 12% 60% 12%;
  opacity: .75;
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: .8; }
  100% { transform: translate3d(80px, 108vh, 0) rotate(420deg); opacity: 0; }
}

/* ---------- 4. 스크롤 진행 표시 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px; z-index: 90;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pink), var(--gold) 45%, var(--sky));
  border-radius: 0 4px 4px 0;
  transition: width .12s linear;
}

/* ---------- 5. 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  /* 레이아웃 흔들림 없는 hover: 색상/그림자만 변경 */
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn--sm { padding: 9px 18px; font-size: .95rem; }
.btn--lg { padding: 16px 30px; font-size: 1.08rem; }

.btn--cta {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 111, 156, .8);
}
.btn--cta:hover { background: #F5497F; box-shadow: 0 12px 28px -8px rgba(245, 73, 127, .9); }

.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover { border-color: var(--sky); color: #1B7FB5; box-shadow: var(--sh-md); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(36, 48, 74, .8);
}
.btn--dark:hover { background: #16203A; box-shadow: 0 14px 30px -12px rgba(36, 48, 74, .9); }

/* ---------- 6. 뱃지 / 알약 라벨 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-size: .88rem; font-weight: 700;
  color: var(--ink-soft);
}
.pill .ico { width: 17px; height: 17px; color: var(--pink); }
.pill--light { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.6); }

.badge {
  display: inline-block;
  padding: 5px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.badge--pink { background: var(--pink-soft); color: #C93168; }
.badge--mint { background: var(--mint-soft); color: #0E7A68; }

/* ---------- 7. NAVBAR ---------- */
.nav {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: 80;
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(255, 252, 248, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(234, 223, 211, .9);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
/* 스크롤 시 吸顶 강조 */
.nav.is-stuck .nav__inner {
  background: rgba(255, 252, 248, .94);
  box-shadow: var(--sh-md);
}

.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__mark img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--sh-sm); }
.nav__names { display: flex; flex-direction: column; line-height: 1.1; }
.nav__names strong { font-family: var(--f-display); font-size: 1.12rem; font-weight: 400; }
.nav__names em {
  font-style: normal; font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; color: var(--ink-soft);
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .94rem; font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); background: var(--pink-soft); }

.nav__right { display: flex; align-items: center; gap: 8px; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  max-width: var(--wrap);
  margin: 10px auto 0;
  padding: 14px;
  display: grid; gap: 4px;
  border-radius: var(--r-md);
  background: rgba(255, 252, 248, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  animation: drop-in .26s var(--ease);
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }
.nav__mobile a {
  padding: 12px 14px; border-radius: var(--r-sm);
  font-weight: 500;
  transition: background-color .2s var(--ease);
}
.nav__mobile a:hover { background: var(--pink-soft); }
.nav__mobile .btn { margin-top: 6px; }

/* ---------- 8. 좌측 경로 레일 (데스크톱 전용) ---------- */
.rail {
  position: fixed;
  left: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}
.rail__line {
  position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.rail__line i {
  position: absolute; inset: 0 0 auto 0;
  height: 0;
  background: linear-gradient(180deg, var(--pink), var(--gold));
  transition: height .18s linear;
}
.rail__list { display: grid; gap: 22px; }
.rail__list a { position: relative; display: flex; align-items: center; gap: 12px; }
.rail__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.rail__txt {
  font-size: .78rem; font-weight: 700;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.rail__list a:hover .rail__txt { opacity: 1; transform: translateX(0); }
.rail__list a:hover .rail__dot { border-color: var(--pink); }
.rail__list a.is-active .rail__dot {
  background: var(--pink); border-color: var(--pink);
  box-shadow: 0 0 0 5px rgba(255, 111, 156, .2);
}
.rail__list a.is-active .rail__txt { opacity: 1; transform: translateX(0); color: var(--ink); }

/* ---------- 9. 스크롤 등장 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- 10. HERO ---------- */
.hero { padding: calc(var(--nav-h) + 52px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}

.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.15rem); margin: 20px 0 18px; }
.hero__title span { display: block; }
.ink { color: var(--ink); }

/* 제목 강조 — 게임 아트의 두꺼운 외곽선 글자 느낌 */
.stroke-text {
  color: var(--gold);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(36, 48, 74, .16);
}

.hero__lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 33em;
}
.hero__lead strong { color: var(--ink); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero__stats > div {
  flex: 1 1 130px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.hero__stats dt { font-size: .78rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.hero__stats dd { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.2; }
.hero__stats dd span { font-size: .82rem; color: var(--pink); margin-left: 3px; }

/* 기와 프레임(한옥) 비주얼 */
.hero__visual { position: relative; }

.hanok {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  padding: 14px;
  padding-top: 26px;
}
/* 기와 지붕 — 돔형 기와가 반복되고 아래에 용마루(ridge)가 깔림 */
.hanok__roof {
  position: absolute; top: -17px; left: 12px; right: 12px;
  height: 19px;
  background-image: radial-gradient(circle at 50% 100%, #7A88B2 0 45%, transparent 46%);
  background-size: 26px 100%;
  background-repeat: repeat-x;
}
.hanok__roof::after {
  content: "";
  position: absolute; left: -8px; right: -8px; bottom: -3px;
  height: 8px; border-radius: 6px;
  background: linear-gradient(180deg, #66739C, #4B5678);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18);
}
.hanok__banner { border-radius: var(--r-md); overflow: hidden; }
/* 배너: 1024x500 원본 비율 유지 */
.hanok__banner img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }

/* 프레임 하단 콜라주: 미니 보드 + 스크린샷 */
.hanok__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 14px 4px 0;
}

/* 미니 화살 보드 — 라이브 데모 */
.miniboard {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
@keyframes bob { 50% { transform: translateY(-9px); } }
.miniboard__cap {
  display: block;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.miniboard__hint {
  margin-top: 11px;
  font-size: .76rem; line-height: 1.5;
  color: var(--ink-soft);
}
.miniboard__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.miniboard__grid i {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: .85rem; font-style: normal;
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}
.miniboard__grid i.is-hot { background: var(--pink); color: #fff; }
.miniboard__grid i.is-gone { opacity: .28; background: var(--card); }

/* 세로 스크린샷 — 9:16 원본 비율, 프레임 아래로 돌출 */
.hero__phone {
  width: 172px;
  /* 프레임 하단 기준으로 위쪽으로 올려 배치 */
  margin-bottom: 4px;
  padding: 7px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: rotate(3deg);
  animation: bob 6.5s ease-in-out infinite .8s;
}
.hero__phone img { border-radius: 18px; aspect-ratio: 576 / 1024; object-fit: cover; }

/* 흐르는 키워드 띠 */
.ticker {
  margin-top: 62px;
  padding: 13px 0;
  background: var(--ink);
  color: #FFF3E4;
  overflow: hidden;
  transform: rotate(-1.1deg) scale(1.04);
}
.ticker__track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--f-display);
  font-size: 1.02rem;
  white-space: nowrap;
}
.ticker__track i { color: var(--gold); font-style: normal; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. 섹션 헤더 공통 ---------- */
.section { padding: 108px 0; position: relative; }
.section--tint { background: rgba(255, 255, 255, .58); border-block: 1px solid var(--line); }

.shead { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.shead--left { max-width: none; margin: 0 0 32px; text-align: left; }
.shead--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  text-align: left;
  margin-bottom: 34px;
}
.shead__kicker {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.shead__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.shead__desc { margin-top: 14px; color: var(--ink-soft); }

/* 형광펜 밑줄 강조 */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute; left: -3px; right: -3px; bottom: .04em;
  height: .36em; border-radius: 4px;
  z-index: -1;
}
.hl--pink::after { background: var(--pink-soft); }
.hl--sky::after  { background: var(--sky-soft); }
.hl--gold::after { background: var(--gold-soft); }

/* ---------- 12. STEPS — 지그재그 경로 ---------- */
.steps { position: relative; display: grid; gap: 26px; max-width: 960px; margin: 0 auto; }
/* 가운데 점선 경로 */
.steps::before {
  content: "";
  position: absolute; top: 20px; bottom: 20px; left: 50%;
  width: 0; border-left: 3px dashed var(--line);
  transform: translateX(-50%);
}
.steps__item { position: relative; display: flex; align-items: center; gap: 22px; }

.steps__num {
  flex: none;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--line);
  font-family: var(--f-display); font-size: 1.4rem;
  box-shadow: var(--sh-sm);
  z-index: 1;
}
.steps__item:nth-child(1) .steps__num { border-color: var(--pink); color: #C93168; }
.steps__item:nth-child(2) .steps__num { border-color: var(--sky);  color: #1B7FB5; }
.steps__item:nth-child(3) .steps__num { border-color: var(--mint); color: #0E7A68; }
.steps__item:nth-child(4) .steps__num { border-color: var(--gold); color: #A8650A; }

.steps__card {
  flex: 1 1 0;
  max-width: 430px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  transition: box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.steps__card:hover { box-shadow: var(--sh-lg); border-color: var(--pink); }
.steps__card h3 { font-size: 1.28rem; margin-bottom: 7px; }
.steps__card p { color: var(--ink-soft); font-size: .96rem; }

.steps__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  margin-bottom: 13px;
}
.steps__icon .ico { width: 22px; height: 22px; }
.steps__icon--pink { background: var(--pink-soft); color: #C93168; }
.steps__icon--sky  { background: var(--sky-soft);  color: #1B7FB5; }
.steps__icon--mint { background: var(--mint-soft); color: #0E7A68; }
.steps__icon--gold { background: var(--gold-soft); color: #A8650A; }

/* 홀/짝 배치로 지그재그 만들기 */
.steps__item:nth-child(odd)  { justify-content: flex-start; padding-right: 50%; }
.steps__item:nth-child(even) { justify-content: flex-start; padding-left: 50%; }
.steps__item:nth-child(odd)  .steps__num { order: 2; margin-left: 0; }
.steps__item:nth-child(odd)  .steps__card { order: 1; }

/* ---------- 13. BENTO — 비대칭 그리드 ---------- */
/* 4열 기준 비대칭 배치:
   1행 = 큰 카드(2열) + 작은 카드 2개 / 2행 = 작은 카드 1개 + 넓은 카드(3열) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bento__cell {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.bento__cell:hover { box-shadow: var(--sh-lg); border-color: var(--sky); }
.bento__cell h3 { font-size: 1.26rem; margin: 12px 0 8px; }
.bento__cell p { color: var(--ink-soft); font-size: .96rem; }

/* 큰 카드: 텍스트 + 스크린샷 2단 */
.bento__cell--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #FFFFFF 40%, var(--pink-soft));
}
.bento__cell--soft {
  grid-column: span 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, var(--mint-soft), #FFFFFF 58%, var(--sky-soft));
}
.bento__cell--soft h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bento__text { min-width: 0; }

/* 스크린샷 — 항상 원본 9:16 비율 유지 */
.bento__shot {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--card);
  padding: 6px;
  max-width: 210px;
  justify-self: end;
}
.bento__shot img { border-radius: 15px; aspect-ratio: 576 / 1024; object-fit: cover; }
.bento__shot--tilt { transform: rotate(3deg); }

.bento__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
}
.bento__ico .ico { width: 23px; height: 23px; }
.bento__ico--sky  { background: var(--sky-soft);  color: #1B7FB5; }
.bento__ico--mint { background: var(--mint-soft); color: #0E7A68; }
.bento__ico--gold { background: var(--gold-soft); color: #A8650A; }

.ticklist { margin-top: 14px; display: grid; gap: 8px; }
.ticklist li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.ticklist li::before {
  content: "";
  position: absolute; left: 0; top: .52em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 3px #fff;
}

/* ---------- 14. GALLERY — 가로 스냅 스크롤 ---------- */
.gal {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 0 22px;
  cursor: grab;
}
.gal::-webkit-scrollbar { display: none; }
.gal.is-drag { cursor: grabbing; }
/* 스크롤이 필요 없을 때는 잡아끄는 커서를 쓰지 않음 */
.gal.is-static { cursor: default; }

.gal__track {
  display: flex;
  gap: 22px;
  padding-inline: 24px;
  width: max-content;
  /* 카드 전체 폭이 화면보다 좁으면 가운데 정렬, 넘치면 좌우 스크롤 */
  margin-inline: auto;
}
.gal__item {
  scroll-snap-align: center;
  flex: none;
  width: 252px;
  padding: 8px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.gal__item:hover { box-shadow: var(--sh-lg); border-color: var(--pink); }
/* 스크린샷 원본 비율(576x1024) 유지 */
.gal__item img {
  border-radius: 19px;
  aspect-ratio: 576 / 1024;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.gal__item figcaption {
  padding: 12px 6px 4px;
  text-align: center;
  font-family: var(--f-display);
  font-size: .98rem;
  color: var(--ink);
}

.gal__nav { display: flex; gap: 9px; }
.gal__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.gal__btn:hover { background: var(--pink); color: #fff; box-shadow: var(--sh-md); }

.gal__dots { display: flex; justify-content: center; gap: 8px; }
.gal__dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.gal__dots button.is-active { width: 26px; border-radius: 6px; background: var(--pink); }

/* ---------- 15. TIPS ---------- */
.tips__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
}
.tips__shot {
  justify-self: center;
  max-width: 262px;
  padding: 9px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: rotate(-3deg);
}
.tips__shot img { border-radius: 22px; aspect-ratio: 576 / 1024; object-fit: cover; }

/* ---------- 16. ACCORDION ---------- */
.acc { display: grid; gap: 12px; }
.acc__item {
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc__item:hover { border-color: var(--sky); }
.acc__item.is-open { border-color: var(--pink); box-shadow: var(--sh-md); }

.acc__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.05rem;
  transition: background-color .2s var(--ease);
}
.acc__q:hover { background: var(--paper-2); }
.acc__chev { color: var(--ink-soft); transition: transform .3s var(--ease), color .2s var(--ease); }
.acc__item.is-open .acc__chev { transform: rotate(180deg); color: var(--pink); }

.acc__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > p {
  overflow: hidden;
  padding: 0 22px;
  color: var(--ink-soft);
  font-size: .96rem;
  transition: padding .32s var(--ease);
}
.acc__item.is-open .acc__a > p { padding: 0 22px 20px; }

/* ---------- 17. REVIEWS ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.review:hover { box-shadow: var(--sh-lg); border-color: var(--gold); }
.review__stars { color: var(--gold); letter-spacing: .12em; font-size: 1.05rem; }
.review blockquote { margin: 12px 0 20px; color: var(--ink); font-size: .98rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.review figcaption strong { font-size: .96rem; }
.review figcaption em { font-style: normal; font-size: .82rem; color: var(--ink-soft); }
.review__av {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  font-family: var(--f-display); font-size: 1.05rem;
}
.review__av--pink { background: var(--pink-soft); color: #C93168; }
.review__av--sky  { background: var(--sky-soft);  color: #1B7FB5; }
.review__av--mint { background: var(--mint-soft); color: #0E7A68; }

/* ---------- 18. FINAL CTA ---------- */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--pink-soft), #FFF8EE 46%, var(--sky-soft));
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
/* 창호 격자 오버레이 */
.cta__lattice {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(36, 48, 74, .06) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(36, 48, 74, .06) 2px, transparent 2px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
}
.cta__body { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 16px 0 14px; }
.cta p { color: var(--ink-soft); max-width: 34em; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta__note { font-size: .84rem; font-weight: 500; color: var(--ink-soft); }

.cta__shot {
  position: relative;
  max-width: 236px;
  padding: 9px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--sh-lg);
  transform: rotate(3deg);
}
.cta__shot img { border-radius: 22px; aspect-ratio: 576 / 1024; object-fit: cover; }

/* ---------- 19. FOOTER ---------- */
.foot {
  padding: 62px 0 26px;
  background: var(--ink);
  color: #EDE6DC;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 38px;
}
.foot__brand { display: flex; align-items: flex-start; gap: 14px; }
.foot__brand img { width: 52px; height: 52px; border-radius: 15px; }
.foot__brand strong { font-family: var(--f-display); font-size: 1.28rem; font-weight: 400; color: #fff; }
.foot__brand p { font-size: .9rem; color: #B9C0D0; }

.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col h3 {
  font-family: var(--f-body);
  font-size: .76rem; font-weight: 700; letter-spacing: .18em;
  color: #8E97AC;
  margin-bottom: 4px;
}
.foot__col a {
  font-size: .93rem;
  color: #DDE2EC;
  width: fit-content;
  transition: color .2s var(--ease);
}
.foot__col a:hover { color: var(--gold); }

.foot__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .84rem;
  color: #98A1B6;
}
.foot__tag { font-family: var(--f-display); color: var(--gold); }

/* ---------- 20. MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(36, 48, 74, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in .22s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }

.modal__box {
  position: relative;
  width: 100%; max-width: 430px;
  padding: 40px 32px 32px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  text-align: center;
  animation: pop-in .3s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.modal__box h2 { font-size: 1.6rem; margin-bottom: 10px; }
.modal__box p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 24px; }
.modal__ico {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--pink-soft);
  color: #C93168;
}
.modal__ico .ico { width: 30px; height: 30px; }
.modal__x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal__x:hover { background: var(--paper-2); color: var(--ink); }

/* ============================================================
   21. 반응형 — 1024 / 900 / 640 / 400
   ============================================================ */
@media (max-width: 1320px) {
  .rail { display: none; } /* 좁은 화면에서는 경로 레일 숨김 */
}

@media (max-width: 1024px) {
  .section { padding: 84px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 74px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__visual { max-width: 620px; margin: 0 auto; }
  .ticker { margin-top: 72px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide { grid-column: span 2; }
  .bento__cell--soft { grid-column: span 2; grid-row: auto; }

  .reviews { grid-template-columns: 1fr; }
  .tips__grid { grid-template-columns: 1fr; gap: 34px; }
  .tips__shot { order: -1; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* 스텝: 좌측 정렬 단일 컬럼 경로로 전환 */
  .steps::before { left: 27px; }
  .steps__item { padding: 0 !important; align-items: flex-start; }
  .steps__item:nth-child(odd) .steps__num { order: 0; }
  .steps__item:nth-child(odd) .steps__card { order: 0; }
  .steps__card { max-width: none; }

  .cta { grid-template-columns: 1fr; padding: 38px 28px; text-align: center; }
  .cta p { margin-inline: auto; }
  .cta__btns { justify-content: center; }
  .cta__shot { justify-self: center; transform: none; }

  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 66px 0; }
  .shead { margin-bottom: 38px; }
  .shead--row { flex-direction: column; align-items: flex-start; }

  /* 좁은 화면에서는 내비 CTA 를 숨기고 접이식 메뉴 안의 버튼을 사용 */
  .nav__right .btn--cta { display: none; }
  .nav__inner { padding-right: 8px; }

  .hero { padding-top: calc(var(--nav-h) + 26px); }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__cta .btn { width: 100%; }
  .hero__stats > div { flex: 1 1 100%; text-align: center; }

  .miniboard { padding: 11px; }
  .miniboard__hint { display: none; }
  .hero__phone { width: 118px; margin-bottom: 4px; }
  .ticker { margin-top: 52px; }

  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide,
  .bento__cell--soft { grid-column: span 1; grid-template-columns: 1fr; text-align: left; }
  .bento__shot { justify-self: center; max-width: 190px; }
  .bento__shot--tilt { transform: none; }
  .bento__cell { padding: 22px; }

  .gal__item { width: 208px; }
  .gal__track { padding-inline: 24px; }

  .foot__grid { grid-template-columns: 1fr; gap: 26px; }
  .foot__brand { grid-column: span 1; }
  .foot__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  /* 초소형 화면: 프레임 하단 콜라주를 세로로 쌓음 */
  .hanok__foot { grid-template-columns: 1fr; }
  .hero__phone { width: 100%; max-width: 190px; justify-self: center; margin-bottom: 0; transform: none; animation: none; }
}

/* ---------- 22. 접근성: 모션 최소화 선호 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .petals { display: none; }
}

/* ---------- 23. 인쇄 ---------- */
@media print {
  .nav, .rail, .scroll-progress, .modal, .bg-layer, .ticker { display: none !important; }
  body { background: #fff; }
}
