:root {
  --bg: #080608;
  --text: #f7f0e6;
  --muted: rgba(247, 240, 230, .68);
  --muted-strong: rgba(247, 240, 230, .84);
  --gold: #e9b867;
  --rose: #ff8f9a;
  --violet: #c9a2ff;
  --blue: #94c7ff;
  --green: #95e6b8;
  --cta-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --intro-scale: 1;
  --intro-y: 0px;
  --intro-rot: 0deg;
  --intro-color: 247 240 230;
  --intro-glow: .28;
  --intro-blur: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(233, 184, 103, .10), transparent 30rem),
    radial-gradient(circle at 82% 16%, rgba(201, 162, 255, .09), transparent 28rem),
    linear-gradient(180deg, #090609 0%, #111016 45%, #070608 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -18vh -18vw;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(var(--mx, .5) * 100%) calc(var(--my, .28) * 100%), rgba(247, 240, 230, .055), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 44%, rgba(255,255,255,.02));
}
a { color: inherit; text-decoration: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.cursor-glow {
  position: fixed;
  left: calc(var(--mx, .5) * 100vw);
  top: calc(var(--my, .5) * 100vh);
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233,184,103,.11), rgba(148,199,255,.055) 42%, transparent 69%);
  filter: blur(18px);
}
.story { isolation: isolate; }

.intro-hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  padding: 20px;
}
.intro-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42vh;
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.82));
  pointer-events: none;
}
.intro-logo {
  width: min(72vw, 560px);
  height: auto;
  position: relative;
  z-index: 2;
  color: rgb(var(--intro-color));
  fill: currentColor;
  transform:
    translate3d(calc((var(--mx, .5) - .5) * 26px), calc(var(--intro-y) + ((var(--my, .5) - .5) * 20px)), 0)
    scale(var(--intro-scale))
    rotate(var(--intro-rot));
  filter:
    blur(var(--intro-blur))
    drop-shadow(0 24px 72px rgba(var(--intro-color), var(--intro-glow)))
    drop-shadow(0 44px 120px rgba(0,0,0,.46));
  transition: transform .08s linear, filter .08s linear, color .08s linear;
}
.intro-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .72;
  transform: translate3d(calc((var(--mx, .5) - .5) * var(--orb-x)), calc((var(--my, .5) - .5) * var(--orb-y)), 0) scale(calc(1 + var(--intro-progress, 0) * .18));
  transition: transform .1s linear;
}
.orb-a { --orb-x: 80px; --orb-y: 50px; width: 42vw; height: 42vw; min-width: 260px; min-height: 260px; background: rgba(233,184,103,.18); left: 6vw; top: 14vh; }
.orb-b { --orb-x: -68px; --orb-y: 72px; width: 36vw; height: 36vw; min-width: 240px; min-height: 240px; background: rgba(255,143,154,.12); right: 4vw; bottom: 18vh; }
.orb-c { --orb-x: 38px; --orb-y: -64px; width: 30vw; height: 30vw; min-width: 210px; min-height: 210px; background: rgba(148,199,255,.11); right: 24vw; top: 9vh; }
.intro-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--cta-h) + 24px);
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(247,240,230,.48);
  font-size: .74rem;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.chapter {
  --accent: var(--gold);
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vh, 98px) clamp(18px, 6vw, 84px) calc(var(--cta-h) + clamp(54px, 9vh, 92px));
  overflow: clip;
}
.first-copy { padding-top: clamp(42px, 6vh, 72px); }
.app-reel-section {
  --accent: var(--gold);
  padding: clamp(18px, 4vh, 38px) 0 calc(var(--cta-h) + clamp(38px, 7vh, 68px));
  overflow: hidden;
  position: relative;
}
.chapter-inner,
.app-reel-copy {
  width: min(790px, 100%);
  position: relative;
  z-index: 2;
}
.app-reel-copy { margin: 0 clamp(18px, 6vw, 84px) clamp(22px, 4vh, 36px); }
.final-inner { width: min(880px, 100%); }
[data-accent="gold"] { --accent: var(--gold); }
[data-accent="rose"] { --accent: var(--rose); }
[data-accent="violet"] { --accent: var(--violet); }
[data-accent="blue"] { --accent: var(--blue); }
[data-accent="green"] { --accent: var(--green); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(16px, 2.6vh, 24px);
  color: var(--accent);
  font-size: clamp(.74rem, 1.35vw, .88rem);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-label::before {
  content: "";
  width: clamp(30px, 7vw, 66px);
  height: 1px;
  background: currentColor;
  opacity: .8;
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  color: rgba(247, 240, 230, .96);
  font-size: clamp(3.35rem, 11.2vw, 10.8rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 780;
  text-wrap: balance;
}
h2 {
  max-width: 11.3ch;
  font-size: clamp(2.85rem, 9.4vw, 8rem);
  line-height: .96;
  letter-spacing: -.041em;
}
.app-reel-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 7.2vw, 5.5rem);
}
.lede,
.section-copy {
  width: min(700px, 100%);
  margin: clamp(20px, 3.4vh, 32px) 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.05vw, 1.48rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  font-weight: 590;
  text-wrap: pretty;
}
.section-copy + .section-copy { margin-top: 12px; }
.small-top { margin-top: 15px; }
.accent {
  color: var(--accent);
  font-weight: 760;
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.mantra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3.4vh, 32px);
}
.mantra span {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 15px;
  color: color-mix(in srgb, var(--accent) 88%, white 12%);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  font-size: clamp(.88rem, 1.35vw, 1rem);
  line-height: 1;
  font-weight: 730;
  letter-spacing: -.012em;
}

