/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:root {
  --ink: #f7f6f3;
  --shadow-ink: #111111;
  --mist: rgba(247, 246, 243, 0.72);
  --overlay-dark: rgba(9, 11, 12, 0.28);
  --overlay-vignette: rgba(0, 0, 0, 0.5);
  --line: rgba(247, 246, 243, 0.32);
  --card-bg: #f6f3ee;
}

html:has(body.cinematic-page) {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  /* Android gesture bar inherits this colour, hiding the white bar */
  background-color: #090b0c;
}

body.cinematic-page {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% -20%, #1e2c32 0%, #111517 48%, #090b0c 100%);
  color: var(--ink);
}

/* Hero is always visible — no reveal animation */
.media-block--hero[data-reveal] {
  opacity: 1;
  transform: none;
}

.cinematic-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 32px;
  background: transparent;
}

/* Burger button — top left */
.cinematic-burger {
  justify-self: start;
  width: 21px;
  height: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.cinematic-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.cinematic-burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.cinematic-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.cinematic-burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Logo — top centre */
.cinematic-logo-link {
  justify-self: center;
  width: fit-content;
  color: var(--ink);
}

.cinematic-nav .logo-heading {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 14px;
  color: var(--ink);
  margin: 0;
}

/* Basket — top right */
.cinematic-basket {
  justify-self: end;
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.cinematic-basket svg {
  width: 21px;
  height: 21px;
}

.cinematic-basket-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f8ede2;
  color: #201a14;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
}

/* Fullscreen slide-out menu */
.cinematic-menu {
  position: fixed;
  z-index: 29;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(9, 11, 12, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.cinematic-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.cinematic-menu a {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 200ms ease;
}

.cinematic-menu a:hover {
  opacity: 1;
}

.media-block {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* fills the actual visible area on iOS Safari */
  display: grid;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.media-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 28%, var(--overlay-vignette) 100%);
}

.media-block-video,
.media-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-block-video {
  position: absolute;
  inset: 0;
}

.media-block--still {
  background: linear-gradient(150deg, #1b2226 0%, #102532 48%, #4e6979 100%);
}

.media-still {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(11, 14, 16, 0.6), rgba(26, 52, 63, 0.35));
}

.media-still::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed var(--line);
}

.media-still p {
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.media-overlay {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 0 7vw 9vh;
  max-width: 840px;
}

.media-overlay--right {
  justify-self: end;
  text-align: right;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mist);
}

.media-overlay h1,
.media-overlay h2 {
  font-family: "Noto Serif Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.media-overlay h1 {
  font-size: clamp(3rem, 10vw, 7.2rem);
}

.media-overlay h2 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

/* Highlighted copy block */
.highlight-copy {
  position: absolute;
  z-index: 2;
  bottom: 7vh;
  left: auto;
  right: 7vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}


.highlight-copy--right {
  text-align: right;
}

.highlight-copy--left {
  right: auto;
  left: 7vw;
  align-items: flex-start;
  text-align: left;
}

.highlight-copy p {
  position: relative;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 500;
  line-height: 1.8;
  color: #111;
  padding: 2px 10px;
}

.highlight-copy p::before {
  content: '';
  position: absolute;
  inset: 5% -2px;
  background: rgba(255, 230, 0, 0.45);
  transform: rotate(-1.5deg);
  z-index: -1;
  border-radius: 2px;
}

.highlight-copy--white p::before {
  background: rgba(255, 255, 255, 0.50);
}

.highlight-copy p {
  opacity: 1;
  transition: opacity 800ms ease;
}

.highlight-copy.is-dissolving p {
  opacity: 0;
}

.highlight-copy.is-dissolving p::before {
  opacity: 0;
  transition: opacity 800ms ease;
}

/* Bottom-right positioned conversation (video 2 etc.) */
.chat-conversation.chat-conversation--bottom-right {
  bottom: 7vh;
  right: 7vw;
  left: auto;
  top: auto;
  transform: none;
  width: 420px;
}

/* Top-right positioned conversation (video 8 etc.) */
.chat-conversation.chat-conversation--top-right {
  top: 12vh;
  right: 7vw;
  left: auto;
  bottom: auto;
  transform: none;
  width: 420px;
}

.chat-icon-clip {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.6;
}

.overlay-copy {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--mist);
}

.overlay-cta {
  margin-top: 30px;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 13px 20px;
  transition: background-color 180ms ease, color 180ms ease;
}

.overlay-cta:hover {
  background: var(--ink);
  color: var(--shadow-ink);
}

/* Still section heading */
.still-heading {
  position: relative;
  z-index: 2;
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}

/* ── Chat conversation bubbles ── */
.chat-conversation {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -23%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
  max-width: 420px;
  width: 100%;
}

