/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --orange: #FF4A0F;
  --cream: #F4EFE6;
  --black: #0A0A0A;
  --grey: #C9C2B5;
  --radius-sheet: 24px;
  --sheet-height: 90dvh;
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sheet-duration: 0.44s;
  --hero-video-nudge: -5dvh;
  --hero-video-zoom: 1.06;
  --font-body: 'Neue Montreal', system-ui, sans-serif;
}

/* ─────────────────────────────────────────
   FONTS
───────────────────────────────────────── */
@font-face {
  font-family: 'Somik';
  src: url('../assets/site/fonts/SOMIK-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('../assets/site/fonts/NeueMontreal-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────────────────────
   ROOT — scroll locked, fallback bg for
   Safari Liquid Glass chrome sampling
───────────────────────────────────────── */
html, body {
  overflow: hidden;
  background-color: var(--grey);
  font-family: var(--font-body);
}

/* ─────────────────────────────────────────
   HERO — document flow (not fixed)

   Safari Liquid Glass rule: background media
   must be tall content in normal document flow.
   Asset ratio ≥ 2.17 (e.g. 1170×2540).
───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__bg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  transform: translateY(var(--hero-video-nudge)) scale(var(--hero-video-zoom));
}

.hero__ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100dvh;
  pointer-events: none;
}

.hero__ui > * {
  pointer-events: auto;
}

/* ─────────────────────────────────────────
   LOGO
───────────────────────────────────────── */
.hero__logo-btn {
  position: absolute;
  top: max(env(safe-area-inset-top, 0px), 20px);
  left: 20px;
  z-index: 3;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.hero__logo {
  display: block;
  width: 72px;
  height: auto;
}

/* ─────────────────────────────────────────
   HERO STAGE — bottle + floating targets
───────────────────────────────────────── */
.hero__stage {
  position: absolute;
  top: max(env(safe-area-inset-top, 0px), 0px);
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero__stage > * {
  pointer-events: auto;
}

/* ─────────────────────────────────────────
   FLOATING TAP TARGETS
   CSS entrance — no JS required to appear
───────────────────────────────────────── */
@keyframes tap-enter {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-idle {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1) translateY(-4px); }
}

.tap-target {
  position: absolute;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  z-index: 5;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.28);
  animation:
    tap-enter 0.45s cubic-bezier(0.32, 0.72, 0, 1) both,
    float-idle 3s ease-in-out infinite alternate;
}

.tap-target--info {
  top: 22%;
  right: 6%;
  width: 108px;
  height: 108px;
  padding: 12px;
  background: var(--orange);
  color: var(--black);
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  animation-delay: 0.3s, 1.1s;
  clip-path: polygon(
    50% 0%, 62% 18%, 82% 8%, 74% 30%, 98% 38%, 76% 50%,
    88% 74%, 62% 68%, 50% 92%, 38% 68%, 12% 74%, 24% 50%,
    2% 38%, 26% 30%, 18% 8%, 38% 18%
  );
}

.tap-target--info span {
  display: block;
  max-width: 64px;
  margin: 0 auto;
  text-align: center;
}

.tap-target--pack {
  top: 44%;
  left: 5%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--black);
  color: var(--black);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  animation-delay: 0.5s, 1.3s;
}

.tap-target--pack span {
  text-align: center;
}

.tap-target:active {
  filter: brightness(0.95);
}

/* ─────────────────────────────────────────
   BUY CTA — centred pill, absolute inside .hero__ui
───────────────────────────────────────── */
.buy-cta {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--cream);
  border: none;
  border-radius: 14px;
  height: 58px;
  padding: 0 48px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(10, 10, 10, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  z-index: 2;
}

.buy-cta:active {
  transform: translateX(-50%) scale(0.97);
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.2);
}

/* ─────────────────────────────────────────
   UTILITY OVERLAY (logo tap)
───────────────────────────────────────── */
.utility-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--black);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  display: none;
  flex-direction: column;
  padding: max(env(safe-area-inset-top, 0px), 20px) 28px 40px;
}

.utility-overlay.is-visible {
  display: flex;
}

.utility-overlay.is-open {
  transform: translateX(0);
}

.utility-overlay__close {
  align-self: flex-end;
  border: none;
  background: none;
  color: var(--cream);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 48px;
}

