/* FeatureShowcase — plain scoped CSS (Webflow shadow root), mobile-first with tablet 768px / desktop 1280px. */

.feature-showcase,
.feature-showcase *,
.feature-showcase *::before,
.feature-showcase *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family, 'IBM Plex Sans'), sans-serif;
}

.feature-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0 21px;
  overflow: hidden;
  color: #fff;
  /* The glow runs past the bottom edge; fade it to black there so the section doesn't end on a hard line. */
  background:
    linear-gradient(to bottom, transparent calc(100% - 320px), #000 calc(100% - 24px)),
    radial-gradient(
      60% 50% at 50% 70%,
      rgba(214, 109, 0, 0.45),
      rgba(124, 57, 0, 0.35) 40%,
      rgba(72, 22, 5, 0.2) 70%,
      transparent
    ),
    #000;
}

@media (min-width: 768px) {
  .feature-showcase {
    padding: 33px 32px 0;
    border-radius: 32px;
  }
}

/* Desktop: Figma's product block sits in the 1673px page column with 79px inside it. */
@media (min-width: 1280px) {
  .feature-showcase {
    width: auto;
    margin-inline: max(79px, calc((100% - 1673px) / 2));
    padding: 55px 79px 0;
  }
}

/* Figma motion (cohort 5730:55653, 2s): only the CTA animates — wrapper then button, compounded. */
@keyframes feature_showcase_cta_wrapper {
  0% {
    opacity: 0;
    translate: 0 20px;
  }
  30% {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    translate: 0 20px;
  }
  65% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes feature_showcase_cta_button {
  0% {
    opacity: 0;
    translate: 0 16px;
  }
  45% {
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    translate: 0 16px;
  }
  85% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

.feature-showcase__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 0 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .feature-showcase__header {
    padding: 0;
  }
}

.feature-showcase__headline {
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff;
}

.feature-showcase__copy {
  max-width: 560px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
}

.feature-showcase__headline + .feature-showcase__copy {
  margin-top: -12px;
}

@media (min-width: 768px) {
  .feature-showcase__headline {
    font-size: 58px;
    line-height: 0.78;
    letter-spacing: -1px;
  }

  .feature-showcase__copy {
    font-size: 20px;
    line-height: 1.05;
  }
}

.feature-showcase__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  animation: feature_showcase_cta_wrapper 2s linear 1;
  animation-play-state: paused;
}

.feature-showcase__cta > a.feature-showcase__button {
  animation: feature_showcase_cta_button 2s linear 1;
  animation-play-state: paused;
}

/* The Edge pill CTA (Figma "button": white, IBM Plex Sans SemiBold, fully rounded). Tag-qualified to beat the reset. */
a.feature-showcase__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 146px;
  padding: 18px 23px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

a.feature-showcase__button:hover {
  background: #f0dab1;
  box-shadow: 0 0 24px rgba(240, 218, 177, 0.35);
}

a.feature-showcase__button:active {
  transform: scale(0.98);
}

a.feature-showcase__button:focus-visible {
  outline: 2px solid #e0b25c;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  a.feature-showcase__button {
    min-width: 185px;
    padding: 20px 26px;
    font-size: 18.43px;
  }
}

@media (min-width: 1280px) {
  a.feature-showcase__button {
    min-width: 180px;
    padding: 22px 28px;
    font-size: 20px;
  }
}

.feature-showcase__features {
  position: relative;
  width: 100%;
  margin-top: 63px;
}

@media (min-width: 768px) {
  .feature-showcase__features {
    margin-top: 74px;
  }
}