.app-store,
.fixed-download-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 58px;
  min-width: 184px;
  border-radius: 999px;
  padding: 10px 24px 11px;
  background: linear-gradient(180deg, rgba(247,240,230,1), rgba(226,216,201,.8));
  color: #0b080b;
  border: 1px solid rgba(255,255,255,.64);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.app-store:hover,
.fixed-download-button:hover { transform: translateY(-2px); box-shadow: 0 26px 78px rgba(0,0,0,.48), 0 0 0 1px rgba(233,184,103,.22), inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.8); }
.app-store span,
.fixed-download-button span {
  font-size: .7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .72;
}
.app-store strong,
.fixed-download-button strong {
  font-size: 1.14rem;
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}
.section-cta { margin-top: clamp(22px, 3.8vh, 32px); }
.fixed-download {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px max(16px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.76) 32%, rgba(8,6,8,.94));
}
.fixed-download-button {
  pointer-events: auto;
  width: min(720px, 100%);
  min-height: var(--cta-h);
  margin: 0 auto;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 16px 55px rgba(0,0,0,.48), 0 0 0 1px rgba(233,184,103,.18), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.82);
}
.fixed-download-button span { font-size: .76rem; letter-spacing: .095em; }
.fixed-download-button strong { font-size: clamp(1.6rem, 5.5vw, 2.35rem); }

.logo-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: var(--accent);
}
.logo-bg {
  position: absolute;
  opacity: .105;
  transform: translate3d(0, var(--shift, 0px), 0) rotate(var(--rot, 0deg));
  will-change: transform;
  filter: drop-shadow(0 28px 80px color-mix(in srgb, var(--accent) 12%, transparent));
}
.logo-bg svg { display: block; width: 100%; height: auto; fill: currentColor; }
.logo-lg { width: clamp(420px, 82vw, 980px); right: -22vw; top: 15%; --rot: -10deg; opacity: .10; }
.logo-wide { width: clamp(520px, 96vw, 1100px); right: -34vw; top: 18%; --rot: 9deg; opacity: .085; }
.logo-md { width: clamp(230px, 42vw, 520px); left: 4vw; bottom: 9%; --rot: -7deg; opacity: .075; }
.logo-sm { width: clamp(150px, 24vw, 280px); right: 13vw; bottom: 11%; --rot: 8deg; opacity: .09; }
.logo-tiny { width: clamp(104px, 16vw, 190px); left: 12vw; top: 12%; --rot: 11deg; opacity: .075; }
.first-copy .logo-lg { right: -28vw; top: 20%; }
.first-copy .logo-sm { right: 20vw; top: 8%; bottom: auto; }
.first-copy .logo-md { left: 8vw; bottom: 6%; }
.closing .logo-lg { top: 18%; right: -22vw; }