.utility-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.utility-overlay__nav a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
}

/* ─────────────────────────────────────────
   DESKTOP
───────────────────────────────────────── */
@media (min-width: 768px) {
  .hero {
    height: 100dvh;
    overflow: hidden;
  }

  .hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(var(--hero-video-zoom));
  }

  .tap-target--info {
    right: 18%;
    top: 20%;
  }

  .tap-target--pack {
    left: 18%;
    top: 42%;
  }

  .buy-cta {
    left: 48px;
    bottom: max(env(safe-area-inset-bottom, 0px), 48px);
    transform: none;
  }

  .buy-cta:active {
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-target {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }

  .utility-overlay {
    transition: none;
  }
}

/* ─────────────────────────────────────────
   PEEK DISMISS
───────────────────────────────────────── */
.peek-dismiss {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10dvh;
  z-index: 9;
  cursor: pointer;
}

.peek-dismiss.is-active {
  display: block;
}

/* ─────────────────────────────────────────
   BUY SHEET
───────────────────────────────────────── */
.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--sheet-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--orange);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  overflow: hidden;
  touch-action: pan-y;
  will-change: transform;
  transition: transform var(--sheet-duration) var(--sheet-ease);
}

.sheet.is-visible {
  display: flex;
}

.sheet.is-dragging {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sheet { transition: none; }
}

@media (min-width: 768px) {
  .sheet {
    left: 50%;
    right: auto;
    width: 480px;
    border-radius: var(--radius-sheet);
    bottom: 32px;
    height: auto;
    max-height: calc(80dvh + env(safe-area-inset-bottom, 0px));
  }
}

.sheet__handle {
  width: 32px;
  height: 4px;
  background: rgba(10, 10, 10, 0.2);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sheet__heading {
  font-family: 'Somik', var(--font-body);
  font-size: 52px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
  padding: 8px 24px 0;
  flex-shrink: 0;
}

.sheet__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 0;
}

.sheet__section {
  padding: 0 24px;
  margin-bottom: 20px;
}

.product__name {
  font-family: 'Somik', var(--font-body);
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-bottom: 4px;
}

.product__price {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 12px;
}

.product__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(10, 10, 10, 0.65);
  line-height: 1.5;
}

.packs {
  padding: 0 24px;
  margin-bottom: 20px;
}

.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid rgba(10, 10, 10, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.pack.is-selected {
  background: rgba(10, 10, 10, 0.1);
  border-color: var(--black);
}

.pack__label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pack__price {
  font-size: 14px;
  font-weight: 900;
  color: var(--black);
}

.badge {
  background: var(--black);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 20px;
}

.qty {
  padding: 0 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  opacity: 0.5;
}

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

.qty__btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(10, 10, 10, 0.25);
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.qty__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  min-width: 44px;
  text-align: center;
  font-family: var(--font-body);
}

.add-to-cart {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  height: 58px;
  background: var(--black);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.12s;
}

.add-to-cart:active { opacity: 0.85; }

.sheet__divider {
  height: 1px;
  background: rgba(10, 10, 10, 0.12);
  margin: 0 24px 24px;
}

.benefits {
  padding: 0 24px;
  margin-bottom: 24px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--black);
  line-height: 1.4;
}

.benefit__dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--black);
  border-radius: 50%;
  margin-top: 1px;
}

.benefit__title {
  font-weight: 700;
  text-transform: uppercase;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px 40px;
}

.credential {
  border: 1px solid rgba(10, 10, 10, 0.22);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
}

/* ─────────────────────────────────────────
   PLACEHOLDER SHEET CONTENT
───────────────────────────────────────── */
.sheet__placeholder-title {
  font-family: 'Somik', var(--font-body);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.sheet__placeholder-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.7);
  margin-bottom: 20px;
}

.sheet__placeholder-list {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  padding-left: 20px;
}

.sheet__placeholder-list li {
  margin-bottom: 8px;
}

.pack-capture {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.pack-capture__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  opacity: 0.6;
}

.pack-capture__input {
  height: 48px;
  border: 1.5px solid rgba(10, 10, 10, 0.25);
  border-radius: 10px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 16px;
  background: rgba(244, 239, 230, 0.5);
}

.pack-capture__btn {
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