.feature-showcase__track {
  display: flex;
  width: 100%;
  padding-left: 16.5px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16.5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.feature-showcase__track::after {
  content: '';
  flex: 0 0 45.5px;
}

.feature-showcase__track:focus-visible {
  outline: 2px solid #e0b25c;
  outline-offset: -2px;
  border-radius: 12px;
}

.feature-showcase__feature {
  display: flex;
  flex: 0 0 calc(100% - 18px);
  flex-direction: column;
  align-items: center;
  gap: 23px;
  margin-right: -27.5px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (min-width: 768px) {
  .feature-showcase__track {
    gap: 10px;
    padding-left: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .feature-showcase__track::after {
    content: none;
  }

  .feature-showcase__feature {
    flex: 1 1 0;
    min-width: 0;
    gap: 20px;
    margin-right: 0;
  }
}

@media (min-width: 1280px) {
  .feature-showcase__track {
    gap: 98px;
  }

  .feature-showcase__feature {
    gap: 30px;
  }
}

.feature-showcase__feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 276px;
  text-align: center;
}

@media (min-width: 768px) {
  .feature-showcase__feature-text {
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .feature-showcase__feature-text {
    max-width: 386px;
  }
}

.feature-showcase__feature-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.57px;
  color: #fff;
}

.feature-showcase__feature-copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.07;
  color: #fff;
}

@media (min-width: 1280px) {
  .feature-showcase__feature-title {
    font-size: 28px;
    line-height: 1.07;
    letter-spacing: -1px;
  }

  .feature-showcase__feature-copy {
    font-size: 20px;
  }
}

/*
 * The phone is the Figma photoreal body render (public/phone-body.png, 1390×2858 incl. the side buttons) with
 * the screen capture laid into its opening. On desktop the row is clipped 696px tall so the phones are cut
 * above their bottom bezel, as in Figma. Only the bottom edge clips, so the parallax can lift a phone without cutting
 * its top.
 */
.feature-showcase__phone-clip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .feature-showcase__phone-clip {
    height: 583px;
    clip-path: inset(-200px -200px 0 -200px);
  }
}

@media (min-width: 1280px) {
  .feature-showcase__phone-clip {
    height: 805px;
  }
}

.feature-showcase__phone {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 310px);
  aspect-ratio: 1390 / 2858;
}

@media (min-width: 768px) {
  .feature-showcase__phone {
    width: 100%;
    max-width: 269.5px;
  }
}

@media (min-width: 1280px) {
  .feature-showcase__phone {
    max-width: 385px;
  }
}

.feature-showcase__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.feature-showcase__screen {
  position: absolute;
  inset: 1.68% 4.24% 2.94% 4.17%;
  overflow: hidden;
  border-radius: 32px;
  background: #111;
}

@media (min-width: 1280px) {
  .feature-showcase__screen {
    border-radius: 40px;
  }
}

.feature-showcase__screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Figma: a backdrop-blur band (40px, 3% black) over the bottom of the phones — 111px tall on mobile, 288px desktop.
   It fades in from the top on every size (no hard edge) and on phones stops at the phones instead of reaching the dots. */
.feature-showcase__fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 111px;
  background: rgba(0, 0, 0, 0.03);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px);
  mask-image: linear-gradient(to bottom, transparent, #000 48px);
  pointer-events: none;
}

/* Phones: a taller band with a long fade-in (bright photo tiles on the first screen showed a short fade as an edge)
   and a fade-out at the bottom so the blurred glow doesn't end on a line; the phones dim out under it. */
@media (max-width: 767.98px) {
  .feature-showcase__fade {
    height: 180px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 36px), transparent);
  }

  .feature-showcase__phone-clip {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 calc(100% - 170px),
      rgba(0, 0, 0, 0.35) calc(100% - 70px),
      transparent calc(100% - 10px)
    );
    mask-image: linear-gradient(
      to bottom,
      #000 calc(100% - 170px),
      rgba(0, 0, 0, 0.35) calc(100% - 70px),
      transparent calc(100% - 10px)
    );
  }
}

@media (min-width: 768px) {
  .feature-showcase__fade {
    right: -120px;
    left: -120px;
    margin-bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32px);
    mask-image: linear-gradient(to bottom, transparent, #000 32px);
  }

  .feature-showcase__phone-clip {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 100px), transparent calc(100% - 16px));
    mask-image: linear-gradient(to bottom, #000 calc(100% - 100px), transparent calc(100% - 16px));
  }
}

@media (min-width: 1280px) {
  .feature-showcase__fade {
    bottom: -27px;
    height: 288px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px);
    mask-image: linear-gradient(to bottom, transparent, #000 56px);
  }

  .feature-showcase__phone-clip {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 220px), transparent calc(100% - 40px));
    mask-image: linear-gradient(to bottom, #000 calc(100% - 220px), transparent calc(100% - 40px));
  }
}