.phone-reel {
  display: flex;
  gap: clamp(14px, 3vw, 26px);
  overflow-x: auto;
  padding: 6px clamp(18px, 6vw, 84px) 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.phone-reel::-webkit-scrollbar { display: none; }
.phone-frame {
  flex: 0 0 clamp(210px, 42vw, 310px);
  scroll-snap-align: start;
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 17.6;
  border-radius: 38px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 88px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.phone-notch {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 32%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 100px;
  background: rgba(8,6,8,.72);
  z-index: 2;
  display: none;
}
.phone-slot {
  height: 100%;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(233,184,103,.18), rgba(148,199,255,.10), rgba(255,143,154,.12)),
    rgba(8,6,8,.68);
  border: 1px dashed rgba(247,240,230,.08);
  overflow: hidden;
}

.phone-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

.phone-slot img.phone-img-contain {
  object-fit: contain;
  background: #090909;
}

.phone-slot span {
  color: rgba(247,240,230,.36);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.phone-frame p {
  position: absolute;
  left: 22px;
  bottom: 20px;
  margin: 0;
  color: rgba(247,240,230,.72);
  font-weight: 830;
  letter-spacing: -.025em;
}

@media (max-width: 860px) {
  :root { --cta-h: 72px; }
  .intro-logo { width: min(78vw, 500px); }
  .intro-scroll-hint { bottom: calc(var(--cta-h) + 16px); }
  .chapter {
    min-height: 82svh;
    padding: clamp(42px, 6.5vh, 72px) 24px calc(var(--cta-h) + 58px);
  }
  .first-copy { padding-top: 32px; }
  .app-reel-section { padding-bottom: calc(var(--cta-h) + 44px); }
  .app-reel-copy { margin-left: 24px; margin-right: 24px; }
  h1 { font-size: clamp(3.2rem, 13.2vw, 6.8rem); max-width: 10.2ch; }
  h2 { font-size: clamp(2.8rem, 12vw, 5.9rem); max-width: 10.4ch; }
  .app-reel-copy h2 { font-size: clamp(2.1rem, 9.5vw, 4.4rem); max-width: 11ch; }
  .lede, .section-copy { font-size: 1.05rem; line-height: 1.5; max-width: 94%; }
  .section-label { font-size: .68rem; margin-bottom: 14px; }
  .mantra span { min-height: 35px; font-size: .82rem; }
  .section-cta { min-width: 156px; min-height: 52px; }
  .fixed-download { padding-left: 14px; padding-right: 14px; }
  .fixed-download-button { border-radius: 26px; }
  .fixed-download-button span { font-size: .66rem; }
  .fixed-download-button strong { font-size: 1.85rem; }
  .logo-lg { width: 740px; right: -470px; top: 20%; }
  .logo-wide { width: 820px; right: -560px; top: 24%; }
  .logo-md { width: 310px; left: -88px; bottom: 9%; }
  .logo-sm { width: 180px; right: 18px; bottom: 10%; }
  .logo-tiny { width: 128px; left: 30px; top: 8%; }
  .phone-frame { flex-basis: 238px; border-radius: 34px; }
}

@media (max-width: 520px) {
  .intro-logo { width: 82vw; }
  .chapter { min-height: 78svh; padding-left: 26px; padding-right: 26px; }
  .app-reel-copy { margin-left: 26px; margin-right: 26px; }
  .phone-reel { padding-left: 26px; padding-right: 26px; }
  .app-store:not(.fixed-download-button) { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .parallax, .intro-logo, .intro-orb { transform: none !important; }
}

/* ==========================================
   V8 refinements
   ========================================== */
:root {
  --fixed-cta-bottom: 24vh;
  --fixed-cta-width: min(320px, calc(100vw - 54px));
  --fixed-cta-height: 58px;
  --fixed-cta-radius: 999px;
  --fixed-cta-bg: 0;
}

.intro-logo {
  /* The logo now starts perfectly straight; JS only rotates it after scroll begins. */
  transform-origin: 50% 50%;
}

.app-reel-section {
  padding-top: clamp(4px, 1.4vh, 14px);
  padding-bottom: calc(var(--cta-h) + clamp(38px, 7vh, 68px));
}

.app-reel-copy {
  display: none;
}

.phone-reel {
  gap: clamp(16px, 4vw, 30px);
  padding: 8px max(28px, calc((100vw - 310px) / 2)) 24px;
  scroll-padding-inline: max(28px, calc((100vw - 310px) / 2));
  scroll-snap-type: x mandatory;
}

.phone-frame {
  scroll-snap-align: center;
}

.phone-frame p,
.phone-slot span {
  display: none;
}

.phone-slot {
  border-style: solid;
}

.fixed-download {
  bottom: var(--fixed-cta-bottom);
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  background: linear-gradient(
    180deg,
    transparent,
    rgba(8, 6, 8, calc(.48 * var(--fixed-cta-bg))) 34%,
    rgba(8, 6, 8, calc(.92 * var(--fixed-cta-bg)))
  );
  transition: background .08s linear;
}

.fixed-download-button {
  width: var(--fixed-cta-width);
  min-height: var(--fixed-cta-height);
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 2.5vw, 14px);
  border-radius: var(--fixed-cta-radius);
  padding: 8px clamp(16px, 4vw, 24px) 8px 10px;
  text-align: left;
}

.fixed-app-icon {
  width: clamp(36px, 9vw, 48px);
  height: clamp(36px, 9vw, 48px);
  flex: 0 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.36);
}

.fixed-download-text {
  display: block;
  opacity: 1 !important;
  font-size: clamp(.96rem, 3.6vw, 1.2rem) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  color: #0b080b;
}

@media (max-width: 860px) {
  .phone-reel {
    padding-left: max(28px, calc((100vw - 238px) / 2));
    padding-right: max(28px, calc((100vw - 238px) / 2));
    scroll-padding-inline: max(28px, calc((100vw - 238px) / 2));
  }

  .fixed-download {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 520px) {
  .phone-reel {
    padding-left: max(28px, calc((100vw - 238px) / 2));
    padding-right: max(28px, calc((100vw - 238px) / 2));
  }
}

/* Safer animated footer backdrop */
.fixed-download {
  background: transparent;
}
.fixed-download::before {
  content: "";
  position: absolute;
  inset: -28px 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--fixed-cta-bg);
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.76) 34%, rgba(8,6,8,.94));
  transition: opacity .08s linear;
}

