/* =========================================================================
   WizCube — design tokens & components  (per design.md)
   ========================================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  /* color */
  --primary: #f37c20;
  --secondary: #ee5701;
  --ink: #15171c;
  --muted: #6b7280;
  --surface: #f7f7f5;
  --bg: #ffffff;
  --label: #ff5e00;
  --line: #e4e4e8;

  /* radius */
  --r-card: 22px;
  --r-panel: 28px;

  /* content width (tweakable) */
  --content: 1240px;

  /* hover elevation */
  --shadow-hover: 0 16px 38px rgba(20, 20, 30, 0.08);

  --font:
    "Pretendard Variable", "Pretendard", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  line-break: strict;
}

/* ---------- layout ---------- */
.wrap {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin-inline: auto;
}
.section {
  padding-block: 96px;
}
.section--tight {
  padding-block: 64px;
}

/* ---------- type ---------- */
h1,
h2,
h3,
p {
  margin: 0;
}
.h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}
.muted {
  color: var(--muted);
}
.label {
  font-size: 14px;
  font-weight: 700;
  color: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stat-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding-inline: 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ink);
}

/* ---------- app store badges (placeholder) ---------- */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 56px;
  padding-inline: 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.badge strong,
.badge small {
  white-space: nowrap;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.badge__mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.badge strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ---------- line icon ---------- */
/* [이전 코드] .icon svg { stroke: var(--primary); ... } ((icons/ 폴더 외부 SVG + mask-image ::before 방식으로 전환)) */
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  /* 아이콘 이미지를 ::before로 렌더링 */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
/* 공통 아이콘 ::before 기반 */
.icon::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background-color: var(--primary); /* 아이콘 색상 = 브랜드 주색 */
}

/* ---------- image placeholder ---------- */
.ph {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(21, 23, 28, 0.035) 0,
    rgba(21, 23, 28, 0.035) 1px,
    transparent 1px,
    transparent 11px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ph__tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}

/* ---------- scroll reveal ---------- */
/* opacity is only suppressed when JS is active (html.js); if scripts don't
   run (e.g. opened as a bare file), content stays fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.08s;
}
.reveal[data-d="2"] {
  transition-delay: 0.16s;
}
.reveal[data-d="3"] {
  transition-delay: 0.24s;
}

/* =========================================================================
   WizCube — page layout (home)
   ========================================================================= */

/* ---------- 1920 scaler ---------- */
#scaler {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  /* 1920 캔버스보다 넓은 화면에서는 가운데 정렬(한쪽만 비는 현상 방지) */
  display: flex;
  justify-content: center;
}
#page {
  width: 1920px;
  transform-origin: top left;
  flex: none; /* flex 컨테이너(#scaler)가 1920 캔버스를 줄이지 않도록 고정 */
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
}
/* 헤더 흰색 바를 화면 가로 전체로 확장(가운데 정렬된 1920 캔버스 밖까지).
   #scaler { overflow:hidden } 이 화면 끝에서 잘라내므로 정확히 풀폭이 된다. */
.hdr::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1500px;
  right: -1500px;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(20, 20, 30, 0.06);
  z-index: 0;
}
.hdr__in {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin-inline: auto;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
}
/* .logo__slot 플레이스홀더를 실제 SVG 이미지 스타일로 전환 */
.logo__img {
  /* 기존 .logo__slot 크기 기준 유지 */
  height: 32px;
  width: auto;
  display: block;
  /* SVG 색상이 currentColor를 사용할 경우 인크 색 적용 */
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.nav a:hover {
  color: var(--secondary);
  background: var(--surface);
}
.nav a.active {
  color: var(--secondary);
  background: var(--surface);
}
.hdr__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 64px;
}
.hero__in {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  min-height: 720px;
}
.hero__copy {
  max-width: 600px;
}
.hero .label {
  margin-bottom: 20px;
  display: inline-block;
}
.hero .h1 {
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.hero__ghost {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__media {
  position: relative;
  height: 560px;
  border-radius: var(--r-card);
}
.hero__media .ph {
  position: absolute;
  inset: 0;
}
.hero__chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  background: var(--bg);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__chip .icon {
  width: 42px;
  height: 42px;
}
.hero__chip b {
  font-size: 16px;
  font-weight: 800;
  display: block;
  white-space: nowrap;
}
.hero__chip span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* hero — direction B (centered) */
#page[data-direction="B"] .hero__in {
  grid-template-columns: 1fr;
  text-align: center;
  min-height: auto;
  justify-items: center;
}
#page[data-direction="B"] .hero__copy {
  max-width: 760px;
}
#page[data-direction="B"] .hero__sub {
  margin-inline: auto;
}
#page[data-direction="B"] .hero__actions {
  align-items: center;
}
#page[data-direction="B"] .hero__media {
  width: var(--content);
  max-width: calc(100% - 48px);
  height: 480px;
  margin-top: 56px;
}
#page[data-direction="B"] .hero__chip {
  left: 40px;
}

