.landing-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 3vh, 28px);
  padding-top: max(clamp(24px, 3vw, 32px), env(safe-area-inset-top));
  padding-right: max(clamp(24px, 6vw, 88px), env(safe-area-inset-right));
  padding-bottom: max(clamp(24px, 3vw, 32px), env(safe-area-inset-bottom));
  padding-left: max(clamp(24px, 6vw, 88px), env(safe-area-inset-left));
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header {
  justify-content: space-between;
}

.site-footer {
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 13px;
}

.site-wordmark {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
}

.header-links,
.site-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.header-links a:hover,
.header-links a:focus-visible,
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--text);
}

.landing-hero {
  display: grid;
  width: min(100%, 1140px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 34rem) minmax(220px, clamp(220px, 18vw, 270px));
  align-items: center;
  gap: clamp(72px, 8vw, 128px);
  min-height: 0;
}

.hero-copy {
  max-width: 34rem;
}

.hero-app-icon {
  display: inline-flex;
  width: clamp(104px, 9vw, 132px);
  height: clamp(104px, 9vw, 132px);
  margin-bottom: 20px;
  border-radius: clamp(26px, 2.4vw, 34px);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 18, 24, 0.08);
}

.hero-app-icon img {
  width: 100%;
  height: 100%;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.45rem, 5.5vw, 4.1rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.lede {
  margin: 18px 0 0;
  max-width: 34rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  text-wrap: pretty;
}

.cta-row {
  margin-top: 26px;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 12px 24px rgba(16, 18, 24, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.app-store-link:hover,
.app-store-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(16, 18, 24, 0.14);
}

.app-store-link:focus-visible,
.slideshow-dot:focus-visible,
.slideshow-shell:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 4px;
}

.app-store-link.is-pressing {
  animation: app-store-press 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.app-store-link img {
  display: block;
  height: 78px;
  width: auto;
}

@keyframes app-store-press {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 24px rgba(16, 18, 24, 0.1);
    filter: brightness(1);
  }

  45% {
    transform: scale(0.95);
    box-shadow: 0 8px 18px rgba(16, 18, 24, 0.08);
    filter: brightness(0.97);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 12px 24px rgba(16, 18, 24, 0.1);
    filter: brightness(1);
  }
}

.app-store-link.is-disabled {
  opacity: 0.78;
  pointer-events: none;
}

.slideshow-stage {
  display: grid;
  justify-items: end;
}

.slideshow-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  overflow: visible;
  border-radius: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  touch-action: pan-y;
  transform: translateX(clamp(112px, 14.4vw, 192px)) scale(1.06);
}

.slideshow-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.975);
  filter: blur(8px);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
  will-change: opacity, transform, filter;
  pointer-events: none;
}

.slideshow-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 2;
}

.slideshow-slide.is-previous {
  transform: scale(0.982);
  filter: blur(8px);
  z-index: 1;
}

.slideshow-slide.is-next {
  transform: scale(0.982);
  filter: blur(8px);
  z-index: 1;
}

.slideshow-slide picture,
.slideshow-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.slideshow-slide img {
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-soft) 42%, transparent);
  cursor: pointer;
  opacity: 0.92;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.slideshow-dot:hover {
  opacity: 1;
}

.slideshow-dot.is-active {
  background: var(--text);
  transform: scale(1.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .landing-hero {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 220px);
    max-width: 38rem;
  }

  .slideshow-stage {
    justify-items: center;
  }

  .slideshow-shell {
    width: min(100%, 320px);
    transform: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    gap: 18px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    gap: 10px;
  }

  .header-links,
  .site-footer__links {
    justify-content: flex-start;
    gap: 12px;
    font-size: 13px;
  }

  .header-links {
    display: none;
  }

  .hero-copy {
    min-height: calc(100svh - 190px);
  }

  .hero-app-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 24px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

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

  .cta-row {
    margin-top: 22px;
  }

  .app-store-link img {
    height: 60px;
  }

  .slideshow-shell {
    width: min(100%, 78vw);
    border-radius: 32px;
    transform: none;
  }

  .slideshow-dots {
    bottom: 16px;
    gap: 9px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-store-link,
  .slideshow-slide,
  .slideshow-dot {
    transition: none;
  }

  .app-store-link.is-pressing {
    animation: none;
  }
}

@media (min-width: 561px) {
  .site-footer__links {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .page-shell {
    gap: 16px;
  }

  .hero-app-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 16px;
  }

  .lede {
    margin-top: 14px;
  }

  .cta-row {
    margin-top: 22px;
  }

  .app-store-link img {
    height: 70px;
  }

  .slideshow-shell {
    width: min(100%, 268px);
  }
}
