/* ==========================================================================
   Landing page: hero, live ticker, scroll story, bento features, showcase,
   closing CTA. Depends on styles.css (shell) and css/mock.css (phones).
   ========================================================================== */

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 24px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.aurora {
  position: absolute;
  inset: -10% -10% 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px) saturate(120%);
  opacity: 0.9;
}

.aurora__orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__orb--1 {
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  left: 40%;
  top: -20%;
  background: radial-gradient(circle, rgba(123, 110, 255, 0.55), rgba(123, 110, 255, 0) 65%);
  animation: orb-1 26s var(--ease-in-out) infinite alternate;
}

.aurora__orb--2 {
  width: 44vw;
  height: 44vw;
  max-width: 640px;
  max-height: 640px;
  left: -12%;
  top: 30%;
  background: radial-gradient(circle, rgba(90, 80, 212, 0.45), rgba(90, 80, 212, 0) 65%);
  animation: orb-2 32s var(--ease-in-out) infinite alternate;
}

.aurora__orb--3 {
  width: 36vw;
  height: 36vw;
  max-width: 520px;
  max-height: 520px;
  right: -8%;
  top: 45%;
  background: radial-gradient(circle, rgba(232, 162, 32, 0.28), rgba(232, 162, 32, 0) 65%);
  animation: orb-3 22s var(--ease-in-out) infinite alternate;
}

@keyframes orb-1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-12%, 14%) scale(1.15);
  }
}

@keyframes orb-2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(18%, -16%) scale(0.9);
  }
}

@keyframes orb-3 {
  from {
    transform: translate(0, 0) scale(0.9);
  }
  to {
    transform: translate(-22%, -24%) scale(1.2);
  }
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 32px 64px;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__title {
  font-size: clamp(46px, 7.4vw, 96px);
  max-width: 11ch;
}

.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 6px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--text-muted);
}

/* The right-hand stage: phone, halo, floating chips. */
.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  --phone-w: min(320px, 78vw);
}

.hero__stage-glow {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 110, 255, 0.28), rgba(123, 110, 255, 0.06) 40%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.phone--hero {
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.7s var(--ease-out);
}

.phone--hero.is-tilting {
  transition: transform 0.12s linear;
}

.float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: float-bob 6s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

.float {
  --pt: 0.8px;
}

.float--1 {
  top: 18%;
  left: -6%;
  animation-delay: -1s;
}

.float--2 {
  bottom: 24%;
  right: -8%;
  animation-delay: -3s;
}

.float--3 {
  top: 6%;
  right: -4%;
  animation-delay: -5s;
}

.float__label {
  color: var(--text);
}

.float__avatars {
  display: inline-flex;
}

.float__avatars i {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  border: 2px solid #15151d;
  margin-left: -8px;
  background: linear-gradient(135deg, #7b6eff, #5a50d4);
  color: #fff;
}

.float__avatars i:first-child {
  margin-left: 0;
}

.float__avatars i:nth-child(2) {
  background: linear-gradient(135deg, #f5c96a, #e8a220);
  color: #2a1a00;
}

.float__avatars i:nth-child(3) {
  background: #2b2b38;
  color: var(--text-secondary);
}

.float__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-selected-bg);
  border: 1px solid var(--accent-selected-border);
  color: var(--accent-soft);
  font-size: 12px;
}

.float__tag--gold {
  background: var(--gold-selected-bg);
  border-color: var(--gold-selected-border);
  color: var(--gold-honey);
}

@keyframes float-bob {
  from {
    transform: translate3d(0, -6px, 0);
  }
  to {
    transform: translate3d(0, 8px, 0);
  }
}

.hero__cue {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-bottom: 22px;
  width: 24px;
  height: 44px;
  display: grid;
  place-items: center;
  opacity: 0.7;
}

.hero__cue-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--text-secondary), transparent);
  background-size: 100% 200%;
  animation: cue 2.2s var(--ease-in-out) infinite;
}

@keyframes cue {
  from {
    background-position: 0 -44px;
  }
  to {
    background-position: 0 44px;
  }
}

/* ------------------------------------------------------------- ticker ---- */

