/* Run Around the World — dark landing, Purrer-aligned layout */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --text: rgba(255, 255, 255, 0.94);
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-soft: rgba(255, 255, 255, 0.55);
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  /* Hero phone mockup outer glow (carousel) */
  --phone-glow: #a89cfe;
  /* Horizontal inset for main text blocks and hero (full-bleed stage uses this inside) */
  --content-pad-x: 40px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel__track {
    scroll-snap-type: none;
  }

  .mobile-menu__sheet {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: calc(var(--content-pad-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--content-pad-x) + env(safe-area-inset-right, 0px));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 250;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  text-decoration: none;
}

.skip-link:focus {
  left: max(var(--content-pad-x), env(safe-area-inset-left, 0px));
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 0 0;
  position: relative;
  z-index: 100;
}

.site-header__brand,
.mobile-menu__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.site-header__logo-link,
.mobile-menu__logo-link {
  display: block;
  line-height: 0;
  max-width: min(620px, 96vw);
  text-decoration: none;
}

.site-header__logo,
.mobile-menu__logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-header__tagline {
  margin: 10px 0 0;
  padding: 0;
  padding-left: 2px;
  transform: translate(-2px, -4px);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: min(22rem, 100%);
}

.site-header__tagline-brand {
  font-weight: 600;
  color: var(--text);
}

