/* ---------- theme tokens ---------- */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
  --line: #ececec;
  --accent: #111111;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav__left { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.nav__brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}

/* language selector (하드코딩 — 실제 i18n 아님) */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.nav__lang a { color: var(--fg); text-decoration: none; opacity: 0.5; }
.nav__lang a:hover { opacity: 0.8; }
.nav__lang a[aria-current="page"] { opacity: 1; }
.nav__lang span { opacity: 0.3; }

.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.7;
}
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
/* 좁아지면 로고+언어 줄 / 메뉴 줄로 분리 */
@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 16px clamp(20px, 5vw, 64px);
  }
  .nav__left { width: 100%; justify-content: space-between; }
  .nav__links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
  }
}
@media (max-width: 400px) {
  .nav__links { font-size: 13px; }
  .nav__brand { font-size: 19px; }
}

/* ---------- sections ---------- */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.shop-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lead {
  margin-top: 24px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
  font-weight: 500;
}
.section-lead {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 20px);
  color: var(--muted);
  max-width: 46ch;
}
.cta {
  margin-top: 40px;
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.cta:hover { opacity: 0.85; }

/* ---------- logo product card ---------- */
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(340px, 80vw);
  aspect-ratio: 4 / 3;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
.logo-img {
  width: 72%;
  height: auto;
  object-fit: contain;
}

/* ---------- product modal (popup) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(0, 0, 0, 0.4);
  overflow-y: auto;
}
.modal.open { display: block; }
.modal__panel {
  --p-bg: #f4efe3;
  --p-fg: #2b2620;
  --p-muted: #6f6754;
  --p-line: #e2d9c6;
  position: relative;
  max-width: 1040px;
  margin: 40px auto;
  background: var(--p-bg);
  color: var(--p-fg);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
}
/* 왼쪽 사진 / 오른쪽 설명 */
.modal__body {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 18px;
  align-items: start;
}
.modal__info { min-width: 0; }
@media (max-width: 760px) {
  .modal__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 120px 22px 72px; }
  .modal__panel {
    margin: 14px;
    padding: 44px 20px 28px;
    border-radius: 20px;
  }
  .modal__close { top: 12px; right: 12px; }
}

/* ---------- carousel (버튼 슬라이드 + 하단 마커) ---------- */
.carousel { position: relative; max-width: 230px; margin: 0 auto; }
.carousel__viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--p-line);
}
.carousel__track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  display: block;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  line-height: 1;
  color: #222222;
  cursor: pointer;
}
.carousel__nav:hover { background: #ffffff; }
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cabfa6;
  cursor: pointer;
}
.carousel__dot.is-active { background: var(--p-fg); }
.modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #e7ddc8;
  font-size: 20px;
  line-height: 1;
  color: var(--p-fg);
  cursor: pointer;
}
.modal__close:hover { background: #ddcfb4; }

.modal__logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 0 4px;
}
.modal__sub {
  font-size: 14px;
  color: var(--p-muted);
}
.modal__cta {
  margin-top: 16px;
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--p-fg);
  color: var(--p-bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.modal__cta:hover { opacity: 0.88; }

/* 애플 스타일 서비스 핵심 정리 */
.features { list-style: none; margin: 0; }
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--p-line);
}
.feature:first-child { border-top: none; padding-top: 0; }
.feature__icon {
  flex: none;
  width: 34px;
  height: 34px;
}
.feature__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.feature__text { font-size: 14.5px; line-height: 1.55; }
.feature__text b { display: block; font-weight: 700; margin-bottom: 2px; color: var(--p-fg); }
.feature__text span { color: var(--p-muted); }

/* click-to-expand policy accordions (native <details>) */
.policies { border-top: 1px solid var(--p-line); }
.policy { border-bottom: 1px solid var(--p-line); }
.policy > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-size: 16px;
  font-weight: 700;
  position: relative;
}
.policy > summary::-webkit-details-marker { display: none; }
.policy > summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #9a8f78;
}
.policy[open] > summary::after { content: "\2013"; }
.policy__body {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4235;
  padding: 4px 0 24px;
}

/* ---------- contact / FAQ popup ---------- */
.contact-hint { margin-top: 20px; font-size: 14px; color: var(--muted); }
.modal--faq .modal__panel { max-width: 620px; }
.faq__cat {
  margin: 20px 0 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8f78;
}
.modal--faq .modal__sub + .faq__cat { margin-top: 14px; }
.faq__contact {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--p-line);
}
.faq__contact p { font-size: 14px; color: var(--p-muted); line-height: 1.6; }
.faq__email { margin-top: 10px; font-weight: 600; color: var(--p-fg); }

/* ---------- story photos ---------- */
.story-photos {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 760px;
}
.story-photos img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
@media (max-width: 640px) {
  .story-photos { grid-template-columns: 1fr; gap: 12px; }
  .story-photos img { height: 240px; }
}