/* hero — direction C (magazine / oversized type) */
#page[data-direction="C"] .hero {
  padding-top: 40px;
}
#page[data-direction="C"] .hero__in {
  grid-template-columns: 1fr;
  gap: 40px;
  min-height: auto;
}
#page[data-direction="C"] .hero .h1 {
  font-size: 104px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: none;
}
#page[data-direction="C"] .hero__copy {
  max-width: none;
}
#page[data-direction="C"] .hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 8px;
}
#page[data-direction="C"] .hero__media {
  height: 420px;
}
#page[data-direction="C"] .hero__sub {
  max-width: 420px;
  margin-bottom: 0;
}
#page[data-direction="C"] .hero__actions {
  align-items: flex-start;
}
#page:not([data-direction="C"]) .hero__row {
  display: contents;
}

/* ---------- section heading ---------- */
.sec-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.sec-head .label {
  display: inline-block;
  margin-bottom: 18px;
}
.sec-head .h2 {
  margin-bottom: 16px;
}
.sec-head p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature .icon {
  margin-bottom: 24px;
}
.feature .h3 {
  margin-bottom: 10px;
}
.feature p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.stat {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 36px 32px;
}
.stat .stat-num {
  color: var(--ink);
  margin-bottom: 8px;
}
.stat .stat-num em {
  color: var(--primary);
  font-style: normal;
}
.stat p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step__n {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step__n::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.step .icon {
  margin-bottom: 20px;
}
.step .h3 {
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- find a cube ---------- */
.find {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}
.find__map {
  position: relative;
  min-height: 520px;
  border-radius: var(--r-card);
  overflow: hidden;
}
.find__map .ph {
  position: absolute;
  inset: 0;
}
.find__pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(243, 124, 32, 0.18);
}
/* 실제 카카오 지도 컨테이너 — .find__map 영역을 가득 채움 */
#find-kakao-map {
  position: absolute;
  inset: 0;
}
/* 카카오 커스텀 마커(말풍선) */
.wizcube-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.wizcube-marker .marker-bubble {
  background: #fff;
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18), 0 0 0 1.5px rgba(243, 124, 32, 0.25);
  white-space: nowrap;
}
.wizcube-marker .marker-name {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
}
.wizcube-marker .marker-price {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
}
.wizcube-marker .marker-pin {
  width: 2px;
  height: 8px;
  background: rgba(0, 0, 0, 0.25);
}
/* 마커 클릭으로 선택된 카드 강조 */
.branch.is-active {
  box-shadow: 0 0 0 2px var(--primary), 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.find__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.branch {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}
.branch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.branch__name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.branch__meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.branch__tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.find__more {
  margin-top: 28px;
}

/* ---------- app cta panel ---------- */
.appcta {
  padding: 96px 0;
}
.appcta__panel {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin-inline: auto;
  background: var(--ink);
  border-radius: var(--r-panel);
  color: #fff;
  padding: 72px 72px 0;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: end;
  overflow: hidden;
}
.appcta .label {
  color: var(--primary);
}
.appcta__copy {
  padding-bottom: 72px;
}
.appcta__copy .h2 {
  color: #fff;
  margin: 16px 0 14px;
  font-size: 40px;
}
.appcta__copy p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 420px;
}
.appcta .badge {
  background: #fff;
  color: var(--ink);
}
.appcta .badge__mark {
  border-color: rgba(21, 23, 28, 0.35);
}
.appcta__phone {
  align-self: end;
  height: 360px;
  border-radius: 34px 34px 0 0;
  border: 10px solid #2a2d34;
  border-bottom: none;
  background: var(--bg);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(21, 23, 28, 0.05) 0,
    rgba(21, 23, 28, 0.05) 1px,
    transparent 1px,
    transparent 11px
  );
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
}
.appcta__phone .ph__tag {
  margin-top: 0;
}
.appcta__phone--img {
  padding: 0;
  background-image: none;
  overflow: hidden;
}
.appcta__phone--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- footer ---------- */
.foot {
  background: var(--bg);
  padding-top: 80px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
}
.foot__in {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
/* [이전 코드] .foot__brand .logo__slot { margin-bottom: 20px; } ((실제 이미지 클래스로 대체)) */
.foot__brand .logo__img {
  margin-bottom: 20px;
}
.foot__brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}
.foot__col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.foot__col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
}
.foot__col a:hover {
  color: var(--secondary);
}
.foot__biz {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}
.foot__biz p { margin: 0; }
.foot__biz strong { color: var(--ink); font-weight: 700; }
.foot__biz span { display: inline-block; }
.foot__biz span:not(:last-child)::after {
  content: "|";
  margin: 0 10px;
  color: var(--line);
}
.foot__bottom {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin: 48px auto 0;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.foot__bottom .sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 24px;
}
/* 하단 약관 링크: 하이퍼링크 표시 제거(밑줄/링크색 없이 주변 텍스트와 동일) */
.foot__bottom a {
  color: inherit;
  text-decoration: none;
}
.foot__bottom a:hover {
  color: var(--ink);
}

