/* ─────────────────────────────────────────────────────────────────────────
   gloss landing - palette + layout
   Colours mirror src/app/landing/glossDesirePalette.ts (April 2026 spec).
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --deep: #0a0e1a;
  --canvas: #f8f6f2;
  --bone: #f0ede6;
  --violet: #5a50e4;
  --violet-rich: #3a287f;
  --violet-deep: #2d1b69;
  --warm-border: #e4e0d8;
  --text-muted: #747890;
  --error: #ef4444;

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Zalando Sans', system-ui, sans-serif;
  --font-h1: 'Zilla Slab', 'Zalando Sans', serif;
  --font-logo: 'Syne', serif;

  --mobile-lift: 96px;
  --mobile-phone-extra-lift: 28px;
  --mobile-phone-max-w: 360px;
  --mobile-phone-min-w: 280px;
  --mobile-phone-side-pad: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--deep);
  color: #fff;
  font-family: var(--font-sans);
  /* clip, not hidden: hidden turns these into scroll containers, which
     silently kills every position:sticky descendant (the scroll-video
     pin). clip prevents horizontal overflow without that side effect.
     The hidden line first is the fallback for pre-2022 engines. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  background: var(--deep);
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (min-width: 1000px) {
  html,
  body,
  .page {
    background: var(--canvas);
    color: var(--deep);
  }
}

/* ── Background Ken Burns carousel ────────────────────────────────────── */

.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Mobile parallax: pin the background to the viewport so the form + phone
   scroll over a stationary hero instead of dragging it off-screen. */