.ticker {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(123, 110, 255, 0.06), transparent 40%, transparent 60%, rgba(232, 162, 32, 0.04));
}

.ticker__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding-block: 22px;
}

.ticker__head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ticker__stats {
  margin: 0;
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.ticker__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.ticker__value {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  min-width: 2ch;
  color: var(--text-muted);
  transition: color 0.6s;
}

.ticker.is-live .ticker__value {
  color: var(--text);
}

.ticker__label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker__link {
  white-space: nowrap;
}

/* -------------------------------------------------------------- story ---- */

.story {
  padding-block: clamp(96px, 12vw, 160px) 40px;
}

.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 8px;
  align-items: start;
}

.story__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.story__step {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: 440px;
  opacity: 0.3;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.story__step.is-active {
  opacity: 1;
  transform: none;
}

.story__step:first-child {
  min-height: 52vh;
  justify-content: flex-start;
  padding-top: 14vh;
}

.story__step:last-child {
  min-height: 56vh;
}

.story__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.story__step-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.story__step-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.story__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story__stage-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  --phone-w: min(300px, 70vw);
}

.story__halo {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 110, 255, 0.22), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  transition: background 0.8s;
}

.story__screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}

.story__screen.is-active {
  opacity: 1;
  transform: none;
}

/* Three progress bars, one per step, filled from scroll progress (--p is
   written by main.js, 0 to 1 per bar). */
.story__dots {
  display: flex;
  gap: 6px;
  width: 132px;
  position: relative;
}

.story__dots i {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.story__dots i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-soft);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* ----------------------------------------------------------- features ---- */

.features {
  padding-block: clamp(80px, 10vw, 140px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.bento__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  min-height: 360px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}

.bento__item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--quiet {
  grid-column: span 3;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.bento__item--gold.card--spot::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 162, 32, 0.14), transparent 60%);
}

.bento__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.bento__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.bento__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  text-wrap: pretty;
}

/* -- demos -- */

.demo {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.demo__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__bar {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: visible;
}

.demo__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--c, var(--accent));
  transition: width 1.2s var(--ease-out) var(--delay, 0ms);
}

.is-revealed .demo__fill {
  width: var(--v);
}

.demo--tracks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo__row {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 16px;
}

.demo__row:nth-child(2) .demo__fill {
  --delay: 100ms;
}
.demo__row:nth-child(3) .demo__fill {
  --delay: 200ms;
}
.demo__row:nth-child(4) .demo__fill {
  --delay: 300ms;
}
.demo__row:nth-child(5) .demo__fill {
  --delay: 400ms;
}

.demo__row.is-live .demo__name,
.demo__row.is-live .demo__val {
  color: var(--text);
}

.demo__row.is-live .demo__bar {
  height: 10px;
}

.demo__thumb {
  position: absolute;
  top: 50%;
  left: var(--v, 50%);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(255, 255, 255, 0.1);
  transition: left 1.2s var(--ease-out);
}

.demo__row.is-live .demo__fill {
  transition: width 0.9s var(--ease-out);
}

.demo__row.is-live .demo__thumb {
  transition: left 0.9s var(--ease-out);
}