.feature-showcase__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .feature-showcase__dots {
    display: none;
  }
}

.feature-showcase__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #535353;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}

.feature-showcase__dot[aria-current='true'] {
  width: 26px;
  height: 8px;
  background: #fff;
}

.feature-showcase__dot:focus-visible {
  outline: 2px solid #e0b25c;
  outline-offset: 3px;
}

.feature-showcase--in-view .feature-showcase__cta,
.feature-showcase--in-view .feature-showcase__cta > a.feature-showcase__button {
  animation-play-state: running;
}

/* The features fade up once their row scrolls into view; from tablet up they arrive one at a time and each feature's text waits for its phone. */
.feature-showcase__feature {
  --feature-showcase-stagger: 0ms;
  opacity: 0;
  translate: 0 40px;
  scale: 0.97;
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--feature-showcase-stagger),
    translate 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--feature-showcase-stagger),
    scale 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--feature-showcase-stagger);
}

@media (min-width: 768px) {
  .feature-showcase__feature:nth-child(2) {
    --feature-showcase-stagger: 250ms;
  }

  .feature-showcase__feature:nth-child(3) {
    --feature-showcase-stagger: 500ms;
  }
}

.feature-showcase__track[data-revealed='true'] .feature-showcase__feature {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .feature-showcase__cta,
  .feature-showcase__cta > a.feature-showcase__button {
    animation: none;
  }

  .feature-showcase__feature {
    opacity: 1;
    translate: none;
    scale: none;
    transition: none;
  }
}

/* Parallax: the three phones float at different depths as the section passes (middle one deepest). */
@keyframes feature_showcase_depth {
  from {
    translate: 0 calc(var(--feature-showcase-depth, 50) * 1px);
  }
  to {
    translate: 0 calc(var(--feature-showcase-depth, 50) * -1px);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    .feature-showcase {
      view-timeline: --feature-showcase block;
    }

    .feature-showcase__phone {
      animation: feature_showcase_depth linear both;
      animation-timeline: --feature-showcase;
      animation-range: cover;
    }

    .feature-showcase__feature:nth-child(2) .feature-showcase__phone {
      --feature-showcase-depth: 90;
    }

    .feature-showcase__feature:nth-child(3) .feature-showcase__phone {
      --feature-showcase-depth: 30;
    }
  }
}

/* Every line of text fades up out of a blur on its own as it scrolls into view; a feature's copy trails its title. */
@media (prefers-reduced-motion: no-preference) {
  .feature-showcase [data-reveal] {
    opacity: 0;
    translate: 0 24px;
    filter: blur(14px);
    transition:
      opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
      translate 1.1s cubic-bezier(0.16, 1, 0.3, 1),
      filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .feature-showcase .feature-showcase__copy[data-reveal] {
    transition-delay: 140ms;
  }

  .feature-showcase .feature-showcase__feature-title[data-reveal] {
    transition-delay: var(--feature-showcase-stagger);
  }

  .feature-showcase .feature-showcase__feature-copy[data-reveal] {
    transition-delay: calc(var(--feature-showcase-stagger) + 140ms);
  }

  .feature-showcase [data-reveal][data-revealed='true'] {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

/* Headline word fill: each word starts dim and brightens in reading order as the headline rises up the screen. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes feature_showcase_word_fill {
      from {
        opacity: 0.18;
      }
      to {
        opacity: 1;
      }
    }

    .feature-showcase {
      view-timeline: --feature-showcase block;
    }

    .feature-showcase__word {
      --feature-showcase-word-start: calc(8% + 42% * var(--feature-showcase-word) / var(--feature-showcase-words));
      --feature-showcase-word-end: calc(
        8% + 42% * (var(--feature-showcase-word) + 1.5) / var(--feature-showcase-words)
      );
      animation: feature_showcase_word_fill linear both;
      animation-timeline: --feature-showcase;
      animation-range: entry var(--feature-showcase-word-start) entry var(--feature-showcase-word-end);
    }
  }
}