/* ===================== FIND PAGE ===================== */
.find-page {
  padding-top: 72px;
}
.find-head {
  margin-bottom: 32px;
}

.search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.search__field:focus-within {
  background: var(--bg);
  border-color: var(--primary);
}
.search__icon {
  color: var(--muted);
  flex: none;
}
.search__field input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 18px;
  color: var(--ink);
}
.search__field input::placeholder {
  color: var(--muted);
}
.search .btn {
  height: 64px;
  padding-inline: 36px;
  font-size: 17px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.chip {
  height: 42px;
  padding-inline: 20px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* empty / no-result */
.find-empty {
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 88px 32px;
}
.find-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.find-empty .h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.find-empty p {
  max-width: 420px;
  margin-inline: auto;
}
.find-noresult {
  padding: 72px 32px;
}

/* results */
.find-resbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.find-resbar__count {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.find-resbar__reset {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}
.find-resbar__reset:hover {
  color: var(--secondary);
}

.branch--full-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
}
.branch__main {
  flex: 1;
  min-width: 0;
}
.branch__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.branch__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.branch__sub .dot {
  opacity: 0.5;
}
.branch__tag--full {
  color: var(--muted);
  background: var(--bg);
}
.branch__btn {
  height: 46px;
  padding-inline: 24px;
}
.branch__action {
  flex: none;
}

.find__pin--full {
  background: var(--muted);
  box-shadow: 0 0 0 6px rgba(107, 114, 128, 0.16);
}

/* ===================== ABOUT ===================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 8px;
}
.about-story__img {
  height: 420px;
}
.about-story__text .h3 {
  margin-bottom: 16px;
}
.about-story__text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ===================== NOTICE ===================== */
.size-cap {
  font-size: 14px;
  font-weight: 700;
  color: var(--label);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.size-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.size-price strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}
.feature p {
  margin-bottom: 6px;
}

/* ---------- size carousel ---------- */
.size-carousel {
  position: relative;
}
.size-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.size-carousel__track::-webkit-scrollbar {
  display: none;
}
.size-carousel__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.size-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.size-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.size-carousel__btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.size-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.size-carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.size-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.size-carousel__dot.active {
  background: var(--primary);
  width: 24px;
}

.notice-list {
  display: flex;
  flex-direction: column;
}
.notice-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 8px;
  text-decoration: none;
  border-radius: 14px;
  transition:
    background 0.2s ease,
    padding 0.2s ease;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  width: 100%;
}
.notice-row + .notice-row {
  box-shadow: inset 0 1px 0 var(--line);
}
.notice-row:hover {
  background: var(--surface);
  padding-left: 20px;
  padding-right: 20px;
}
.notice-row__date {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
  width: 96px;
}
.notice-row__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Notice pagination ---- */
.notice-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.notice-pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.notice-pagination__btn:hover:not(:disabled) {
  background: var(--surface);
  color: var(--ink);
}
.notice-pagination__btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.notice-pagination__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---- Notice modal ---- */
.notice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 28, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.notice-modal-overlay.open {
  opacity: 1;
}
.notice-modal {
  background: var(--bg);
  border-radius: var(--r-panel);
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.22s ease;
  box-shadow: 0 24px 64px rgba(20, 20, 30, 0.18);
}
.notice-modal-overlay.open .notice-modal {
  transform: translateY(0);
}
.notice-modal__head {
  flex: none;
  padding: 44px 44px 0;
  position: relative;
}
.notice-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
  padding: 0;
  font-family: var(--font);
}
.notice-modal__close:hover {
  background: var(--line);
  color: var(--ink);
}
.notice-modal__date {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.notice-modal__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0;
  padding-right: 32px;
}
.notice-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 44px 40px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-line;
}