.demo__val {
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Ring, then caption under it. The caption used to be absolutely positioned
   inside the ring, where a longer album name ran straight across the stroke. */
.demo--verdict {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.demo__ring-wrap {
  position: relative;
  line-height: 0;
}

.demo__ring {
  width: 152px;
  height: 152px;
  transform: rotate(-90deg);
}

.demo__ring-fill {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.2s;
}

.is-revealed .demo__ring-fill {
  stroke-dashoffset: calc(100 - var(--v));
}

.demo__verdict-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.demo__verdict-lbl {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo--compare {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo__legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.demo__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.demo__dot--you,
.demo__fill--you {
  background: var(--accent);
}

.demo__dot--them,
.demo__fill--them {
  background: var(--gold);
}

.demo__cmp {
  display: grid;
  grid-template-columns: 96px 1fr 44px;
  align-items: center;
  gap: 12px;
}

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

.demo__pair .demo__bar {
  height: 6px;
}

.demo__cmp:nth-child(3) .demo__fill {
  --delay: 150ms;
}
.demo__cmp:nth-child(4) .demo__fill {
  --delay: 300ms;
}

.demo__delta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.demo__delta.is-agree {
  color: #22c55e;
}

.demo__delta.is-far {
  color: #ff6b8a;
}

.demo--months {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: end;
}

.demo__months {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
}

.demo__months span {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.demo__months i {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: height 1.2s var(--ease-out);
  min-height: 2px;
}

.is-revealed .demo__months i {
  height: var(--h);
}

.demo__months span:nth-child(n) i {
  transition-delay: calc(var(--n, 0) * 40ms);
}

.demo__months .is-peak i {
  background: linear-gradient(180deg, #f5c96a, #e8a220);
  box-shadow: 0 0 24px rgba(232, 162, 32, 0.35);
}

.demo__months b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.demo__month-card {
  background: rgba(7, 7, 12, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo__month-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-honey);
}

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

.demo__month-stats b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.demo__month-stats span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.demo__month-top {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.demo__month-top .art {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.demo__month-top > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo__top-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__top-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__month-top {
  --pt: 0.8px;
}

/* What Pro unlocks, in the quiet full-width tile. A wrapping chip row so the
   list reflows next to the copy on desktop and stacks under it on phones. */
.demo--pro {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 320px;
  flex-shrink: 0;
}

.pro-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-selected-border);
  background: var(--gold-selected-bg);
  color: var(--gold-honey);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.pro-chip svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------- pro ---- */

/* Beattier Pro sits between the free features and the screens, and is the one
   gold section on the page, built on the same card system as the bento
   with a warmer accent. */
.pro {
  position: relative;
  /* Matches .features so the eyebrow clears the fixed nav on an #pro jump. */
  padding-block: clamp(80px, 10vw, 140px);
  overflow: hidden;
}

.pro__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1000px, 130vw);
  aspect-ratio: 2;
  transform: translate(-50%, -40%);
  background: radial-gradient(ellipse, rgba(232, 162, 32, 0.22), rgba(232, 162, 32, 0.06) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.pro .shell {
  position: relative;
}

.eyebrow--gold {
  color: var(--gold-honey);
}

.pro__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.pro__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}

.pro__card:hover {
  border-color: var(--gold-selected-border);
  transform: translateY(-3px);
}

/* Gold spotlight instead of the violet one the bento cards use. */
.pro__card.card--spot::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 162, 32, 0.13), transparent 60%);
}

.pro__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--gold-selected-border);
  background: var(--gold-selected-bg);
  color: var(--gold-honey);
}

.pro__card-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pro__card-text {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.pro__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
  margin-top: 36px;
  text-align: center;
}

.pro__plans {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
  text-wrap: pretty;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-honey), var(--gold));
  color: #2a1b00;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 36px rgba(232, 162, 32, 0.22);
}

.btn--gold:hover {
  color: #2a1b00;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 18px 50px rgba(232, 162, 32, 0.3);
}

/* ----------------------------------------------------------- showcase ---- */

.showcase {
  padding-block: 40px clamp(48px, 6vw, 80px);
  overflow: hidden;
}

.showcase__track {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-inline: max(var(--page-inline), calc((100vw - var(--page-width)) / 2 + var(--page-inline)));
  /* The scroller clips vertically, so the phones' glows would end in hard
     edges here: no glow inside the track, and room for the drop shadows. */
  padding-block: 40px 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.showcase__track::-webkit-scrollbar {
  display: none;
}

.showcase__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.showcase__item {
  margin: 0;
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  --phone-w: 250px;
}

.showcase__item .phone {
  --phone-glow: transparent;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}

.showcase__item:nth-child(odd) .phone {
  transform: rotate(-2deg);
}

.showcase__item:nth-child(even) .phone {
  transform: rotate(2deg) translateY(14px);
}

.showcase__item:hover .phone {
  transform: rotate(0) translateY(-6px);
}



.showcase__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline: 6px;
}

.showcase__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.showcase__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.showcase__note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- cta ---- */