@media (max-width: 999px) {
  .bg {
    position: fixed;
  }
  /* Gentler Ken Burns on phones. The full-height `cover` crop already enlarges
     landscape photos a lot on a tall portrait viewport, so the desktop 1.15
     zoom reads as "too zoomed in" here. A much smaller scale keeps the image
     close to its un-zoomed cover framing. */
  .bg__slide {
    animation-name: kenBurnsMobile;
    background-size: cover;
    background-position: 70% center;
  }

  .bg__overlay {
    background:
      radial-gradient(
        ellipse 150% 88% at 0% 38%,
        rgba(248, 246, 242, 0.99) 0%,
        rgba(248, 246, 242, 0.98) 42%,
        rgba(248, 246, 242, 0.82) 62%,
        rgba(248, 246, 242, 0.36) 82%,
        rgba(248, 246, 242, 0) 100%
      ),
      linear-gradient(
        90deg,
        rgba(248, 246, 242, 0.98) 0%,
        rgba(248, 246, 242, 0.9) 46%,
        rgba(248, 246, 242, 0.38) 72%,
        rgba(248, 246, 242, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(248, 246, 242, 0.98) 0%,
        rgba(248, 246, 242, 0.86) 45%,
        rgba(248, 246, 242, 0.18) 76%,
        rgba(10, 14, 26, 0.58) 100%
      );
  }
}

/* Carousel wrapper. Each .bg__slide is absolutely stacked on top of the
   others; the staggered animation handles opacity + a slow scale-up
   (Ken Burns) so the image always feels alive even before the next
   slide takes over. Total cycle = 5 slides * 6s = 30s. */
.bg__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  /* will-change keeps the transform on its own compositor layer so the
     pan/zoom stays smooth even on low-power devices. */
  will-change: opacity, transform;
  animation: kenBurns 30s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger each slide so they cycle through one after another. The
   keyframe spans 30s total; each slide's "visible window" is ~6s,
   with a soft 1.2s fade between adjacent slides. */
.bg__slide:nth-child(1) { animation-delay:  0s; }
.bg__slide:nth-child(2) { animation-delay:  6s; }
.bg__slide:nth-child(3) { animation-delay: 12s; }
.bg__slide:nth-child(4) { animation-delay: 18s; }
.bg__slide:nth-child(5) { animation-delay: 24s; }

/* Slide 1 is the LCP image, so it ships in CSS (not data-bg) to paint on
   first load. Phones get a 900px/q60 crop; behind the dark gradient overlay
   the lower res/quality is invisible but roughly halves the bytes, which
   pulls mobile LCP under the 4s budget. The min-width rule swaps in the
   crisp 1280px image for desktop. URLs must match the <head> preloads. */
.bg__slide--first {
  background-image: url('https://images.unsplash.com/photo-1762843353685-0d85c8c882f3?w=900&q=60&auto=format&fit=crop');
}
@media (min-width: 769px) {
  .bg__slide--first {
    background-image: url('https://images.unsplash.com/photo-1762843353685-0d85c8c882f3?w=1280&q=70&auto=format&fit=crop');
  }
}

@keyframes kenBurns {
  /* Hidden state at the start of the cycle, pre-zoom. */
  0%   { opacity: 0; transform: scale(1.00) translate(0, 0); }
  /* Fade in over ~1.2s. */
  4%   { opacity: 1; }
  /* Hold visible while slowly zooming in + drifting up-left. */
  20%  { opacity: 1; transform: scale(1.15) translate(-1.5%, -1.5%); }
  /* Fade out over ~1.2s. */
  24%  { opacity: 0; transform: scale(1.16) translate(-1.5%, -1.5%); }
  /* Stay hidden + reset transform for the next cycle. */
  100% { opacity: 0; transform: scale(1.00) translate(0, 0); }
}

/* Mobile Ken Burns - same timing, far less zoom (≈5% vs 15%) so the
   full-height cover crop doesn't feel over-magnified on phones. */
@keyframes kenBurnsMobile {
  0%   { opacity: 0; transform: scale(1.00) translate(0, 0); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.05) translate(-1%, -0.5%); }
  24%  { opacity: 0; transform: scale(1.055) translate(-1%, -0.5%); }
  100% { opacity: 0; transform: scale(1.00) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  /* Respect reduced-motion: show only the first slide, no animation. */
  .bg__slide { animation: none; opacity: 0; }
  .bg__slide:nth-child(1) { opacity: 1; }
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.15) 42%,
    rgba(0, 0, 0, 0.1) 58%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.bg__top-gradient {
  display: none;
}

@media (max-width: 999px) {
  .bg__overlay {
    background:
      radial-gradient(
        ellipse 168% 96% at -18% 38%,
        rgba(248, 246, 242, 0.99) 0%,
        rgba(248, 246, 242, 0.98) 44%,
        rgba(248, 246, 242, 0.78) 62%,
        rgba(248, 246, 242, 0.34) 80%,
        rgba(248, 246, 242, 0) 100%
      ),
      linear-gradient(
        90deg,
        rgba(248, 246, 242, 0.98) 0%,
        rgba(248, 246, 242, 0.9) 52%,
        rgba(248, 246, 242, 0.28) 80%,
        rgba(248, 246, 242, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(248, 246, 242, 0.98) 0%,
        rgba(248, 246, 242, 0.92) 48%,
        rgba(248, 246, 242, 0.22) 78%,
        rgba(10, 14, 26, 0.62) 100%
      );
  }
}

@media (min-width: 1000px) {
  .bg__overlay {
    background:
      radial-gradient(
        ellipse 64% 92% at 19% 51%,
        rgba(248, 246, 242, 0.98) 0%,
        rgba(248, 246, 242, 0.97) 34%,
        rgba(248, 246, 242, 0.82) 50%,
        rgba(248, 246, 242, 0.46) 67%,
        rgba(248, 246, 242, 0.12) 82%,
        rgba(248, 246, 242, 0) 100%
      ),
      linear-gradient(
        90deg,
        rgba(248, 246, 242, 0.98) 0%,
        rgba(248, 246, 242, 0.92) 30%,
        rgba(248, 246, 242, 0.58) 50%,
        rgba(248, 246, 242, 0.16) 70%,
        rgba(10, 14, 26, 0.08) 100%
      ),
      linear-gradient(
        180deg,
        rgba(248, 246, 242, 0.18) 0%,
        rgba(248, 246, 242, 0) 34%,
        rgba(248, 246, 242, 0.58) 100%
      );
  }

  .bg__top-gradient {
    height: 200px;
  }
}

/* ── Header ───────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  padding: 16px 16px;
  /* Frosted-glass: anything scrolling beneath the header blurs through. */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

@media (max-width: 999px) {
  .header {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header__logo {
    color: var(--deep);
    text-shadow: 0 1px 22px rgba(248, 246, 242, 0.7);
  }
}


@media (min-width: 600px) {
  .header { padding: 16px 20px; }
}
@media (min-width: 1000px) {
  .header {
    position: absolute;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  transition: transform 0.2s;
}

.header__brand:hover {
  transform: scale(1.02);
}

.header__logo {
  font-family: var(--font-logo), 'Syne', serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}

@media (min-width: 1000px) {
  .header__logo {
    color: var(--deep);
    font-size: 40px;
    text-shadow: 0 1px 24px rgba(248, 246, 242, 0.68);
  }
}

.header__pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.header__pill--mobile {
  display: inline-block;
}

@media (min-width: 1000px) {
  .header__pill--mobile {
    display: none;
  }
}

/* ── Hero (mobile) ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 20;
}

.hero--mobile {
  display: flex;
  flex-direction: column;
  /* Center the copy + CTA as one group in the viewport, with the phone
     peeking up below. */
  justify-content: center;
  min-height: 100dvh;
  /* Bottom padding reserves the area the phone peeks up into. Must be
     >= the absolute value of .phone-section--mobile margin-top. */
  padding: calc(88px + env(safe-area-inset-top, 0px)) 16px 124px;
}

@media (min-width: 1000px) {
  .hero--mobile { display: none; }
}

.hero__copy {
  flex-shrink: 0;
  padding-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* Mobile: nudge the centered copy up 20px and sit it on a frosted-glass
   panel so the H1 / subtext stay legible over ANY hero photo (light or dark).
   The dark tint + blur normalise the contrast behind the text; the blur is
   prefixed for iOS / the Facebook in-app (WebKit) browser. */
.hero--mobile .hero__copy {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
}

/* Localized readability scrim behind the mobile hero copy. The global
   .bg__overlay is intentionally light in the middle (so the photo stays
   vivid), which left the H1/subtext fighting busy imagery. This soft
   navy gradient darkens ONLY the band the copy sits in and fades to
   transparent before the phone, so the image elsewhere stays rich. */
.hero__copy::before {
  display: none;
}

@media (max-width: 999px) {
  .hero__copy::before {
    display: none;
  }
}

.hero__h1 {
  margin: 16px 0;
  font-family: var(--font-sans) !important;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

@media (min-width: 600px) {
  .hero__h1 { font-size: 3.25rem; }
}

.hero__h1-white { color: #fff; }

/* Emphasised words read as white text inside a purple highlight (highlighter
   style) on BOTH mobile and desktop. box-decoration-break: clone keeps the
   highlight intact if a phrase ever wraps across two lines. */
.hero__h1-violet {
  color: #fff;
  background-color: var(--violet);
  padding: 0.05em 0.2em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 999px) {
  .hero__pill {
    background: rgba(248, 246, 242, 0.84);
    color: var(--violet-rich);
    border-color: rgba(228, 224, 216, 0.92);
    box-shadow: 0 16px 38px rgba(10, 14, 26, 0.08);
  }

  .channel-rail--mobile .channel-rail__icon {
    color: rgba(10, 14, 26, 0.54);
    opacity: 0.84;
  }

  .hero__h1 {
    color: var(--deep);
    text-shadow: none;
  }

  .hero__h1-white {
    color: var(--deep);
  }

  .hero__h1-violet {
    color: #4639d7;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }
}

/* ── Channel rail ─────────────────────────────────────────────────────────
   Horizontal row sitting above the hero on every /lp/* variant. Greyed by
   default; hover (desktop pointer) or .is-active (touch tap) reveals the
   brand colour. No auto-cycling. Shared across all variants - adding a
   new pillar slug doesn't require touching this list. */
.channel-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 24px 0;
  margin: 0;
  position: relative;
  z-index: 5;
}
/* Desktop and mobile rails share the same copy order; each version is hidden
   at the opposite breakpoint so only one rail is visible per viewport. */
.channel-rail--desktop { display: none; }
.channel-rail--mobile { display: flex; }
@media (min-width: 1000px) {
  .channel-rail--mobile { display: none; }
  .channel-rail--desktop {
    display: flex;
    padding: 4px 0 14px;
    margin: 0;
  }
}
.channel-rail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.2s ease, color 0.25s ease;
}
.channel-rail__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.channel-rail__icon svg path {
  /* Override even inline fills (TikTok's multi-colour paths) so the resting
     state is uniformly greyed. The :hover / .is-active rules below revert
     this for TikTok to bring its native cyan/pink/white back. */
  fill: currentColor !important;
}
@media (hover: hover) {
  .channel-rail__icon:hover {
    opacity: 1;
    transform: scale(1.12);
  }
}
.channel-rail__icon.is-active {
  opacity: 1;
  transform: scale(1.12);
}
@media (hover: hover) {
  .channel-rail__icon--instagram:hover   { color: #E1306C; }
  .channel-rail__icon--youtube:hover     { color: #FF0000; }
  .channel-rail__icon--facebook:hover    { color: #1877F2; }
  .channel-rail__icon--linkedin:hover    { color: #0A66C2; }
  .channel-rail__icon--whatsapp:hover    { color: #25D366; }
  .channel-rail__icon--tiktok:hover svg path { fill: revert !important; }
}
.channel-rail__icon--instagram.is-active   { color: #E1306C; }
.channel-rail__icon--youtube.is-active     { color: #FF0000; }
.channel-rail__icon--facebook.is-active    { color: #1877F2; }
.channel-rail__icon--linkedin.is-active    { color: #0A66C2; }
.channel-rail__icon--whatsapp.is-active    { color: #25D366; }
.channel-rail__icon--tiktok.is-active svg path { fill: revert !important; }

/* Mobile: tighter horizontal rhythm and slightly smaller hit targets. */
@media (max-width: 999px) {
  .channel-rail {
    gap: 10px;
    padding: 8px 0 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .channel-rail::-webkit-scrollbar {
    display: none;
  }
  .channel-rail__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-rail__icon {
    transition: none;
  }
  .channel-rail__icon:hover,
  .channel-rail__icon.is-active {
    transform: none;
  }
}

.hero__sub {
  font-size: 1.1875rem;
  color: #c4c8d0;
  font-weight: 500;
  margin: 0 0 12px;
  max-width: 36rem;
  line-height: 1.45;
  /* Readable on BOTH light and dark hero photos: a thin dark outline drawn
     behind the fill (paint-order keeps the letters crisp, not thinned) gives
     definition on light images; the layered drop shadow separates it from
     dark/busy ones. */
  paint-order: stroke fill;
  -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 14px rgba(0, 0, 0, 0.5);
}

@media (max-width: 999px) {
  .header__logo {
    color: var(--deep);
    text-shadow: 0 1px 22px rgba(248, 246, 242, 0.72);
  }

  .channel-rail--mobile .channel-rail__icon {
    color: rgba(10, 14, 26, 0.54);
    opacity: 0.84;
  }

  .hero__sub {
    color: #34394d;
    font-weight: 600;
    paint-order: normal;
    -webkit-text-stroke: 0;
    text-shadow: none;
  }
}

/* ── Phone (mobile section) ───────────────────────────────────────────── */

.phone-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 20;
}

.phone-section--mobile {
  padding: 16px 16px 32px;
  /* Pulls phone up so it peeks above the viewport bottom; magnitude must
     stay <= .hero--mobile padding-bottom so the form is never overlapped. */
  margin-top: -100px;
}

@media (min-width: 1000px) {
  .phone-section--mobile { display: none; }
}

.phone {
  position: relative;
  display: inline-block;
}

.phone--mobile {
  --phone-scale: calc(
    min(calc(100vw - calc(var(--mobile-phone-side-pad) * 2)), var(--mobile-phone-max-w)) / 375px
  );
  box-sizing: content-box;
  width: max(var(--mobile-phone-min-w), min(calc(100vw - calc(var(--mobile-phone-side-pad) * 2)), var(--mobile-phone-max-w)));
  height: calc(var(--phone-scale) * 800px);
  background: var(--deep);
  border-radius: calc(var(--phone-scale) * 44px);
  border: max(2px, calc(var(--phone-scale) * 3px)) solid var(--deep);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  margin: 0 auto;
  flex-shrink: 0;
}

.phone--mobile .phone__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 800px;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  border-radius: 41px;
  overflow: hidden;
  background: var(--deep);
}

.phone__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #0e0d0c;
}

.phone__expand {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  transition: background 0.2s;
}

.phone__expand:hover { background: rgba(0, 0, 0, 0.7); }

/* ── In-phone intent capture (overlay CTA + slide-up form) ────────────── */

/* Overlay CTA - currently unused. The slide-up form opens directly when
   the storefront iframe posts a gloss:cart_intent message, so we don't
   need a manual trigger button. Kept in the markup as a fallback in
   case we want to surface it again, but hidden by default. */
.phone__capture-cta {
  display: none;
}

/* Full-bezel slide-up panel. Sits above the iframe (z-index 130) and
   slides in from the bottom when [data-phone-capture="open"] fires. */
.phone__capture {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.55) 0%, rgba(10, 14, 26, 0.85) 30%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1);
  pointer-events: none;
}
.phone__capture.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

.phone__capture-inner {
  position: relative;
  background: var(--canvas);
  color: var(--deep);
  width: 100%;
  padding: 32px 24px 28px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
}

.phone__capture-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__capture-close:hover { background: rgba(0, 0, 0, 0.05); }

.phone__capture-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 6px;
  text-align: center;
  color: var(--deep);
}

.phone__capture-lede {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.5;
}

.phone__capture-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone__capture-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone__capture-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone__capture-input {
  color: var(--deep);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--warm-border);
  padding: 6px 0;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.phone__capture-input:focus { border-bottom-color: var(--violet); }

.phone__capture-error {
  color: var(--error);
  font-size: 0.75rem;
  text-align: center;
  margin: 0;
}

.phone__capture-submit {
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--deep);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.phone__capture-submit:hover { background: var(--violet); transform: scale(1.02); }
.phone__capture-submit:disabled { opacity: 0.65; cursor: wait; }

.phone__capture-view--done {
  text-align: center;
  padding: 20px 0 8px;
}
.phone__capture-done-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--violet);
  margin: 0 0 8px;
}
.phone__capture-done-lede {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Hero + Phone (desktop) ───────────────────────────────────────────── */

.hero--desktop {
  display: none;
}

@media (min-width: 1000px) {
  .hero--desktop {
    display: flex;
    max-width: 80rem;
    margin: 0 auto;
    padding: 90px 32px 40px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 100svh;
    gap: clamp(24px, 4vw, 64px);
  }
}

.hero__copy--desktop {
  max-width: 48rem;
  width: 100%;
  min-width: 600px;
  flex: 1 1 0;
  padding-bottom: 0;
}

@media (min-width: 1000px) {
  .hero__copy--desktop {
    max-width: 45rem;
    min-width: 0;
    padding: 28px 0;
  }
}

.hero__pill {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 9999px;
  background: rgba(10, 14, 26, 0.55);
  color: var(--bone);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(240, 237, 230, 0.2);
  margin-bottom: 24px;
}

@media (min-width: 1000px) {
  .hero__pill {
    background: rgba(248, 246, 242, 0.82);
    color: var(--violet-rich);
    border-color: rgba(228, 224, 216, 0.92);
    box-shadow: 0 18px 44px rgba(10, 14, 26, 0.08);
  }

  .channel-rail--desktop .channel-rail__icon {
    color: rgba(10, 14, 26, 0.54);
    opacity: 0.84;
  }

}

.hero__h1--desktop {
  font-family: var(--font-sans) !important;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 24px;
  max-width: 800px;
}

@media (min-width: 1000px) {
  .hero__h1--desktop {
    color: var(--deep);
    max-width: 690px;
    text-shadow: none;
  }

  .hero__h1--desktop .hero__h1-violet {
    color: #4639d7;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }
}

.hero__sub--desktop {
  font-size: 1.25rem;
  color: var(--bone);
  margin: 0 0 40px;
  max-width: 36rem;
  line-height: 1.625;
}

@media (min-width: 1000px) {
  .hero__sub--desktop {
    color: #34394d;
    max-width: 35rem;
    font-weight: 600;
    -webkit-text-stroke: 0;
    text-shadow: none;
  }
}

.phone--desktop {
  display: none;
}

/* Wrapper around the desktop phone. Hidden on mobile because .phone--desktop
   is too. */
.phone-stage {
  display: none;
}

@media (min-width: 1000px) {
  .phone-stage {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin: 0 auto;
  }

  /* Decorative platform badges are hidden here so they cannot clip the
     viewport or cover the storefront preview. */
  .phone-stage__platform {
    display: none;
  }

  .phone--desktop {
    display: inline-block;
    position: relative;
    width: 281.25px;
    height: 600px;
    background: var(--deep);
    border-radius: 33px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
  }

  .phone__inner--desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 375px;
    height: 800px;
    transform: scale(0.75);
    transform-origin: top left;
    border-radius: 41px;
    overflow: hidden;
    background: var(--deep);
  }
}

@keyframes phone-platform-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-stage__platform {
    animation: none;
    opacity: 1;
  }
}

/* ── Inline waitlist form (desktop, in place of the CTA button) ───────── */

.inline-waitlist {
  display: block;
  max-width: 26rem;
  margin: 0;
  position: relative;
}

.inline-waitlist__view--form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-waitlist__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Collapsed state - only the invite button shows until the user clicks it;
   the fields and any error stay hidden. The flex `gap` collapses
   automatically because the fields are removed from layout. */
.inline-waitlist.is-collapsed .inline-waitlist__field,
.inline-waitlist.is-collapsed .inline-waitlist__error {
  display: none;
}

.inline-waitlist__label {
  font-size: 0.75rem;
  color: var(--bone);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-waitlist__input {
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  padding: 8px 0;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}

.inline-waitlist__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.inline-waitlist__input:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.inline-waitlist__input:focus {
  border-bottom-color: var(--violet);
  background: transparent;
  box-shadow: none;
}

.inline-waitlist__error {
  color: #ff8a8a;
  font-size: 0.8125rem;
  margin: -4px 0 0;
}

.inline-waitlist__submit {
  margin-top: 12px;
  align-self: flex-start;
}

@media (min-width: 1000px) {
  .inline-waitlist__label {
    color: rgba(10, 14, 26, 0.62);
  }

  .inline-waitlist__input {
    color: var(--deep);
    border-bottom-color: rgba(10, 14, 26, 0.22);
  }

  .inline-waitlist__input::placeholder {
    color: rgba(10, 14, 26, 0.36);
  }

  .inline-waitlist__input:hover {
    border-bottom-color: rgba(10, 14, 26, 0.38);
  }

  .inline-waitlist__error {
    color: var(--error);
  }

  .inline-waitlist__view--done {
    background: rgba(248, 246, 242, 0.92);
    border-color: rgba(228, 224, 216, 0.9);
    box-shadow: 0 24px 60px rgba(10, 14, 26, 0.16);
  }
}

/* Mobile-only: form centered horizontally, pushed below copy via margin-top: auto. */
.inline-waitlist--mobile {
  /* Sits directly beneath the centered copy (no longer pinned to the bottom). */
  margin-top: 0;
  padding-top: 8px;
  align-self: flex-start;
  width: calc(100% - 48px);
  max-width: 360px;
}

.inline-waitlist--mobile .inline-waitlist__submit {
  align-self: flex-start;
}

/* Hide field labels on mobile - placeholders carry the meaning, this
   tightens the visual density right above the peeking phone. */
.inline-waitlist--mobile .inline-waitlist__label {
  display: none;
}

.inline-waitlist__view--done {
  background: rgba(20, 16, 40, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.inline-waitlist__view--done.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.inline-waitlist__done-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--violet);
  margin: 0 0 8px;
}

.inline-waitlist__done-lede {
  color: var(--bone);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}

/* ── CTAs ─────────────────────────────────────────────────────────────── */

.cta {
  padding: 14px 32px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  font-size: 0.9375rem;
  box-shadow: 0 8px 24px rgba(90, 80, 228, 0.33);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cta:hover {
  background: #fff;
  color: var(--violet);
  transform: scale(1.05);
}

/* Greyed-out state while the form is incomplete (or mid-submit). Overrides the
   hover lift/colour flip so a disabled CTA never looks interactive. */
.cta:disabled,
.cta:disabled:hover {
  background: rgba(120, 122, 138, 0.55);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.cta--desktop {
  padding: 20px 40px;
  font-size: 1rem;
  box-shadow: 0 20px 25px -5px rgba(90, 80, 228, 0.2);
}

.cta--ghost {
  background: transparent;
  color: var(--violet-rich);
  border: 1px solid var(--violet-rich);
  box-shadow: none;
}

.cta--ghost:hover {
  background: rgba(58, 40, 127, 0.04);
  color: var(--violet-rich);
  transform: none;
}

/* ── Conversion Story Sections ───────────────────────────────────────── */

.story-section {
  position: relative;
  z-index: 10;
  color: var(--deep);
}

.story-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.story-kicker {
  margin: 0 0 18px;
  color: var(--violet-rich);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-section h2 {
  margin: 0;
  max-width: 920px;
  color: var(--deep);
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6.2vw, 5.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.story-lede,
.story-head p,
.editorial-intro p,
.invite-panel p {
  margin: 26px 0 0;
  max-width: 660px;
  color: #555b70;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 500;
  line-height: 1.62;
}

.story-section--problem {
  padding: clamp(78px, 9vw, 118px) 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 246, 242, 1)),
    var(--canvas);
  border-top: 1px solid rgba(228, 224, 216, 0.82);
}

.problem-shell {
  display: grid;
  gap: clamp(36px, 6vw, 68px);
}

.problem-heading {
  max-width: 880px;
}

.problem-heading h2 {
  max-width: 840px;
  font-size: clamp(2.35rem, 5.5vw, 5.25rem);
  line-height: 1.01;
}

.problem-heading .story-lede {
  max-width: 700px;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

/* ── 01 / The Moment — impulse + curation value prop ─────────────────── */
.moment-layout {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 60px);
}

.moment-body {
  margin: 0 0 18px;
  max-width: 48ch;
  font-size: clamp(0.97rem, 1.3vw, 1.1rem);
  line-height: 1.72;
  color: rgba(248, 246, 242, 0.68);
}

.moment-stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid rgba(248, 246, 242, 0.12);
  padding-top: 24px;
}

.moment-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.moment-stat:first-child {
  padding-right: 20px;
  border-right: 1px solid rgba(248, 246, 242, 0.12);
}

.moment-stat:last-child { padding-left: 20px; }

.moment-stat dt {
  font-family: var(--font-gloss-serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  color: var(--violet-light, #a78bfa);
  line-height: 1.05;
}

.moment-stat dd {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.42);
  line-height: 1.4;
}

/* Comparison panels */
.moment-vis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 10px;
  overflow: hidden;
}

.moment-panel {
  padding: clamp(22px, 2.8vw, 34px) clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.moment-panel--old {
  background: rgba(10, 14, 26, 0.72);
}

.moment-panel--gloss {
  background: rgba(124, 108, 219, 0.11);
  border-left: 1px solid rgba(124, 108, 219, 0.2);
}

.moment-panel-label {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.34);
}

.moment-panel-label--g { color: rgba(167, 139, 250, 0.9); }

.moment-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.moment-panel-list li {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(248, 246, 242, 0.44);
  padding-left: 14px;
  position: relative;
}

.moment-panel-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 1px;
  background: rgba(248, 246, 242, 0.2);
}

.moment-panel-list--g li { color: rgba(248, 246, 242, 0.84); }

.moment-panel-list--g li::before {
  content: '→';
  width: auto;
  height: auto;
  top: auto;
  left: 0;
  background: none;
  color: rgba(167, 139, 250, 0.8);
  font-size: 0.72rem;
}

.moment-panel-end {
  margin: 0;
  font-family: var(--font-gloss-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: rgba(248, 246, 242, 0.28);
}

.moment-panel-end--g {
  font-style: normal;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--violet-light, #a78bfa);
}

.moment-panel-bgnum {
  position: absolute;
  bottom: -18px;
  right: -8px;
  font-size: clamp(100px, 14vw, 180px);
  font-weight: 800;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(124, 108, 219, 0.2);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

@media (max-width: 900px) {
  .moment-layout { grid-template-columns: 1fr; gap: 44px; }
  .moment-vis { grid-template-columns: 1fr; }
  .moment-panel--gloss { border-left: none; border-top: 2px solid rgba(124, 108, 219, 0.18); }
}

@media (max-width: 420px) {
  .moment-stat-pair { grid-template-columns: 1fr; gap: 16px; }
  .moment-stat:first-child { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(248, 246, 242, 0.1); padding-bottom: 16px; }
  .moment-stat:last-child { padding-left: 0; }
}

.leak-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(96px, 0.22fr) minmax(320px, 1.12fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.leak-node {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--warm-border);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 28px 80px -62px rgba(10, 14, 26, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.leak-node--hot {
  min-height: 430px;
  color: #fff;
  background: var(--deep);
}

.leak-node--cold {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 238, 236, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(20, 24, 48, 0.06) 24px 25px);
  color: #11131a;
  filter: grayscale(1);
  justify-content: flex-end;
}

.leak-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.02), rgba(10, 14, 26, 0.82)),
    url('/landing/assets/hero/hero-4.png') center / cover;
}

.product-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 18px;
  opacity: 0.82;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(245, 245, 243, 0.9) 58%, rgba(232, 232, 229, 0.96)),
    repeating-linear-gradient(0deg, rgba(10, 14, 26, 0.05) 0 1px, transparent 1px 38px);
}

.product-wall::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2; /* must wash over the bar/filters/grid so the copy stays legible */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(245, 244, 240, 0.58) 44%, rgba(245, 244, 240, 0.98) 74%);
}

.product-wall__bar,
.product-wall__filters,
.product-wall__grid {
  position: relative;
  z-index: 1;
}

.product-wall__bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(10, 14, 26, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
}

.product-wall__bar span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.22);
}

.product-wall__bar span:nth-child(1) { width: 54px; }
.product-wall__bar span:nth-child(2) { width: 34px; margin-left: auto; }
.product-wall__bar span:nth-child(3) { width: 18px; }

.product-wall__filters {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.product-wall__filters span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(10, 14, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(10, 14, 26, 0.44);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-wall__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-wall__grid span {
  min-height: 82px;
  border: 1px solid rgba(10, 14, 26, 0.1);
  border-radius: 6px;
  background-color: #e9e9e6;
  background-size: cover;
  background-position: center;
}

.leak-label,
.storefront-card span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leak-label {
  position: relative;
  z-index: 1;
  color: var(--violet-rich);
  margin-bottom: 14px;
}

.leak-node--hot .leak-label {
  color: rgba(255, 255, 255, 0.72);
}

.leak-node strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 10ch;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.leak-node p,
.leak-node li {
  position: relative;
  z-index: 1;
  color: #555b70;
  font-size: 0.96rem;
  line-height: 1.55;
}

.leak-node p {
  margin: 14px 0 0;
  max-width: 30ch;
}

.leak-node--hot p {
  color: rgba(255, 255, 255, 0.72);
}

.leak-node ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.leak-node li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 14, 26, 0.1);
}

.leak-transfer {
  min-height: 330px;
  display: grid;
  place-items: center;
  position: relative;
}

.leak-line {
  position: absolute;
  left: 50%;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, rgba(90, 80, 228, 0), rgba(90, 80, 228, 0.64), rgba(90, 80, 228, 0));
}

.leak-pulse {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 20px 50px rgba(90, 80, 228, 0.3);
}

.desire-arrow {
  width: 34px;
  height: 34px;
  margin: -6px auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.story-section--mechanism,
.story-section--invite {
  padding: clamp(86px, 10vw, 128px) 0;
  background: var(--deep);
  color: #fff;
}

.story-section--mechanism h2,
.story-section--invite h2,
.story-section--mechanism .story-kicker,
.story-section--invite .story-kicker {
  color: #fff;
}

.story-section--mechanism .story-kicker,
.story-section--invite .story-kicker {
  opacity: 0.74;
}

.story-section--mechanism .story-head p,
.story-section--invite .invite-panel p {
  color: rgba(255, 255, 255, 0.68);
}

.story-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.58fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: end;
  margin-bottom: 56px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.flow-grid article {
  min-height: 288px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.flow-grid article:last-child {
  border-right: 0;
}

.flow-grid article.is-featured {
  background:
    linear-gradient(180deg, rgba(90, 80, 228, 0.22), rgba(90, 80, 228, 0.04)),
    rgba(255, 255, 255, 0.055);
}

.flow-grid span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--bone);
  font-weight: 800;
  font-size: 0.86rem;
}

.flow-grid strong {
  margin-top: 80px;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.04;
}

.flow-grid p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.96rem;
  line-height: 1.55;
}

.channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.channel-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-section--visual {
  padding: clamp(86px, 10vw, 128px) 0;
  background: var(--canvas);
}

.editorial-intro {
  max-width: 920px;
  margin-bottom: 48px;
}

.storefront-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.storefront-card {
  min-height: 530px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid var(--warm-border);
  color: #fff;
}

.storefront-card:nth-child(2) {
  margin-top: 52px;
}

.storefront-card img {
  width: 100%;
  height: 100%;
  min-height: 530px;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
}

.storefront-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.02), rgba(10, 14, 26, 0.82));
}

