:root {
  --color-navy: #004d85;
  --color-teal: #23cabb;
  --color-coral: #f85849;
  --color-light-blue: #e6f2ff;
  --color-white: #ffffff;
  --color-text: var(--color-navy);
  --color-muted: rgba(0, 77, 133, 0.72);
  --color-border: #e0e0e0;
  --focus-ring: 0 0 0 4px rgba(35, 202, 187, 0.35);
  --legal-header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, var(--color-light-blue) 0%, var(--color-white) 42%);
}

a {
  color: var(--color-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #003d6a;
}

a:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 4px;
  box-shadow: var(--focus-ring);
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 56px 24px 24px;
  place-items: center;
}

.hero-contact {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.hero-contact:hover {
  color: var(--color-navy);
}

.hero {
  display: grid;
  width: min(100%, 720px);
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.tagline {
  max-width: 36rem;
  margin: 28px 0 18px;
  color: var(--color-navy);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0;
}

.tagline span {
  display: block;
}

.store-link {
  display: inline-flex;
  border-radius: 6px;
}

.store-badge {
  display: block;
  width: min(180px, 52vw);
  height: auto;
}

.waitlist-form {
  width: 100%;
  margin-top: 0;
}

.waitlist-form .ml-embedded {
  width: 100%;
}

.play-store-gallery {
  width: min(100%, 980px);
  min-width: 0;
  margin-top: 42px;
}

.gallery-intro {
  width: min(100%, 560px);
  margin: 0 auto 20px;
}

.gallery-intro h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.gallery-intro p {
  margin: 8px 0 0;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
}

.waitlist-form .ml-form-embedContainer,
.waitlist-form .ml-form-embedContainer p,
.waitlist-form .ml-form-embedContainer span,
.waitlist-form .ml-form-embedContainer a,
.waitlist-form .ml-form-embedContainer input,
.waitlist-form .ml-form-embedContainer button {
  color: var(--color-text) !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.waitlist-form .ml-form-embedContainer p {
  margin-block: 0 1rem !important;
}

.waitlist-form .ml-form-embedContainer input {
  font-weight: 400 !important;
}

.waitlist-form .ml-form-embedContainer button {
  font-weight: 700 !important;
}

.waitlist-form .ml-form-embedContainer .ml-form-formContent input.form-control {
  color: var(--color-text) !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.waitlist-form .ml-form-embedContainer .ml-form-embedSubmit button.primary {
  color: var(--color-white) !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

#mlb2-41689572.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent input.form-control {
  color: var(--color-text) !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.waitlist-form #mlb2-41689572.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-block-form .ml-form-embedSubmit button.primary {
  color: var(--color-white) !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.waitlist-form .ml-form-embedPermissions p,
.waitlist-form .ml-form-embedPermissions span,
.waitlist-form .ml-form-embedPermissions a {
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
}

/* One screenshot in focus at a time — identical behaviour at every width. */
.screenshot-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  /* Width of the focused screenshot; arrows are positioned from this too. */
  --shot-w: min(74vw, 300px);
}

.screenshot-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-track::-webkit-scrollbar {
  display: none;
}

.screenshot-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  scroll-snap-align: center;
}

.screenshot-slide img {
  display: block;
  width: var(--shot-w);
  height: auto;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 0 0 1px rgba(0, 77, 133, 0.05);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(0, 77, 133, 0.22),
    0 0 0 1px rgba(0, 77, 133, 0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-arrow span {
  margin-top: -3px;
}

/* Sit just outside the focused screenshot, but never closer than 4px to the
   carousel edge (so they can't be clipped on narrow screens). */
.carousel-arrow--prev {
  right: min(calc(50% + var(--shot-w) / 2 + 10px), calc(100% - 48px));
}

.carousel-arrow--next {
  left: min(calc(50% + var(--shot-w) / 2 + 10px), calc(100% - 48px));
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Edge state stays clickable (clamped no-op) so clicks never fall through
   to the screenshot behind the button. */
.carousel-arrow.is-edge {
  opacity: 0;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 77, 133, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--color-navy);
  transform: scale(1.3);
}

.legal-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  min-height: var(--legal-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 880px) / 2 + 24px));
  background: transparent;
  transition:
    min-height 180ms ease,
    padding 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    backdrop-filter 180ms ease;
}

.legal-header a {
  display: inline-flex;
  border-radius: 6px;
}

.legal-header.is-compact {
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 77, 133, 0.1);
}

.close-link {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-navy);
  text-decoration: none;
}

.close-link:hover {
  color: var(--color-coral);
}

.home-icon {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition:
    width 180ms ease,
    height 180ms ease;
}

.legal-header.is-compact .home-icon {
  width: 23px;
  height: 23px;
}

.legal-logo {
  display: block;
  width: min(250px, 68vw);
  height: auto;
  transition: width 180ms ease;
}

.legal-header.is-compact .legal-logo {
  width: min(180px, 56vw);
}

.legal-page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: calc(var(--legal-header-height) + 34px) 24px 56px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-size: clamp(1.65rem, 1.35rem + 1.1vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-content h2 {
  margin: 36px 0 12px;
  color: var(--color-navy);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 24px 0 8px;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text);
  font-size: 1rem;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 1.35rem;
}

.legal-content li {
  margin: 8px 0;
}

.legal-content strong {
  font-weight: 700;
}

.last-updated {
  color: var(--color-muted);
  font-style: italic;
}

.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 8px;
  color: var(--color-muted);
  text-decoration: none;
  animation: scroll-cue-bounce 2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 24px;
  height: 24px;
}

.scroll-cue:hover {
  color: var(--color-navy);
}

@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.site-footer {
  border-top: 1px solid rgba(0, 77, 133, 0.1);
  background: rgba(230, 242, 255, 0.4);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 40px 24px 36px;
}

.site-footer-logo {
  display: block;
  width: 140px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer-logo:hover {
  opacity: 1;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer-nav a {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-nav a:hover {
  color: var(--color-navy);
}

.site-footer-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 77, 133, 0.25);
}

.site-footer-copy {
  margin: 0;
  color: rgba(0, 77, 133, 0.38);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.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;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 88px 48px 48px;
  }

  .hero-contact {
    top: 34px;
    right: max(48px, calc((100vw - 1040px) / 2 + 48px));
  }

  .hero {
    width: min(100%, 1040px);
  }

  .play-store-gallery {
    margin-top: 52px;
  }

  .gallery-intro {
    margin-bottom: 24px;
  }
}

@media (max-width: 420px) {
  :root {
    --legal-header-height: 82px;
  }

  .page-shell {
    padding: 24px;
  }

  .hero-contact {
    position: static;
    justify-self: center;
    margin-top: 28px;
    order: 2;
  }

  .brand-logo {
    width: min(100%, 330px);
  }

  .tagline {
    margin-top: 24px;
  }

  .tagline span {
    display: inline;
  }

  .play-store-gallery {
    margin-top: 32px;
  }

  .gallery-intro {
    margin-bottom: 16px;
  }

  .gallery-intro p {
    font-size: 0.96rem;
  }

  .screenshot-carousel {
    --shot-w: min(78vw, 280px);
  }

  .screenshot-slide img {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0, 77, 133, 0.05);
  }

  .legal-header {
    padding: 14px 18px;
  }

  .legal-header.is-compact {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .legal-logo {
    width: min(230px, 70vw);
  }

  .legal-header.is-compact .legal-logo {
    width: min(170px, 56vw);
  }

  .legal-page {
    padding-top: calc(var(--legal-header-height) + 28px);
  }
}