.chat-bubble {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
  padding: 16px 20px;
  border-radius: 20px;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.55;
}

.chat-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-sender {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.7;
}

.chat-bubble--agent {
  align-self: flex-start;
  max-width: 85%;
  background: rgba(30, 30, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--ink);
  border-bottom-left-radius: 0;
}

.chat-bubble.chat-bubble--dark {
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.chat-bubble--user {
  align-self: flex-end;
  max-width: 85%;
  background: rgba(247, 246, 243, 0.72);
  color: #181512;
  border-bottom-right-radius: 0;
}

.chat-bubble--user .chat-sender {
  color: #181512;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble.is-dissolving {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.chat-tagline-group {
  position: absolute;
  z-index: 2;
  left: 7vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.chat-tagline {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms ease, transform 900ms ease;
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-align: left;
  text-transform: none;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.chat-tagline.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  opacity: 0;
  animation: scroll-cue-in 800ms ease forwards 9s, scroll-cue-pulse 2s ease-in-out 9.8s infinite;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  line-height: 0;
}

.scroll-cue svg {
  width: 32px;
  height: 32px;
}

@keyframes scroll-cue-in {
  to { opacity: 0.7; }
}

@keyframes scroll-cue-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ── Homepage bottom-left nav CTA buttons ── */
.hero-nav-ctas {
  position: absolute;
  z-index: 10;
  bottom: 7vh;
  left: 7vw;
  display: flex;
  gap: 12px;
  pointer-events: all;
}

.hero-nav-btn {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(247, 246, 243, 0.7);
  padding: 11px 20px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  display: inline-block;
}

.hero-nav-btn:hover {
  background: var(--ink);
  color: var(--shadow-ink);
  border-color: var(--ink);
}

.plans-shell {
  min-height: auto;
  padding: 12vh 24px 14vh;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #080b0c 0%, #0e1214 24%, #f3efea 24%, #f3efea 100%);
}

.plans-shell::after {
  display: none;
}

.plans-shell-inner {
  max-width: 1120px;
  margin: 0 auto;
  color: #181512;
}

.plans-shell .eyebrow {
  text-align: center;
  color: rgba(24, 21, 18, 0.66);
}

.plans-title {
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 34px;
  line-height: 1.04;
  font-weight: 600;
}

.plans-shell .product-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: var(--card-bg);
}

[data-reveal] {
  opacity: 0;
  transition: opacity 800ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
}

@media (max-width: 960px) {
  .cinematic-nav {
    padding: 18px 18px;
  }

  .cinematic-nav .logo-heading {
    font-size: 30px;
    letter-spacing: 8px;
  }

  .media-overlay {
    padding: 0 18px 36px;
  }

  .media-overlay h1 {
    font-size: clamp(2.7rem, 12.5vw, 4.2rem);
  }

  .media-overlay h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .media-overlay--right {
    justify-self: start;
    text-align: left;
  }

  .highlight-copy {
    bottom: 5vh;
    max-width: calc(100% - 36px);
  }

  /* On the last section, the CTA buttons sit at the bottom-left.
     Lift the highlight text above them so they don't clash. */
  .media-block:last-of-type .highlight-copy {
    bottom: calc(5vh + 64px);
  }

  .highlight-copy--left {
    left: 18px;
    right: auto;
    text-align: left;
    align-items: flex-start;
  }

  .highlight-copy--right {
    right: 18px;
    left: auto;
    text-align: right;
    align-items: flex-end;
  }

  .hero-nav-ctas {
    bottom: 5vh;
    left: 18px;
    gap: 10px;
  }

  .hero-nav-btn {
    font-size: 10px;
    padding: 9px 16px;
  }

  .chat-conversation {
    padding: 0 16px;
  }

  .chat-conversation.chat-conversation--top-right {
    top: 10vh;
    right: 16px;
    width: calc(100% - 32px);
  }

  .chat-conversation.chat-conversation--bottom-right {
    right: 16px;
    left: auto;
    width: calc(100% - 32px);
  }

  .chat-bubble {
    font-size: 0.88rem;
  }

  .still-heading {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .plans-shell {
    background: linear-gradient(180deg, #080b0c 0%, #0e1214 16%, #f3efea 16%, #f3efea 100%);
  }
}

/* Small iPhones (SE, 12 mini, etc.) — prevent highlight wrapping to double height */
@media (max-width: 390px) {
  .highlight-copy {
    max-width: calc(100% - 24px);
    gap: 4px;
    right: 12px;
  }

  .highlight-copy--left {
    left: 12px;
    right: auto;
  }

  /* white-space: nowrap keeps each <p> single-line so the ::before
     highlight block never doubles in height on a wrapped line. */
  .highlight-copy p {
    font-size: 0.88rem;
    padding: 2px 7px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-block-video {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transition: none;
  }

  .chat-bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