.cta {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(123, 110, 255, 0.35), rgba(90, 80, 212, 0.1) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.cta__title {
  font-size: clamp(40px, 8vw, 104px);
  max-width: 12ch;
}

.cta .section-lede {
  max-width: 48ch;
}

.cta .btn-row {
  margin-top: 12px;
}

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 1080px) {
  .ticker__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 24px;
  }

  .ticker__stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 32px;
  }

  .demo--months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 24px;
  }

  .hero__title {
    max-width: 14ch;
  }

  .hero__stage {
    --phone-w: min(300px, 72vw);
    padding: 24px 0;
  }

  .float--1 {
    left: 2%;
  }

  .float--2 {
    right: 0;
  }

  .float--3 {
    right: 0;
  }

  .story__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Pinned story: the phone and the current step's text stay together for
     the whole scroll runway, and main.js swaps both by scroll progress.
     --stage-h is the phone's height (aspect 393:852 plus its bezel) plus
     the dots row, so the text can stick right under it. */
  .story__layout {
    --phone-w: min(210px, 52vw);
    --stage-h: calc(var(--phone-w) * 2.107 + 46px);
    height: 280svh;
    align-content: start;
  }

  .story__stage {
    order: -1;
    position: sticky;
    top: var(--nav-height);
    height: var(--stage-h);
    padding: 12px 0 0;
    z-index: 2;
    background: var(--void);
  }

  .story__stage-inner {
    --phone-w: min(210px, 52vw);
    gap: 14px;
  }

  .story__steps {
    position: sticky;
    top: calc(var(--nav-height) + var(--stage-h));
    height: 210px;
    z-index: 2;
    background: linear-gradient(180deg, var(--void) 80%, transparent);
  }

  .story__step,
  .story__step:first-child,
  .story__step:last-child {
    position: absolute;
    inset: 0;
    min-height: 0;
    max-width: none;
    padding: 18px 4px 0;
    justify-content: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    text-align: center;
    align-items: center;
  }

  .story__step.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .story__step-title {
    font-size: 26px;
  }

  .story__step-text {
    font-size: 15px;
    max-width: 34ch;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento__item--wide {
    grid-column: span 2;
  }

  .bento__item--quiet {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .pro__grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .pro__card {
    padding: 22px;
  }

  .hero {
    min-height: 0;
  }

  .hero__copy {
    gap: 20px;
  }

  .hero__title {
    font-size: clamp(42px, 12.5vw, 60px);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__cue {
    display: none;
  }

  .float {
    font-size: 12px;
    padding: 8px 12px 8px 10px;
  }

  .float--3 {
    display: none;
  }

  .ticker__value {
    font-size: 22px;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento__item,
  .bento__item--wide,
  .bento__item--quiet {
    grid-column: span 1;
    min-height: 0;
    padding: 22px;
  }

  /* The Pro chips need the full width on a phone, so the tile stacks. */
  .bento__item--quiet {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .demo--pro {
    max-width: none;
    justify-content: flex-start;
  }

  .pro-chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .demo__row {
    grid-template-columns: 96px 1fr 36px;
    gap: 10px;
  }

  .demo__cmp {
    grid-template-columns: 84px 1fr 40px;
  }

  .showcase__item {
    width: 230px;
    --phone-w: 230px;
  }

  .cta .btn-row {
    width: 100%;
  }

  .cta .btn {
    width: 100%;
  }
}

@media (max-height: 760px) and (max-width: 960px) {
  .story__layout,
  .story__stage-inner {
    --phone-w: min(170px, 44vw);
  }
}

/* Too short to pin phone and text together: let the block scroll normally. */
@media (max-height: 600px) and (max-width: 960px) {
  .story__layout {
    height: auto;
  }

  .story__stage,
  .story__steps {
    position: relative;
    top: 0;
  }

  .story__steps {
    height: auto;
  }

  .story__step,
  .story__step:first-child,
  .story__step:last-child {
    position: relative;
    opacity: 1;
    transform: none;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__orb,
  .float,
  .hero__cue-line {
    animation: none;
  }

  .phone--hero {
    transform: none;
  }

  .is-revealed .demo__fill,
  .demo__fill {
    width: var(--v);
  }

  .demo__ring-fill {
    stroke-dashoffset: calc(100 - var(--v));
  }

  .demo__months i {
    height: var(--h);
  }
}