.storefront-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.storefront-card span {
  color: rgba(255, 255, 255, 0.74);
}

.storefront-card h3 {
  margin: 9px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.storefront-card p {
  margin: 12px 0 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.5;
}

.story-section--proof {
  padding: clamp(78px, 9vw, 110px) 0;
  background: #fffdf8;
  border-top: 1px solid var(--warm-border);
}

.proof-shell {
  display: grid;
  gap: 38px;
}

.proof-heading {
  max-width: 860px;
}

.proof-heading h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
}

.proof-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 80px -70px rgba(10, 14, 26, 0.42);
}

.proof-ribbon article {
  min-height: 270px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--warm-border);
}

.proof-ribbon article:last-child {
  border-right: 0;
}

.proof-ribbon span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 40, 127, 0.2);
  color: var(--violet-rich);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: auto;
}

.proof-ribbon strong {
  display: block;
  color: var(--violet-rich);
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
  font-weight: 800;
  line-height: 1.05;
}

.proof-ribbon p {
  margin: 10px 0 0;
  color: #5b6175;
  font-size: 0.96rem;
  line-height: 1.5;
}

.invite-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.invite-panel .cta {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .story-shell {
    width: min(100% - 32px, 680px);
  }

  .story-grid,
  .story-head,
  .invite-panel {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .proof-ribbon {
    grid-template-columns: 1fr;
  }

  .leak-map {
    grid-template-columns: 1fr;
  }

  .leak-node,
  .leak-node--hot,
  .leak-transfer {
    min-height: auto;
  }

  .leak-node {
    padding: 24px;
  }

  .leak-node--hot {
    min-height: 360px;
  }

  .leak-transfer {
    height: 78px;
  }

  .leak-line {
    top: 0;
    bottom: 0;
  }

  .flow-grid article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .flow-grid article:last-child {
    border-bottom: 0;
  }

  .flow-grid strong {
    margin-top: 50px;
  }

  .story-section--visual {
    overflow: hidden;
  }

  .storefront-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    padding: 0 16px 18px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
  }

  .storefront-grid::-webkit-scrollbar {
    display: none;
  }

  .storefront-card,
  .storefront-card img {
    min-height: 420px;
  }

  .storefront-card {
    flex: 0 0 min(76vw, 360px);
    scroll-snap-align: center;
  }

  .storefront-card:nth-child(2) {
    margin-top: 0;
  }

  .proof-ribbon article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--warm-border);
  }

  .proof-ribbon article:last-child {
    border-bottom: 0;
  }

  .invite-panel .cta {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .story-section h2 {
    font-size: 2.5rem;
  }

  .story-lede,
  .story-head p,
  .editorial-intro p,
  .invite-panel p {
    font-size: 1rem;
  }

  .desire-card,
  .flow-grid article,
  .proof-ribbon article {
    padding: 20px;
  }

  .problem-heading h2,
  .proof-heading h2 {
    font-size: 2.65rem;
  }

  .leak-node strong {
    font-size: 2.25rem;
  }

  .invite-panel .cta {
    width: 100%;
  }
}