/* ==========================================
   V8.1 CSS-only polish
   - cleaner App Store-style fixed CTA
   - balanced section CTA vertical spacing
   - app reel padding matches page padding
   ========================================== */

/* Keep section CTAs vertically balanced so the small label + bold line sit centered. */
.app-store:not(.fixed-download-button) {
  min-height: 58px;
  padding: 12px 24px;
  justify-content: center;
}

.app-store:not(.fixed-download-button) span {
  display: block;
  margin: 0 0 3px;
  line-height: 1;
}

.app-store:not(.fixed-download-button) strong {
  display: block;
  line-height: 1;
}

/* Fixed footer CTA: closer to the native App Store badge shape, cleaner border, no heavy drop-border. */
.fixed-download-button {
  min-height: 62px;
  padding: 8px 24px 8px 10px;
  border-radius: 999px;
  background: rgba(247, 244, 237, .96);
  border: 1.5px solid rgba(18, 15, 18, .25);
  box-shadow: 0 10px 32px rgba(0,0,0,.22);
  outline: none;
}

.fixed-download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.fixed-download-button::after {
  display: none;
}

.fixed-download-text {
  color: #080608;
  font-size: clamp(1rem, 3.5vw, 1.22rem) !important;
  letter-spacing: -.02em !important;
  font-weight: 850 !important;
}

.fixed-app-icon {
  width: clamp(34px, 8vw, 44px);
  height: clamp(34px, 8vw, 44px);
  border-radius: 10px;
  box-shadow: none;
}

/* The footer backdrop should support the CTA without feeling like another container. */
.fixed-download::before {
  inset: -18px 0 0;
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.50) 38%, rgba(8,6,8,.86));
}