.site-nav--desktop {
  display: none;
  gap: 1.75rem;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.site-nav--desktop a {
  color: var(--text);
}

.site-nav--desktop a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.nav-link-download {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.nav-link-download__icon {
  font-size: 0.76em;
  line-height: 1;
  opacity: 0.85;
  transform: translateY(-0.02em);
}

.site-nav--desktop a:focus-visible {
  color: var(--accent-soft);
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-self: flex-start;
}

.nav-toggle__bar {
  display: block;
  height: 3px;
  width: 22px;
  border-radius: 9999px;
  background: #fff;
  margin-inline: auto;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.mobile-menu__scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__sheet {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  max-height: calc(100vh - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(22, 22, 26, 0.58);
  padding-top: 0;
}

@supports (height: 100dvh) {
  .mobile-menu__sheet {
    max-height: calc(100dvh - env(safe-area-inset-bottom, 0px));
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mobile-menu__scrim {
    background: rgba(0, 0, 0, 0.5);
  }

  .mobile-menu__sheet {
    background: rgba(18, 18, 22, 0.94);
  }
}

.mobile-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding:
    calc(env(safe-area-inset-top, 0px) + 1.25rem) max(var(--content-pad-x), env(safe-area-inset-right, 0px)) 0
    max(var(--content-pad-x), env(safe-area-inset-left, 0px));
}

.mobile-menu__close {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__close:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.mobile-menu__close-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 22px;
  height: 3.5px;
  border-radius: 9999px;
  background: #fff;
  pointer-events: none;
}

.mobile-menu__close-bar:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close-bar:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__nav {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 4vh, 2rem);
  padding:
    0.75rem max(var(--content-pad-x), env(safe-area-inset-right, 0px))
    max(1.75rem, env(safe-area-inset-bottom, 0px))
    max(var(--content-pad-x), env(safe-area-inset-left, 0px));
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 700;
}

.mobile-menu__nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.32rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.35rem 40px;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
}

.mobile-menu__nav a:focus-visible {
  color: var(--accent-soft);
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

/* Home is auto-focused on open — skip focus ring (other links keep :focus-visible) */
.mobile-menu__nav > a:first-child:focus,
.mobile-menu__nav > a:first-child:focus-visible {
  outline: none;
}

.mobile-menu__nav a[aria-current="page"] {
  color: #fff;
}

main {
  container-type: inline-size;
  position: relative;
  z-index: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* Hero — comp layout: headline clear, very large Earth, carousel+intro overlaid */
.hero-comp {
  position: relative;
  padding: 0.5rem 0 2.75rem;
  --hero-head-under: 100px;
  /* Globe image 1024×992 — width drives disc height for layout math */
  --globe-w: min(94vw, 1080px);
  display: grid;
  grid-template-columns: 1fr;
}

.hero-comp__head {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  position: relative;
  z-index: 5;
  width: min(1100px, 100%);
  max-width: 1100px;
  box-sizing: border-box;
  text-align: center;
  padding-inline: max(var(--content-pad-x), env(safe-area-inset-left, 0px)) max(var(--content-pad-x), env(safe-area-inset-right, 0px));
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  margin-top: calc(-1 * var(--hero-head-under) + (var(--globe-w) * 992 / 1024) * 0.56);
  pointer-events: none;
}

.hero-comp__head .hero-comp__scroll-hint {
  pointer-events: auto;
}

/* Full-bleed row so the globe can reach ~90vw like the comp */
.hero-comp__stage {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Phone + copy start ~30% down the globe (disc height = width × 992/1024) */
  padding-top: calc(clamp(0.75rem, 2.5vh, 1.75rem) + (var(--globe-w) * 992 / 1024 * 0.3));
  padding-bottom: 2.5rem;
  box-sizing: border-box;
  min-height: clamp(300px, 48vw, 520px);
  background-color: var(--bg);
}

.hero-comp__earth-layer {
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--hero-head-under));
  width: var(--globe-w);
  z-index: 0;
  pointer-events: none;
  filter: none;
  box-shadow: none;
  --earth-shift: 0px;
  transform: translate3d(-50%, calc(15px + var(--earth-shift)), 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-comp__earth-layer {
    --earth-shift: 0px;
    transform: translate3d(-50%, 15px, 0);
  }
}

.hero-comp__earth-slot {
  position: relative;
  width: 100%;
  margin: 0 auto;
  line-height: 0;
  background: var(--bg);
  /* Art is already a disc on black — no ellipse clip (avoids runner/path clipped vs mask) */
  overflow: visible;
  isolation: isolate;
  box-shadow: none;
  filter: none;
}

.hero-comp__earth {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  filter: none;
  box-shadow: none;
}

.hero-comp__earth-fade {
  position: absolute;
  left: 0;
  right: 0;
  /* 50px + 10% of disc height above slot so the ramp clears title copy over the globe */
  top: calc(-50px - (var(--globe-w) * 992 / 1024 * 0.1));
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  /* Fade starts 10% higher on the art: clear until 15%, full black by 70% */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 15%,
    rgba(0, 0, 0, 1) 70%,
    #000 100%
  );
}

.hero-comp__features.features {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: calc(1100px - 60px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-pad-x);
  padding-right: var(--content-pad-x);
  box-sizing: border-box;
  text-align: left;
  /* Vertical offset comes from .hero-comp__stage padding-top (30% of globe height) */
  margin-top: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
}

.hero-comp__features .features__intro {
  order: 1;
  margin-top: 0;
}

.hero-comp__features .features__carousel-wrap {
  order: 2;
}

.hero-comp__features .cta-row--mobile-bottom {
  order: 3;
}

.hero-comp__title {
  margin: 0 auto;
  max-width: 44rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 4.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-comp__title-line {
  display: block;
}

.hero-comp__scroll-hint {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
}

.hero-comp__scroll-hint:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.scroll-to-carousel-hint {
  display: none;
}

.scroll-to-carousel-hint:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.features__carousel-subhead {
  display: none;
}

.hero-comp__scroll-chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.features {
  padding-bottom: 2rem;
}

#features {
  scroll-margin-top: 1rem;
}

#carousel {
  scroll-margin-top: 1rem;
}

#faq {
  scroll-margin-top: 1rem;
}

.home-faq {
  width: 100%;
  max-width: calc(1100px - 60px);
  margin: 0 auto;
  /* No horizontal padding — body already applies --content-pad-x (features sits in full-bleed stage with a single pad) */
  padding: 0 0 2.5rem;
  box-sizing: border-box;
}

.home-faq .features__subtitle {
  padding-top: 0;
}

.home-faq__list {
  display: grid;
  gap: 1.25rem;
}

/* Anchor / programmatic focus (tabindex=-1) — hide default browser ring */
#carousel:focus,
#carousel:focus-visible {
  outline: none;
}

#download.cta-row:focus,
#download.cta-row:focus-visible {
  outline: none;
}

.hero-comp__features .features__copy {
  margin-inline: 0;
  padding-right: 0;
}