/* ── Modal (waitlist) ─────────────────────────────────────────────────── */

.modal {
  border: 1px solid var(--warm-border);
  border-radius: 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  padding: 0;
  background: var(--canvas);
  color: var(--deep);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(10, 14, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__form {
  padding: 24px;
}

@media (min-width: 600px) {
  .modal__form { padding: 32px; }
}

.modal__title {
  color: var(--deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 4px;
  text-align: center;
  letter-spacing: -0.01em;
}

.modal__title--done { color: var(--violet-rich); margin-bottom: 8px; }

.modal__lede {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 24px;
  text-align: center;
  line-height: 1.6;
}

.modal__view--done {
  text-align: center;
  padding: 16px 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.field__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.field__input {
  color: var(--deep);
  background: var(--bone);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field__input:hover { border-color: rgba(58, 40, 127, 0.4); }
.field__input:focus {
  border-color: var(--violet-rich);
  box-shadow: 0 0 0 3px rgba(58, 40, 127, 0.12);
}

.modal__error {
  color: var(--error);
  font-size: 0.8125rem;
  text-align: center;
  margin: -4px 0 8px;
}

.modal__submit {
  margin-top: 4px;
  width: 100%;
}

/* ── Fullscreen demo overlay (mobile expand) ──────────────────────────── */

.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
}

.fullscreen__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.fullscreen__close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  font-weight: 700;
  line-height: 1;
}

/* ── Hero entrance choreography ───────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  /* Eyebrow pill keeps the simple rise */
  .hero__pill {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-rise 0.7s ease-out forwards;
  }
  .hero__pill { animation-delay: 0.05s; }

  /* MOBILE H1: each span animates in turn.
     1st (Every, white)      → slides in from the left
     2nd (channel, violet)   → rises up from below
     3rd (becomes a, white)  → rises up from below
     4th (checkout., violet) → rises up from below
     Every span starts at opacity 0, so ANY new span MUST get its own rule
     below or it stays invisible. */
  .hero--mobile .hero__h1 > span {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
  }
  .hero--mobile .hero__h1 > span:nth-child(1) {
    transform: translateX(-32px);
    animation: hero-slide-in-left 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) 0.15s forwards;
  }
  .hero--mobile .hero__h1 > span:nth-child(2) {
    transform: translateY(24px);
    animation: hero-slide-up 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) 0.5s forwards;
  }
  .hero--mobile .hero__h1 > span:nth-child(3) {
    transform: translateY(24px);
    animation: hero-slide-up 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) 0.75s forwards;
  }
  .hero--mobile .hero__h1 > span:nth-child(4) {
    transform: translateY(24px);
    animation: hero-slide-up 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) 1s forwards;
  }

  /* Subhead fades+rises via a pure CSS animation (like the H1 above) so it
     paints with first render. It used to start opacity:0 and wait for
     script.js to add .is-revealed - but script.js is deferred, so on slow
     connections the subhead (the LCP element) stayed invisible until the
     whole script downloaded + ran, adding ~2.3s of LCP render delay. The
     animation runs at render time, so LCP now fires with the hero. */
  .hero__sub {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-rise 0.6s ease-out 0.1s forwards;
  }
}

@media (min-width: 1000px) {
  .hero--desktop .hero__h1,
  .hero--desktop .hero__sub,
  .hero--desktop .cta--desktop {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-slide-in-left {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-slide-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-caret-blink {
  50% { opacity: 0; }
}
