/* Home page: floating header, hero with the price ladder, reel of reactions,
   proof, comparison, results, pricing and the closing call to action. */

.site-header {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 40;
  display: flex;
  justify-content: center;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 1080px);
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgb(23 20 29 / 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-raised);
}

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

.site-header__link {
  padding: 0 10px;
  color: var(--color-muted);
  font-size: 14px;
  text-decoration: none;
}

.site-header__link:hover {
  color: var(--color-text);
}

@media (max-width: 560px) {
  .site-header__bar {
    padding-left: 14px;
  }

  .site-header__link,
  .site-header__actions .button--dark {
    display: none;
  }
}

.section {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: var(--space-section) 20px 0;
  text-align: center;
}

.section-title {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lede {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Hero */

.hero {
  padding: clamp(120px, 16vw, 168px) 20px 56px;
  text-align: center;
}

.hero__title {
  max-width: 1240px;
  margin: 0 auto;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  font-weight: 680;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 680px;
  margin: 30px auto 0;
  color: var(--color-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__proof {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--color-muted);
  font-size: 14px;
  text-decoration: none;
}

.hero__proof:hover {
  color: var(--color-text);
}

.avatar-stack {
  display: inline-flex;
}

.avatar--stack + .avatar--stack {
  margin-left: -10px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.spots {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 22px;
  border: 1px solid rgb(255 95 58 / 0.45);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  font-size: 18px;
}

.spots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgb(255 95 58 / 0.2);
}

.spots__then {
  color: var(--color-muted);
  font-size: 15px;
}

.hero__climb {
  margin-top: 16px;
  font-size: 15px;
}

.hero__forever {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 14px;
}

.hero__note {
  margin-top: 14px;
  color: var(--color-dim);
  font-size: 14px;
}

.hero__launch {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--color-muted);
  font-size: 14px;
  text-wrap: balance;
}

/* Price ladder: each step a little higher than the one before. */

.ladder {
  max-width: 600px;
  margin: 22px auto 0;
  overflow-x: auto;
}

.ladder-chart {
  width: 100%;
  min-width: 480px;
  height: auto;
  overflow: visible;
}

.ladder-chart__done,
.ladder-chart__ahead {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.ladder-chart__done {
  stroke: var(--color-accent);
}

.ladder-chart__ahead {
  stroke: var(--color-dim);
  stroke-dasharray: 2 6;
}

.ladder-chart__dot {
  fill: var(--color-bg);
  stroke: var(--color-dim);
  stroke-width: 2;
}

.ladder-chart__dot--now,
.ladder-chart__dot--sold {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

.ladder-chart__price {
  fill: var(--color-muted);
  font-size: 13px;
  font-family: var(--font-sans);
}

.ladder-chart__price--now {
  fill: var(--color-text);
  font-size: 17px;
  font-weight: 700;
}

.ladder-chart__state {
  fill: var(--color-dim);
  font-size: 12px;
  font-family: var(--font-sans);
}

.ladder-chart__state--now {
  fill: var(--color-accent);
}

/* Reel of reactions: a slow, endless horizontal loop. */

.reel__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.reel__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: reel-scroll 90s linear infinite;
}

.reel__viewport:hover .reel__track,
.reel__viewport:focus-within .reel__track {
  animation-play-state: paused;
}

@keyframes reel-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel__viewport {
    overflow-x: auto;
  }

  .reel__track {
    animation: none;
  }
}

.reel-tile {
  flex: none;
  width: clamp(168px, 17vw, 212px);
}

.reel-tile__link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  text-decoration: none;
}

.reel-tile__video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  background: var(--color-surface-raised);
}

.reel-tile__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
}

.reel-tile__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.reel-tile__name {
  font-weight: 600;
  font-size: 14px;
}

.reel-tile__emotion {
  color: var(--color-muted);
  font-size: 13px;
}

/* Proof: the format already pays. */

.proof__quote {
  max-width: 760px;
  margin: 40px auto 0;
}

.proof__quote blockquote {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
  text-wrap: balance;
}

.proof__quote figcaption {
  margin-top: 16px;
  color: var(--color-dim);
  font-size: 14px;
}

.proof__quote figcaption a {
  color: var(--color-muted);
}

.proof__tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 40px auto 0;
}

@media (max-width: 860px) {
  .proof__tiles {
    grid-template-columns: repeat(5, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .proof-tile {
    scroll-snap-align: center;
  }
}

.proof-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  text-align: left;
}

.proof-tile__video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.proof-tile__overlay {
  position: absolute;
  inset: 42% 10px auto;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 8px rgb(0 0 0 / 0.7);
}

.proof-tile__meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
  line-height: 1.25;
}

.proof-tile__emotion {
  font-weight: 700;
  font-size: 17px;
}