/* ===================== CONTACT ===================== */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  resize: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--bg);
  border-color: var(--primary);
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---- Contact success modal ---- */
.contact-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 28, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.contact-success-overlay.open {
  opacity: 1;
}
.contact-success-panel {
  background: var(--bg);
  border-radius: var(--r-panel);
  padding: 56px 48px 48px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(20, 20, 30, 0.18);
  transform: translateY(14px);
  transition: transform 0.22s ease;
}
.contact-success-overlay.open .contact-success-panel {
  transform: translateY(0);
}
.contact-success-panel .contact-done__icon {
  margin-bottom: 20px;
}
.contact-success-panel .h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.contact-success-panel .muted {
  margin-bottom: 32px;
  line-height: 1.6;
}
.contact-success-panel__confirm {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.contact-success-panel__confirm:hover {
  opacity: 0.88;
}

/* ---- Honeypot (스팸 방지) ---- */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- Custom Select ---- */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.custom-select__trigger:focus,
.custom-select.open .custom-select__trigger {
  background: var(--bg);
  border-color: var(--primary);
}
.custom-select__indicator {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--muted);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.22s ease, background-color 0.2s ease;
}
.custom-select.open .custom-select__indicator {
  transform: rotate(180deg);
  background-color: var(--primary);
}
.custom-select__popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20, 20, 30, 0.12);
  border: 1px solid var(--line);
  padding: 6px;
  z-index: 200;
  display: none;
}
.custom-select.open .custom-select__popover {
  display: block;
  animation: cs-in 0.15s ease;
}
@keyframes cs-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  transition: background 0.12s ease;
}
.custom-select__option:hover {
  background: var(--surface);
}
.custom-select__option[aria-selected="true"] {
  font-weight: 700;
  color: var(--primary);
}
.custom-select__check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.custom-select__option[aria-selected="true"] .custom-select__check {
  opacity: 1;
}

.contact-done {
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 72px 32px;
}
.contact-done__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.contact-done .h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.contact-info {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info__block .label {
  display: block;
  margin-bottom: 12px;
}
.contact-info__big {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}
.contact-info__big--sm {
  font-size: 22px;
}
.contact-info__block p {
  margin-top: 8px;
}

/* =========================================================================
   아이콘 시스템 — icons/ 폴더 SVG 파일을 mask-image로 로드
   모든 .icon--* 클래스는 ::before 가상요소를 통해 렌더링됨
   ========================================================================= */

/* ── .icon 컨테이너 내부 아이콘 (stroke 계열) ── */
.icon--droplet::before {
  mask-image: url(icons/droplet.svg);
}
.icon--clock::before {
  mask-image: url(icons/clock.svg);
}
.icon--mobile::before {
  mask-image: url(icons/mobile.svg);
}
.icon--shield::before {
  mask-image: url(icons/shield.svg);
}
.icon--question::before {
  mask-image: url(icons/question.svg);
}
.icon--pin::before {
  mask-image: url(icons/pin.svg);
}
.icon--calendar::before {
  mask-image: url(icons/calendar.svg);
}
.icon--card::before {
  mask-image: url(icons/card.svg);
}
.icon--box::before {
  mask-image: url(icons/box.svg);
}
.icon--keypad::before {
  mask-image: url(icons/keypad.svg);
}

/* ── .badge__mark 아이콘 (fill 계열, 흰색으로 inherit) ── */
/* [이전 코드] badge__mark 내부에 <svg> 인라인 하드코딩 ((mask-image 방식으로 분리)) */
.badge__mark {
  /* 기존 flex 레이아웃 유지 — 아이콘은 ::before로 렌더링 */
}
.badge__mark::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background-color: currentColor; /* 배지 텍스트 색(흰색) 상속 */
}
/* Apple: mask-image 방식 — 흰색(currentColor) 단색 아이콘 */
.badge__mark--apple::before {
  mask-image: url(icons/apple.svg);
}

