:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, 0.76);
  --fg-faint: rgba(255, 255, 255, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --side-space: 24px;
  --bottom-ui-space: 54px;
  --content-max-width: 720px;
  --product-image-size: min(calc(100vw - 48px), 560px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

#site-root {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}

.section-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.section-track::-webkit-scrollbar {
  display: none;
}

.page {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  background: #000;
  overflow: hidden;
}

.page-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.page--immersive .page-image,
.page--gallery .page-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page--product .page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    calc(var(--safe-top) + 18px)
    var(--side-space)
    calc(var(--safe-bottom) + var(--bottom-ui-space));
  gap: 18px;
  overflow-y: auto;
}

.page--product .page-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page--product .page-image {
  width: min(100%, var(--product-image-size));
  max-width: var(--product-image-size);
  max-height: min(60svh, calc(100svh - 240px));
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.page-meta {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.home-title {
  position: absolute;
  top: calc(var(--safe-top) + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  z-index: 2;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-title {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 72px);
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 48px);
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title,
.text-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.page-title {
  font-size: clamp(1.55rem, 6vw, 2.3rem);
  text-transform: uppercase;
}

.page-price {
  font-size: 0.98rem;
  color: var(--fg-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-description {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--fg-soft);
}

.page--text .page-inner {
  overflow-y: auto;
  padding:
    calc(var(--safe-top) + 28px)
    var(--side-space)
    calc(var(--safe-bottom) + 32px);
  -webkit-overflow-scrolling: touch;
}

.text-shell {
  width: min(100%, var(--content-max-width));
  margin: 0 auto;
}

.text-shell--center {
  min-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.text-title {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-line,
.text-paragraph,
.faq-item p,
.faq-item li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.faq-intro {
  margin-bottom: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item h3 {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #ffffff;
}

.bullet-list {
  padding-left: 20px;
}

.section-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--safe-bottom) + 10px);
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.25rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.arrow.left {
  left: 14px;
}

.arrow.right {
  right: 14px;
}

.arrow.hidden {
  opacity: 0;
}

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

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dot.active {
  background: rgba(255, 255, 255, 0.96);
  transform: scale(1.08);
}

@media (min-width: 768px) {
  :root {
    --side-space: 36px;
    --product-image-size: min(calc(100vw - 96px), 620px);
  }

  .arrow.left {
    left: 24px;
  }

  .arrow.right {
    right: 24px;
  }
}