.proof-tile__name {
  color: rgb(255 255 255 / 0.75);
  font-size: 12px;
}

/* A clip played by hand (no JavaScript, reduced motion) shows its controls:
   its label goes under the video so they stay visible and clickable. */
.proof-tile__overlay {
  pointer-events: none;
}

.proof-tile__video[controls] ~ .proof-tile__meta {
  position: static;
  padding: 10px 12px 12px;
  background: none;
}

/* Compare: reference take vs. the clip you get. */

.compare__stage {
  max-width: 700px;
  margin: 48px auto 0;
}

.compare__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare__pair[hidden] {
  display: none;
}

/* Without JavaScript every pair is shown, one under the other. */
.compare__pair:not([hidden]) ~ .compare__pair:not([hidden]) {
  margin-top: 32px;
}

.compare__clip {
  position: relative;
  text-align: left;
}

.compare__video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
}

.compare__clip--yours .compare__video {
  border-color: rgb(255 95 58 / 0.6);
}

.compare__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgb(14 12 18 / 0.78);
  font-size: 13px;
  font-weight: 600;
}

.compare__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.compare__caption {
  margin-top: 10px;
  color: var(--color-dim);
  font-size: 13px;
}

.compare__caption a {
  color: var(--color-muted);
}

.compare__thumbs[hidden] {
  display: none;
}

.compare__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.compare__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 6px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.compare__thumb img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.compare__thumb[aria-pressed="true"] {
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* Results */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 48px auto 0;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.stat__value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--color-muted);
  font-size: 14px;
}

.results__board {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 14px auto 0;
  text-align: left;
}

@media (max-width: 820px) {
  .results__board {
    grid-template-columns: 1fr;
  }
}

/* Without JavaScript the app buttons stay hidden and every panel is shown. */
.results__board:has(> .results__apps[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.results__apps[hidden] {
  display: none;
}

.results__apps {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
}

.results__app {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.results__app[aria-pressed="true"],
.results__app:hover {
  background: var(--color-surface-raised);
}

.results__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 18px;
}

.results__name {
  flex: 1;
  font-weight: 600;
}

.results__revenue {
  color: var(--color-money);
  font-weight: 700;
  font-size: 18px;
}

.results__revenue small {
  margin-left: 2px;
  color: var(--color-dim);
  font-weight: 400;
  font-size: 13px;
}

.results__panels {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
}

.results__panel[hidden] {
  display: none;
}

.results__panel:not([hidden]) ~ .results__panel:not([hidden]) {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.results__panel-title {
  font-size: 20px;
  font-weight: 650;
}

.results__panel-revenue {
  margin-left: 6px;
  color: var(--color-money);
}

.results__label {
  margin-top: 18px;
  color: var(--color-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.results__summary {
  margin-top: 6px;
  color: var(--color-muted);
  line-height: 1.6;
}

.results__source {
  margin-top: 10px;
  color: var(--color-dim);
  font-size: 13px;
}

.results__source a {
  color: var(--color-text);
}

.results__clips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mini-clip {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.mini-clip__video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  background: var(--color-surface-raised);
}

.mini-clip__label {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
  font-size: 12px;
  font-weight: 600;
}

.mini-clip__video[controls] ~ .mini-clip__label {
  position: static;
  display: block;
  padding: 8px 2px 0;
  background: none;
}

/* Pricing */

.price-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 48px auto 0;
}

@media (max-width: 760px) {
  .price-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.price-step__price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-step__who {
  color: var(--color-muted);
  font-size: 14px;
}

.price-step__state {
  color: var(--color-dim);
  font-size: 13px;
}

.price-step--now {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.price-step--now .price-step__state {
  color: var(--color-accent);
  font-weight: 600;
}

.price-step--later,
.price-step--peak {
  opacity: 0.78;
}

.price-step--sold .price-step__price {
  color: var(--color-dim);
  text-decoration: line-through;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 48px auto 0;
  text-align: left;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--color-surface);
}

.plan--highlight {
  border-color: rgb(255 95 58 / 0.55);
  background: linear-gradient(180deg, rgb(255 95 58 / 0.08), var(--color-surface) 45%);
}

.plan__name {
  font-size: 16px;
  font-weight: 650;
}

.plan__price {
  margin-top: 12px;
}

.plan__amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan__once {
  color: var(--color-dim);
}

.plan__sub {
  min-height: 1.5em;
  color: var(--color-dim);
  font-size: 14px;
}

.plan__features {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.plan__feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.plan__check {
  flex: none;
  margin-top: 3px;
  color: var(--color-accent);
}

.pricing__launch {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--color-muted);
  font-size: 15px;
}

/* Closing call to action */

.final .button {
  margin-top: 36px;
}