/* Match horizontal app reel padding to the page/content padding while keeping center snapping. */
.phone-reel {
  padding-left: clamp(18px, 6vw, 84px);
  padding-right: clamp(18px, 6vw, 84px);
  scroll-padding-left: clamp(18px, 6vw, 84px);
  scroll-padding-right: clamp(18px, 6vw, 84px);
}

.phone-frame {
  scroll-snap-align: center;
}

@media (max-width: 860px) {
  .app-store:not(.fixed-download-button) {
    min-height: 54px;
    padding: 11px 22px;
  }

  .fixed-download-button {
    min-height: 62px;
    padding: 8px 22px 8px 10px;
  }

  .phone-reel {
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
  }
}

@media (max-width: 520px) {
  .app-store:not(.fixed-download-button) {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .phone-reel {
    padding-left: 26px;
    padding-right: 26px;
    scroll-padding-left: 26px;
    scroll-padding-right: 26px;
  }

  .fixed-download-button {
    width: min(720px, calc(100vw - 28px));
  }
}

/* ==========================================
   V9 polish
   - hero logo no longer follows pointer
   - smaller hero logo start
   - fixed App Store CTA starts compact and expands to footer
   - centered App Store-style button layout with app icon
   - mantra pills drift horizontally on scroll
   ========================================== */

/* Keep the intro mark centered and still on pointer movement; only scroll controls motion. */
.intro-logo {
  width: min(64vw, 500px);
  transform:
    translate3d(0, var(--intro-y), 0)
    scale(var(--intro-scale))
    rotate(var(--intro-rot));
}

/* The footer CTA should always respect the JS-driven compact/full width. */
.fixed-download-button {
  width: var(--fixed-cta-width) !important;
  min-height: var(--fixed-cta-height);
  height: var(--fixed-cta-height);
  max-width: calc(100vw - 28px);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 16px);
  padding: 8px clamp(20px, 5vw, 30px);
  border-radius: var(--fixed-cta-radius);
  background: rgba(247, 247, 245, .96);
  color: #050505;
  border: 1.5px solid rgba(0, 0, 0, .24);
  box-shadow: 0 12px 36px rgba(0,0,0,.24);
  text-align: left;
}

.fixed-download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(0,0,0,.30);
}

.fixed-app-icon {
  width: clamp(34px, 7vw, 46px);
  height: clamp(34px, 7vw, 46px);
  border-radius: 11px;
  flex: 0 0 auto;
  box-shadow: none;
}

.fixed-download-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  opacity: 1 !important;
  color: #050505;
  line-height: 1;
}

.fixed-download-copy span {
  display: block;
  margin: 0 0 2px;
  opacity: 1 !important;
  color: #050505;
  font-size: clamp(.76rem, 2.4vw, .96rem) !important;
  line-height: .95 !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}

.fixed-download-copy strong {
  display: block;
  color: #050505;
  font-size: clamp(1.38rem, 4.8vw, 1.95rem) !important;
  line-height: .92 !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  text-transform: inherit;
}

/* Keep the fixed CTA more compact while it is tucked under the hero logo. */
:root {
  --fixed-cta-width: min(284px, calc(100vw - 54px));
  --fixed-cta-height: 56px;
}

/* Make section CTAs keep balanced top/bottom spacing. */
.app-store:not(.fixed-download-button) {
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: center;
}

/* Mantra movement: readable at rest, then drifting horizontally as the section scrolls away. */
.mantra {
  --mantra-shift: 0px;
  overflow: visible;
}

.mantra span {
  transform: translate3d(calc(var(--mantra-shift) * .72), 0, 0);
  transition: transform .08s linear;
  will-change: transform;
}

.mantra span:nth-child(2) {
  transform: translate3d(calc(var(--mantra-shift) * 1.02), 0, 0);
}

.mantra span:nth-child(3) {
  transform: translate3d(calc(var(--mantra-shift) * 1.26), 0, 0);
}

@media (max-width: 860px) {
  .intro-logo {
    width: min(72vw, 460px);
  }

  .fixed-download-button {
    gap: 12px;
    padding-left: 18px;
    padding-right: 20px;
  }

  .fixed-download-copy span {
    font-size: .78rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.55rem !important;
  }
}