.features__subtitle {
  margin: 0 0 1rem;
  padding-top: 8px;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.features__copy {
  max-width: 38rem;
}

.features__copy p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-faq__question {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.home-faq__answer {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-faq__answer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.home-faq__answer a:hover,
.home-faq__answer a:focus-visible {
  color: var(--accent-soft);
}

.hero-comp__features .features__copy p {
  margin-right: clamp(0.75rem, 2.5vw, 1.5rem);
}

.features__list {
  margin: 0 0 calc(1.25rem + 12px);
  padding-left: 1.15rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.features__list li {
  margin: 0 0 0.45rem;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

#download.cta-row {
  max-width: 480px;
  justify-content: flex-start;
}

.cta-row--mobile-bottom {
  max-width: 480px;
  display: flex;
  margin-top: 2rem;
  justify-content: flex-start;
}

.features__intro--mobile-top .cta-row:first-of-type {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Portrait phones (stacked hero) */
@media (max-width: 767.98px) {
  .hero-comp {
    padding-top: calc(0.5rem + 80px);
  }

  #download.cta-row {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
  }

  /* Push intro below overlaid hero head + chevron; max bumps up on wide mobile where vw + rem clears the cap */
  .hero-comp__features .features__intro {
    margin-top: clamp(4.875rem, calc(22vw + 1.35rem), 12rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-comp__head {
    isolation: isolate;
    padding-bottom: 0.75rem;
  }

  /* Keep chevron higher under the title so it sits in open globe area, not over copy */
  .hero-comp__scroll-hint {
    position: relative;
    z-index: 2;
    margin-top: 0.65rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .scroll-to-carousel-hint {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-self: stretch;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
  }

  .features__carousel-subhead {
    display: block;
    margin: 0 0 20px;
    padding: 0 0 0.35rem;
    font-size: clamp(1rem, 2.9vw, 1.28rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: left;
  }

  /* Higher specificity so these win over later .features__carousel-wrap / .carousel__viewport rules */
  .hero-comp__features .features__carousel-wrap {
    margin-top: -20px;
  }

  .hero-comp__features .carousel__viewport {
    padding-top: clamp(0.2rem, 1.5vw, 0.55rem);
    padding-bottom: clamp(0.25rem, 1.5vw, 0.65rem);
  }

  .hero-comp__features .carousel__slide {
    padding-top: clamp(0.35rem, 3vw, 0.85rem);
    padding-bottom: clamp(1rem, 4.5vw, 1.75rem);
    padding-left: 0;
    padding-right: 0;
  }

  .hero-comp__features .carousel__dots {
    margin-top: 2px;
  }

  .hero-comp__features.features {
    gap: 0.35rem;
    padding-bottom: 1rem;
  }

  /* Darken only the lower half — headline sits mid-globe; full fade was washing out the top */
  .hero-comp__earth-fade {
    top: 50%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 12%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.88) 72%,
      #000 100%
    );
  }

  .cta-row--mobile-bottom {
    margin-bottom: 1rem;
  }
}

.app-store-btn {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}

.app-store-btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.app-store-btn img {
  display: block;
  width: clamp(calc(148px * 0.828 * 0.9), calc(42vw * 0.828 * 0.9), calc(220px * 0.828 * 0.9));
  height: auto;
  filter: invert(1) brightness(1.08) contrast(1.05);
}

.cta-note {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: none;
}

.features__carousel-wrap {
  display: flex;
  justify-content: center;
  overflow: visible;
}

@media (min-width: 768px) {
  .features__carousel-wrap {
    margin-top: 0.5rem;
  }
}

.carousel {
  --carousel-aperture: calc(min(calc(280px * 1.32), calc(78vw * 1.32)) + clamp(48px, 12vw, 88px));
  /* Avoid min(..., 100%) here: % is against the grid cell, which was sized from this width → circular layout bugs */
  width: min(var(--carousel-aperture), calc(100vw - 2 * var(--content-pad-x)));
  margin-inline: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.carousel__viewport {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: clamp(2rem, 6.5vw, 3.25rem);
  /* Room for glow + dots; floor avoids zero when the old calc goes negative */
  padding-bottom: max(2rem, calc(clamp(2rem, 6.5vw, 3.25rem) + 1rem - 80px));
  box-sizing: border-box;
  width: 100%;
}

.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
}

/* Allow vertical page scroll over carousel on touch; keep native scroll-snap on track */
@media (pointer: coarse) {
  .carousel__track {
    touch-action: pan-x pan-y pinch-zoom;
  }
}

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

.carousel__slide {
  flex: 0 0 min(var(--carousel-aperture), calc(100vw - 2 * var(--content-pad-x)));
  width: min(var(--carousel-aperture), calc(100vw - 2 * var(--content-pad-x)));
  min-width: min(var(--carousel-aperture), calc(100vw - 2 * var(--content-pad-x)));
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Vertical room for glow; horizontal space comes from slide wider than phone */
  padding: clamp(2.25rem, 8vw, 3.75rem) 0;
  box-sizing: border-box;
}

@supports (width: min(1px, 1cqi)) {
  .carousel {
    width: min(var(--carousel-aperture), 100cqi);
  }

  .carousel__slide {
    flex: 0 0 min(var(--carousel-aperture), 100cqi);
    width: min(var(--carousel-aperture), 100cqi);
    min-width: min(var(--carousel-aperture), 100cqi);
  }
}

/* Glow on a wrapper — filter + overflow:hidden on one element clips after idle tabs (WebKit) */
.phone-mockup-glow {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: min(304px, 88vw);
  --phone-glow:
    drop-shadow(0 0 8px rgba(168, 156, 254, 0.72))
    drop-shadow(0 0 20px rgba(168, 156, 254, 0.42))
    drop-shadow(0 0 36px rgba(168, 156, 254, 0.24));
  filter: var(--phone-glow);
  -webkit-filter: var(--phone-glow);
}

.phone-mockup-glow.is-repainting {
  filter: none;
  -webkit-filter: none;
}

.phone-mockup {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: none;
  /* Must match iPhone_17_Pro_Max_chrome_adj.png width / height attributes */
  aspect-ratio: 494 / 1024;
  border-radius: clamp(26px, 7.5vw, 40px);
  overflow: hidden;
}

.phone-mockup__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Slight inset so screenshots don’t peek past the bezel (Purrer-aligned) */
.phone-mockup .phone-mockup__screen.phone-mockup__layer {
  inset: 1.4%;
  width: auto;
  height: auto;
}

.phone-mockup img {
  max-width: none;
}

.phone-mockup__screen {
  display: block;
  z-index: 0;
  overflow: hidden;
  border-radius: clamp(34px, 9vw, 54px);
}

.phone-mockup__screen img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  border-radius: inherit;
}

.phone-mockup__chrome {
  z-index: 1;
  pointer-events: none;
}

.carousel__hit {
  display: none;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .carousel:not(.carousel--single) .carousel__hit {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel__hit:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: -2px;
  }

  .carousel__hit:disabled {
    cursor: default;
    pointer-events: none;
  }
}

.carousel--single .carousel__hit {
  display: none !important;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.carousel__dot[aria-selected="true"] {
  background: var(--phone-glow);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.site-footer {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0 2.5rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
}

.site-footer__nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: #fff;
  opacity: 1;
}

.site-footer__nav a[aria-current="page"] {
  color: #fff;
  opacity: 1;
}

.site-footer__sep {
  opacity: 0.55;
  user-select: none;
}

.site-footer p {
  margin: 0;
}

/* p + class beats .site-footer p alone so margins/text-align stay predictable */
.site-footer p.site-footer__copyright {
  max-width: min(40rem, 100%);
  line-height: 1.45;
  text-align: center;
}

.content-page {
  max-width: 960px;
  margin: 0 auto;
  padding:
    1.2rem max(var(--content-pad-x), env(safe-area-inset-right, 0px)) 3rem
    calc(max(var(--content-pad-x), env(safe-area-inset-left, 0px)) + 8px);
}

.content-page__title {
  margin: 0 0 0.65rem;
  padding-top: 40px;
  font-size: clamp(1.45rem, 4.6vw, 2rem);
  line-height: 1.15;
  color: #fff;
}

.content-page__lede {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
}

.content-page h2 {
  margin: 1.2rem 0 0.5rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: #fff;
}

.content-page h3 {
  margin: 1rem 0 0.45rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 600;
  color: #fff;
}

.content-page p,
.content-page li {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.content-page ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.15rem;
}

.content-page a {
  color: var(--accent-soft);
}

.content-page a[href^="mailto:"] {
  color: #fff;
}

.content-page a:hover {
  color: #c4b5fd;
}

.content-page a[href^="mailto:"]:hover,
.content-page a[href^="mailto:"]:focus-visible {
  color: rgba(255, 255, 255, 0.88);
}

.content-page__cta {
  margin-top: 2rem;
  margin-bottom: 45px;
}

.content-page .cta-note {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Help / Privacy: body + .content-page both used --content-pad-x — tighten on phones */
@media (max-width: 767.98px) {
  body:has(main.content-page) {
    padding-left: max(1.125rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.125rem, env(safe-area-inset-right, 0px));
  }

  main.content-page {
    padding-inline: 0;
    padding-top: 1.2rem;
    padding-bottom: 3rem;
  }
}

.site-header--cta-only .site-nav--desktop {
  display: flex;
}

.site-header--cta-only .nav-toggle {
  display: none;
}

.content-page__back {
  margin-top: 1.4rem;
  font-size: 0.74rem;
}

.content-page__back a {
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.9;
}

.content-page__back a:hover,
.content-page__back a:focus-visible {
  color: #fff;
  opacity: 1;
}

@media (min-width: 768px) {
  main:not(:has(.hero-comp)) {
    padding-bottom: 1rem;
  }

  /* Landing: reserve space below features so footer clears the App Store CTA */
  main:has(.hero-comp) {
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  }

  .hero-comp {
    --globe-w: min(90vw, 1040px);
    padding-bottom: 0;
    display: block;
  }

  .site-nav--desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-comp__stage {
    grid-column: auto;
    grid-row: auto;
    /* Let stage height follow content; fixed min-height left a large black band under the grid */
    min-height: 0;
    padding-bottom: 0.25rem;
  }

  /* Head in normal flow above full-bleed stage (stays above site header stacking) */
  .hero-comp__head {
    position: relative;
    z-index: 4;
    grid-column: auto;
    grid-row: auto;
    align-self: unset;
    justify-self: unset;
    width: auto;
    max-width: none;
    margin-top: 0;
    text-align: center;
    padding: calc(0.35rem + 25px) 0 calc(0.75rem + var(--hero-head-under));
    pointer-events: auto;
  }

  .hero-comp__features .features__subtitle,
  .hero-comp__features .features__copy,
  .hero-comp__features .features__list {
    text-shadow: 0 0.08em 0.35em rgba(0, 0, 0, 0.75), 0 0.12em 0.55em rgba(0, 0, 0, 0.45);
  }

  .hero-comp__features .features__subtitle {
    font-size: clamp(1rem, 2vw, 1.22rem);
  }

  .home-faq .features__subtitle {
    font-size: clamp(1rem, 2vw, 1.22rem);
  }

  .hero-comp__features .cta-note {
    text-shadow: 0 0.06em 0.25em rgba(0, 0, 0, 0.8);
  }

  .hero-comp__scroll-hint {
    display: none;
  }

  .hero-comp__title {
    max-width: 52rem;
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    margin-top: 0.15rem;
  }

  .hero-comp__features .features__copy {
    max-width: none;
    padding-right: 0;
    margin-inline: auto;
  }

  .cta-note {
    max-width: 42ch;
  }

  .hero-comp__features .features__intro,
  .hero-comp__features .features__carousel-wrap,
  .hero-comp__features .cta-row--mobile-bottom {
    order: unset;
  }

  .hero-comp__features.features {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "carousel intro";
    gap: 0 max(0px, calc(1.25rem - var(--content-pad-x)));
    align-items: stretch;
    padding-top: 0.25rem;
    padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  }

  .features__intro {
    grid-area: intro;
    padding-top: 0;
    text-align: left;
    align-self: start;
  }

  .features__intro--mobile-top .cta-row:first-of-type {
    margin-top: 2.4rem;
  }

  .hero-comp__features .features__carousel-wrap {
    grid-area: carousel;
    margin-top: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transform: translateY(-160px);
    overflow: visible;
  }

  .carousel {
    --carousel-aperture: calc(min(312px, 34vw) + clamp(72px, 18vw, 128px));
  }

  .carousel__viewport {
    padding-bottom: clamp(0.3rem, 0.9vw, 0.65rem);
  }

  .carousel__slide {
    padding-top: clamp(2.25rem, 8vw, 3.75rem);
    padding-bottom: clamp(0.75rem, 3vw, 1.35rem);
    padding-left: 0;
    padding-right: 0;
  }

  .carousel__dots {
    margin-top: 2px;
  }

  .cta-row--mobile-bottom {
    display: none;
  }

  main:has(.hero-comp) + .site-footer {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 0.75rem 0 1.25rem;
  }

  .hero-comp__features #download.cta-row {
    margin-bottom: 0.5rem;
  }

  main.content-page + .site-footer {
    margin-top: 0;
  }
}
