/* Application green hero — card wheel surface (Figma CardCarousel_Section 33:9484) */

.app-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 65px);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--padding);
  padding-block: var(--section-stack-padding-y);
  box-sizing: border-box;
  background: var(--color-green);
  overflow: hidden;
}

/* Green hero under fixed navbar: flush to viewport top, content clears bar, full viewport height.
 * Negative margin pulls the block up; min-height must add that pull or the bottom falls short of 100svh (visible on tall / 4K screens). */
body.page-under-nav-hero .app-hero {
  --app-hero-top-pull: clamp(16px, 3.5vw, 44px);
  margin-top: calc(-1 * var(--app-hero-top-pull));
  min-height: calc(100vh + var(--app-hero-top-pull));
  min-height: calc(100svh + var(--app-hero-top-pull));
  min-height: calc(100lvh + var(--app-hero-top-pull));
  padding-top: calc(var(--navbar-height) + var(--section-stack-padding-y));
  padding-bottom: 0;
}

/* Smart wallet hero only: extra bottom inset so the download CTA clears the section edge */
body.page-under-nav-hero .app-hero.app-hero--smart-wallet {
  padding-bottom: var(--section-stack-padding-y);
}

/* Lift copy block slightly more under the navbar */
body.page-under-nav-hero .app-hero__inner {
  margin-top: clamp(-12px, -1.2vw, -4px);
}

/* Primary CTA: icon on the physical left, label on the right (LTR row + SVG before span) */
body.page-under-nav-hero .app-hero .hero__cta-primary {
  direction: ltr;
}

.app-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

.app-hero__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.5rem, 4vw + 1.5rem, 7.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--color-black);
}

.app-hero__lead {
  margin: 0;
  max-width: min(920px, 100%);
  font-size: clamp(1.125rem, 1.1vw + 0.85rem, var(--font-main));
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-black);
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/*
 * Wheel: show top of SVG; inner clip + top inset so the art is not clipped at the top edge.
 * Rotation around asset center (50% 50%).
 */
.app-hero__wheel-stage {
  width: 100%;
  max-width: var(--max-width-wide);
  flex-shrink: 0;
  margin-top: auto;
  pointer-events: none;
}

.app-hero__wheel-clip {
  --app-hero-wheel-pad-top: clamp(12px, 2.2vw, 28px);
  position: relative;
  width: 100%;
  height: clamp(180px, 24vw, 420px);
  box-sizing: border-box;
  overflow: hidden;
}

.app-hero__wheel {
  position: absolute;
  left: 50%;
  top: var(--app-hero-wheel-pad-top);
  /* Never wider than clip — avoids side clipping on narrow viewports */
  width: min(1240px, 100%);
  max-width: 100%;
  height: auto;
  display: block;
  transform: translateX(-50%) rotate(var(--app-hero-wheel-deg, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .app-hero__wheel {
    transform: translateX(-50%) rotate(0deg);
    will-change: auto;
  }
}

/* Tablet / mobile: drop forced viewport height so copy + wheel aren’t stretched apart */
@media (max-width: 1024px) {
  body.page-under-nav-hero .app-hero {
    min-height: 0;
    min-height: unset;
  }

  .app-hero {
    gap: clamp(20px, 4vw, 36px);
  }

  .app-hero__wheel-stage {
    margin-top: 0;
  }

  .app-hero__wheel-clip {
    height: clamp(140px, 26vw, 280px);
  }
}

@media (max-width: 480px) {
  .app-hero {
    gap: clamp(16px, 5vw, 28px);
  }

  .app-hero__inner {
    gap: 16px;
  }

  .app-hero__wheel-clip {
    height: clamp(120px, 32vw, 220px);
  }
}