@media (max-width: 520px) {
  .intro-logo {
    width: 76vw;
  }

  .fixed-download-button {
    width: var(--fixed-cta-width) !important;
    max-width: calc(100vw - 28px);
  }

  .fixed-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .fixed-download-copy span {
    font-size: .75rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.48rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mantra span {
    transform: none !important;
  }
}

/* ==========================================
   V10 polish
   - hero logo + CTA behave like a centered group
   - glassier transparent fixed download CTA
   - intro logo starts smaller and no pointer-shift
   - mantra pills scroll INTO place instead of away
   ========================================== */
.intro-logo {
  width: min(58vw, 460px);
  transform:
    translate3d(0, var(--intro-y), 0)
    scale(var(--intro-scale))
    rotate(var(--intro-rot));
}

.fixed-download {
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: var(--fixed-cta-bottom);
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
  background: transparent;
}

.fixed-download::before {
  inset: -28px 0 -12px;
  opacity: calc(.1 + (var(--fixed-cta-bg) * .9));
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.42) 34%, rgba(8,6,8,.82));
}

.fixed-download-button {
  width: var(--fixed-cta-width) !important;
  height: var(--fixed-cta-height);
  min-height: var(--fixed-cta-height);
  max-width: calc(100vw - 28px);
  margin: 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 16px);
  padding: 7px clamp(18px, 4.5vw, 28px);
  border-radius: var(--fixed-cta-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,240,230,.52)),
    rgba(247,240,230,.44);
  color: #050505;
  border: 1px solid rgba(255,255,255,.54);
  box-shadow:
    0 18px 48px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.62),
    inset 0 -1px 0 rgba(0,0,0,.10);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  text-align: left;
}

.fixed-download-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 58px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -1px 0 rgba(0,0,0,.12);
}

.fixed-app-icon {
  width: clamp(34px, 7vw, 45px);
  height: clamp(34px, 7vw, 45px);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.fixed-download-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  line-height: 1;
}

.fixed-download-copy span {
  margin: 0 0 2px;
  color: #050505;
  font-size: clamp(.76rem, 2.4vw, .94rem) !important;
  line-height: .95 !important;
  font-weight: 650 !important;
  letter-spacing: -.012em !important;
  text-transform: none !important;
  opacity: 1 !important;
}

.fixed-download-copy strong {
  color: #050505;
  font-size: clamp(1.34rem, 4.6vw, 1.9rem) !important;
  line-height: .92 !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

/* Start slightly off-canvas and settle into position as the section enters view. */
.mantra span {
  transform: translate3d(calc(var(--mantra-shift) * -.74), 0, 0);
  transition: transform .08s linear;
  will-change: transform;
}

.mantra span:nth-child(2) {
  transform: translate3d(calc(var(--mantra-shift) * -.98), 0, 0);
}

.mantra span:nth-child(3) {
  transform: translate3d(calc(var(--mantra-shift) * -1.18), 0, 0);
}

@media (max-width: 860px) {
  .intro-logo {
    width: min(68vw, 430px);
  }

  .fixed-download-button {
    gap: 12px;
    padding-left: 16px;
    padding-right: 20px;
  }

  .fixed-download-copy span {
    font-size: .77rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 520px) {
  .intro-logo {
    width: 72vw;
  }

  .fixed-download-button {
    max-width: calc(100vw - 28px);
  }

  .fixed-app-icon {
    width: 38px;
    height: 38px;
  }

  .fixed-download-copy span {
    font-size: .74rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.42rem !important;
  }
}

/* ==========================================
   V11 polish
   - no visible footer backdrop edge
   - fixed CTA is a softer glass/App-Store pill
   - mantra pills scroll in from the right
   - hero logo uses app-icon inspired colors instead of gold
   ========================================== */

.intro-logo {
  /* App icon-inspired gradient instead of the gold/yellow scroll color. */
  color: #ff4f8e;
  filter:
    blur(var(--intro-blur))
    drop-shadow(0 22px 70px rgba(255, 79, 142, .26))
    drop-shadow(0 38px 112px rgba(127, 56, 255, .22))
    drop-shadow(0 44px 120px rgba(0,0,0,.44));
}

.intro-logo use {
  fill: url(#pluvi-app-gradient);
}

/* Remove the hard horizon/edge behind the fixed footer CTA. The glass lives on the button itself. */
.fixed-download,
.fixed-download::before {
  background: transparent !important;
}

.fixed-download::before {
  display: none !important;
}

.fixed-download-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(247,240,230,.42)),
    rgba(247,240,230,.28);
  border: 1px solid rgba(255,255,255,.44);
  box-shadow:
    0 12px 36px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.56),
    inset 0 -1px 0 rgba(0,0,0,.10);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.fixed-download-button:hover {
  box-shadow:
    0 16px 44px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.64),
    inset 0 -1px 0 rgba(0,0,0,.12);
}