/* [\uc774\uc804 \ucf54\ub4dc] .badge__mark--google-play::before { mask-image: url(icons/google-play.svg); }
   ((mask-image\ub294 \ub2e8\uc0c9\ub9cc \uc9c0\uc6d0 \u2014 4\uc0c9 SVG\ub294 background-image\ub85c \uc804\ud658)) */
.badge__mark--google-play::before {
  /* mask \uacc4\uc5f4 \uc18d\uc131 \ubb34\ud6a8\ud654 */
  mask-image: none;
  /* \ubc30\uacbd\uc0c9 \uc0c1\uc18d(currentColor = \ud770\uc0c9) \uc81c\uac70 */
  background-color: transparent;
  /* 4\uc0c9 SVG\ub97c \uc6d0\ubcf8 \uc0c9\uc0c1 \uadf8\ub300\ub85c \ud45c\uc2dc */
  background-image: url(icons/google-play.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── 검색 아이콘 (.search__icon 빈 span으로 변환) ── */
/* [이전 코드] <svg class="search__icon"> 인라인 SVG ((span + mask-image로 분리)) */
.search__icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  mask-image: url(icons/search.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background-color: var(--muted); /* 검색 아이콘은 뮤트 컬러 */
}

/* ── 지점찾기 빈 결과 아이콘 (.find-empty__icon) ── */
/* [이전 코드] <svg> 인라인 ((::before mask-image로 분리)) */
.find-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}
.find-empty__icon::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  mask-image: url(icons/search.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background-color: var(--muted);
}

/* ── 문의 접수 완료 아이콘 (.contact-done__icon) ── */
/* [이전 코드] <svg> 인라인 ((::before mask-image로 분리)) */
.contact-done__icon::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  mask-image: url(icons/check.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background-color: currentColor; /* color: var(--primary) 상속 */
}


/* =========================================================================
   WizCube — 약관/정책 페이지
   ========================================================================= */
.terms-head { margin-bottom: 36px; }
.terms-head .label { display: inline-block; margin-bottom: 14px; }
.terms-head .h2 { margin-bottom: 12px; }
.terms-head .muted { max-width: 720px; line-height: 1.6; }

.terms__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.terms__tab {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.terms__tab:hover { border-color: var(--ink); color: var(--ink); }
.terms__tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.terms__body {
  max-width: 920px;
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
}
.terms__article {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 28px 0 10px;
}
.terms__article:first-child { margin-top: 0; }
.terms__line { margin: 0; }
.terms__gap { height: 12px; }
/* =========================================================================
   WizCube — 자주 묻는 질문(FAQ)  (notice 하드코딩 + #faq DB 공용 — <details> 기반)
   ========================================================================= */
.faq__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.faq__tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq__tab:hover { border-color: var(--ink); color: var(--ink); }
.faq__tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 920px;
}
.faq__list { display: flex; flex-direction: column; gap: 10px; }
/* 항목: 평소엔 은은한 카드, 열리면 흰 배경으로 살짝 떠오름 */
.faq__item {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: 0 26px;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq__item[open] {
  background: #fcf8f3;                       /* 흰색 대신 옅은 크림(브랜드 톤) — 눈 편함 */
  border-color: rgba(243, 124, 32, 0.16);
  box-shadow: 0 8px 22px rgba(20, 20, 30, 0.04);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq__item summary:hover { color: var(--primary); }
.faq__item[open] summary { color: var(--primary); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); } /* + → × */
/* 답변: 같은 카드 안에서 얇은 구분선으로 자연스럽게 이어짐 */
.faq__a {
  margin-top: 2px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(243, 124, 32, 0.14);
  color: #5c606a;                            /* 본문 가독성을 위해 살짝 진한 회색 */
  font-size: 15px;
  line-height: 1.85;
}
.faq__a p { margin: 0 0 10px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a img { max-width: 100%; height: auto; border-radius: 10px; }