/* The icon/text stay centered as a group like the App Store reference. */
.fixed-download-button {
  justify-content: center;
}

.fixed-download-copy {
  align-items: flex-start;
}

/* Start to the right and settle into position while scrolling down; reverse on scroll-up. */
.mantra {
  overflow: visible;
}

.mantra span {
  transform: translate3d(var(--mantra-shift), 0, 0) !important;
  transition: transform .08s linear;
  will-change: transform;
}

.mantra span:nth-child(2) {
  transform: translate3d(calc(var(--mantra-shift) * 1.16), 0, 0) !important;
}

.mantra span:nth-child(3) {
  transform: translate3d(calc(var(--mantra-shift) * 1.32), 0, 0) !important;
}

@media (max-width: 520px) {
  .intro-logo {
    width: 70vw;
  }
}

/* ==========================================
   V12 refinements
   - subtle animated chevron instead of Scroll text
   - solid intro logo color that changes on scroll using app-icon palette
   - more hero spacing between logo and CTA
   - 3-card reels with tighter page-aligned padding
   ========================================== */

.intro-scroll-hint {
  bottom: calc(var(--cta-h) + 22px);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(247,240,230,.58);
  transform: translateX(-50%);
}

.scroll-chevron {
  width: 13px;
  height: 13px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: chevronDrop 1.55s var(--ease) infinite;
  filter: drop-shadow(0 0 18px rgba(247,240,230,.18));
}

@keyframes chevronDrop {
  0%, 100% { opacity: .35; transform: translateY(-3px) rotate(45deg); }
  45% { opacity: .9; transform: translateY(5px) rotate(45deg); }
}

/* Keep the Pluvi logo as one solid fill color; JS changes this solid color as the user scrolls. */
.intro-logo {
  color: rgb(var(--intro-color)) !important;
  fill: currentColor !important;
  filter:
    blur(var(--intro-blur))
    drop-shadow(0 22px 70px rgba(var(--intro-color), .24))
    drop-shadow(0 44px 120px rgba(0,0,0,.44)) !important;
}

.intro-logo use {
  fill: currentColor !important;
}

/* A little more breathing room between the logo and the tucked hero CTA. */
:root {
  --hero-cta-extra-gap: 14px;
}

/* Reels: 3 placeholders, no text, page-aligned padding, still center-snap. */
.app-reel-section {
  padding-top: clamp(8px, 2vh, 20px);
  padding-bottom: calc(var(--cta-h) + clamp(34px, 6vh, 60px));
}

.toolkit-reel {
  --accent: var(--green);
  padding-top: clamp(6px, 1.8vh, 18px);
}

.phone-reel {
  padding-left: clamp(18px, 6vw, 84px) !important;
  padding-right: clamp(18px, 6vw, 84px) !important;
  scroll-padding-left: clamp(18px, 6vw, 84px) !important;
  scroll-padding-right: clamp(18px, 6vw, 84px) !important;
  justify-content: flex-start;
}

@media (min-width: 920px) {
  .phone-frame {
    flex-basis: min(27vw, 310px);
  }
}

@media (max-width: 860px) {
  .intro-scroll-hint {
    bottom: calc(var(--cta-h) + 14px);
  }

  .phone-reel {
    padding-left: 24px !important;
    padding-right: 24px !important;
    scroll-padding-left: 24px !important;
    scroll-padding-right: 24px !important;
  }
}

@media (max-width: 520px) {
  .phone-reel {
    padding-left: 26px !important;
    padding-right: 26px !important;
    scroll-padding-left: 26px !important;
    scroll-padding-right: 26px !important;
  }
}


/* ==========================================
   V13 refinements
   - add speed reel color context
   - shift hero logo through purple tones instead of warm orange/red
   ========================================== */
.speed-reel {
  --accent: var(--blue);
  padding-top: clamp(6px, 1.8vh, 18px);
}

.intro-logo {
  color: rgb(var(--intro-color));
}

/* ==========================================
   V14 refinements
   - closing text gets mantra pills
   - final Pluvi hero mirrors the opening hero
   - final logo un-rotates into place
   - fixed CTA shrinks back under the final logo
   ========================================== */
:root {
  --outro-scale: 1.13;
  --outro-y: 0px;
  --outro-rot: -7.2deg;
  --outro-color: 176 98 255;
  --outro-glow: .28;
}

.closing .mantra {
  margin-top: clamp(20px, 3.4vh, 32px);
}

.outro-hero {
  min-height: 100svh;
  height: 100svh;
  padding: 20px;
  margin: 0;
  isolation: isolate;
}

.outro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(176, 98, 255, .10), transparent 24rem),
    linear-gradient(180deg, rgba(8,6,8,.78), transparent 26%, transparent 72%, rgba(8,6,8,.72));
  z-index: 1;
}

.outro-logo {
  width: min(58vw, 460px);
  height: auto;
  position: relative;
  z-index: 2;
  color: rgb(var(--outro-color));
  fill: currentColor;
  transform:
    translate3d(0, var(--outro-y), 0)
    scale(var(--outro-scale))
    rotate(var(--outro-rot));
  filter:
    drop-shadow(0 22px 70px rgba(var(--outro-color), var(--outro-glow)))
    drop-shadow(0 44px 120px rgba(0,0,0,.44));
  transition: transform .08s linear, filter .08s linear, color .08s linear;
}

.outro-logo use {
  fill: currentColor !important;
}

.outro-hero .intro-orb {
  opacity: .58;
}

.outro-hero .orb-a {
  background: rgba(176,98,255,.16);
  left: 10vw;
  top: 18vh;
}

.outro-hero .orb-b {
  background: rgba(255,79,142,.11);
  right: 8vw;
  bottom: 16vh;
}

.outro-hero .orb-c {
  background: rgba(201,162,255,.13);
  right: 28vw;
  top: 11vh;
}

@media (max-width: 860px) {
  .outro-logo {
    width: min(68vw, 430px);
  }
}

@media (max-width: 520px) {
  .outro-logo {
    width: 72vw;
  }
}


/* ==========================================
   V19 targeted fix
   - black fade overlay at the top of the bottom hero
   - hides the visible transition edge from the closing section
   ========================================== */

.outro-hero {
  position: relative;
}

/* This sits above the purple atmosphere only at the top of the final hero,
   so the closing section fades into it instead of cutting to a visible edge. */
.outro-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: min(38vh, 340px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #080608 0%,
    rgba(8, 6, 8, .96) 14%,
    rgba(8, 6, 8, .72) 42%,
    rgba(8, 6, 8, .32) 72%,
    rgba(8, 6, 8, 0) 100%
  );
}

/* Keep the actual final Pluvi logo above the general purple atmosphere,
   but below/clear of the top-only fade when it is entering the section. */
.outro-logo {
  z-index: 2;
}

/* ==========================================
   V20 refinements
   - smaller Pluvi logos in top and bottom hero
   - fixed download button border removed
   ========================================== */

.intro-logo {
  width: min(50vw, 400px) !important;
}

.outro-logo {
  width: min(50vw, 400px) !important;
}

.fixed-download-button {
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    0 12px 36px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(0,0,0,.08) !important;
}

.fixed-download-button:hover {
  border: 0 !important;
  box-shadow:
    0 16px 44px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -1px 0 rgba(0,0,0,.10) !important;
}

@media (max-width: 860px) {
  .intro-logo,
  .outro-logo {
    width: min(60vw, 380px) !important;
  }
}

@media (max-width: 520px) {
  .intro-logo,
  .outro-logo {
    width: 62vw !important;
  }
}
