/* ============================================================
   MATCHUPS — Website v2
   Brand tokens (mirrors the app):
   dark   #013207  page backgrounds
   mid    #125d1b  stat cards
   light  #3c9647  action / CTA green
   lime   #c1ff72  active-round accent
   white  #ffffff · light gray #f5f5f5 · muted #9ca3af
   ============================================================ */

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --dark: #013207;
  --mid: #125d1b;
  --light: #3c9647;
  --lime: #c1ff72;
  --red: #eb0015;
  --white: #ffffff;
  --gray: #f5f5f5;
  --muted: #9ca3af;
  --ink: #013207;
  --font: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 8px;
  --radius-sheet: 44px;
  --radius-pill: 999px;
  --pad: clamp(20px, 5vw, 48px);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* lock the page horizontally — iOS Safari allows side-panning unless the
   clip lives on BOTH html and body. `clip` (with `hidden` fallback for old
   browsers) kills the pan without creating a new scroll container. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* keep anchored sections clear of the fixed header */
[id] {
  scroll-margin-top: 84px;
}

img, video { max-width: 100%; display: block; }

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

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(193, 255, 114, 0.4);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  margin-bottom: 20px;
}

.on-light .eyebrow {
  color: var(--light);
  border-color: rgba(60, 150, 71, 0.4);
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px var(--pad);
  background: rgba(1, 50, 7, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(193, 255, 114, 0.10);
}

.brand-link img { height: 24px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--lime); }

.nav-cta {
  background: var(--lime);
  color: var(--dark) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(193, 255, 114, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}

.menu-toggle span { top: 21px; }
.menu-toggle span::before { top: -7px; left: 0; }
.menu-toggle span::after { top: 7px; left: 0; }

body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: var(--dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-links a { font-size: 20px; }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  /* backdrop-filter turns the header into the containing block for
     fixed children, which would clip the menu overlay to the header box */
  body.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--dark);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(52px + var(--pad)) var(--pad) 0;
  /* the app's round-overview background art — textured green, light glow up top */
  background: url('images/hero-bg.jpg') center top / cover no-repeat, var(--dark);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { padding-bottom: clamp(48px, 8vw, 110px); }

.hero h1 {
  font-size: clamp(48px, 6.5vw, 78px);
  line-height: 1.02;
  max-width: 14ch;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--lime); }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(193, 255, 114, 0.35);
  border-radius: var(--radius-pill);
  padding: 0 12px;
}

@media (max-width: 860px) {
  .hero-pills { justify-content: center; }
}

/* the screenshots ship with their own device bezel on a transparent
   background — the wrapper only sizes them; never paint behind them */
.phone-frame {
  width: min(320px, 74vw);
  aspect-ratio: 1179 / 2556;
}

.phone-frame img,
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  margin-bottom: 18px;
}

.hero-media {
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: min(350px, 78vw);
  transform: translateY(6%);
}

.hero-phone img { filter: drop-shadow(0 32px 70px rgba(0, 0, 0, 0.48)); }

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy { padding-bottom: 0; text-align: center; }
  .hero-copy h1 { margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero .waitlist-form { margin-left: auto; margin-right: auto; }
  .hero-media { margin-top: clamp(16px, 3vw, 24px); }
  .hero-phone { transform: none; }
}

/* ---------- waitlist form ---------- */

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 6px;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus */
  font-size: 16px;
  padding: 12px 16px;
}

.waitlist-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.waitlist-submit {
  background: var(--lime);
  color: var(--dark);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.waitlist-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(193, 255, 114, 0.4);
}

.waitlist-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.waitlist-status {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  min-height: 18px;
}

.waitlist-status.success { color: var(--lime); }
.waitlist-status.error { color: var(--red); }

.on-light .waitlist-status.success { color: var(--light); }
.on-light .waitlist-status.error { color: var(--red); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
    border-radius: 28px;
    padding: 10px;
  }
  .waitlist-submit { padding: 15px 24px; }
}

/* ---------- white sheet (app parity: bottom tray radius) ---------- */

.sheet {
  background: var(--gray);
  color: var(--ink);
  border-top-left-radius: var(--radius-sheet);
  border-top-right-radius: var(--radius-sheet);
  position: relative;
  z-index: 2;
}

.sheet-grabber {
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: rgba(156, 163, 175, 0.45);
  margin: 22px auto 0;
}

/* ---------- feature sections ---------- */

.features {
  padding: clamp(40px, 7vw, 96px) var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 140px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.feature.flip .feature-media { order: 2; }

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media .phone-frame img,
.feature-media .phone-frame video { filter: drop-shadow(0 24px 48px rgba(1, 50, 7, 0.24)); }

.feature-copy h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  color: var(--ink);
  margin-bottom: 18px;
}

.feature-copy h2 .accent { color: var(--light); }

.feature-copy p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  font-weight: 600;
  color: rgba(1, 50, 7, 0.8);
  max-width: 44ch;
}

/* the small label above section headlines is retired — the headline
   carries the section */
.feature-kicker { display: none; }

@media (max-width: 860px) {
  .feature,
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { order: 0; }
  .feature-copy { text-align: center; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
}

/* ---------- moments explainer (light green band) ---------- */

.moments-band {
  background: var(--light);
  padding: clamp(72px, 10vw, 140px) var(--pad);
  margin-top: clamp(-44px, -4vw, -44px);
  padding-top: clamp(110px, 13vw, 180px);
}

.moments-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

/* the explainer graphic carries its own headline + diagram on a
   transparent background — let it sit directly on the green */
.moments-explainer {
  display: flex;
  justify-content: center;
}

.moments-explainer img {
  width: min(440px, 88vw);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(1, 50, 7, 0.35));
}

.moments-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.moments-inner p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--white);
  font-weight: 600;
  max-width: 42ch;
  text-align: center;
}

.moments-phone { width: min(280px, 70vw); }

/* white band under the green Moments section — the screen recording has a
   white bezel baked in, so a white background makes it read as one surface */
.moments-video-band {
  background: var(--white);
  padding: clamp(48px, 7vw, 96px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 44px);
}

.moments-video-copy {
  text-align: center;
  max-width: 560px;
}

.moments-video-copy h2 {
  font-size: clamp(28px, 4vw, 46px);
  color: var(--ink);
  margin-bottom: 14px;
}

.moments-video-copy h2 .accent { color: var(--light); }

.moments-video-copy p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: rgba(1, 50, 7, 0.8);
  font-weight: 600;
}

.moments-video-band .moments-phone video {
  filter: none;
}

.post-moments-sheet {
  border-top: 1px solid rgba(156, 163, 175, 0.16);
}

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

@media (max-width: 860px) {
  .moments-inner { grid-template-columns: 1fr; }

  /* full-bleed hand-holding-phone graphic: flush against both screen
     edges on phones, whatever the device width */
  .moments-explainer { display: block; }

  .moments-explainer img {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    filter: none;
  }
}

/* ---------- permanent round albums ---------- */

.memory-band {
  background: var(--gray);
  color: var(--ink);
  padding: clamp(64px, 9vw, 128px) var(--pad);
  overflow: hidden;
}

.memory-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.memory-media {
  display: flex;
  justify-content: center;
}

.memory-phone {
  width: min(350px, 78vw);
}

.memory-phone img {
  filter: drop-shadow(0 24px 48px rgba(1, 50, 7, 0.24));
}

.memory-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--light);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.memory-copy h2 {
  max-width: 12ch;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 52px);
}

.memory-copy h2 .accent {
  color: var(--light);
}

.memory-copy > p:last-child {
  max-width: 44ch;
  color: rgba(1, 50, 7, 0.8);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .memory-inner {
    grid-template-columns: 1fr;
  }

  .memory-copy {
    text-align: center;
  }

  .memory-copy h2,
  .memory-copy > p:last-child {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- final waitlist band ---------- */

.waitlist-band {
  background: var(--dark);
  padding: clamp(72px, 10vw, 140px) var(--pad);
  text-align: center;
}

.waitlist-band-inner { max-width: 640px; margin: 0 auto; }

.waitlist-band h2 {
  font-size: clamp(34px, 5.5vw, 64px);
  margin-bottom: 18px;
}

.waitlist-band h2 .accent { color: var(--lime); }

.waitlist-band p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.waitlist-band .waitlist-form { margin: 0 auto; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(193, 255, 114, 0.1);
  padding: 40px var(--pad) calc(28px + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-logo { height: 22px; width: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--lime); }

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.mobile-sticky-cta {
  display: none;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 18px;
    padding-right: 12px;
  }

  .brand-link img { height: 22px; }

  .hero {
    padding-top: 92px;
  }

  .hero h1 {
    font-size: clamp(30px, 11vw, 54px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-pills {
    gap: 6px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-pills span {
    min-height: 30px;
    font-size: 11px;
    padding: 0 10px;
  }

  .sheet {
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }

  .features {
    gap: 72px;
    padding-top: 38px;
  }

  .feature-copy h2,
  .moments-inner h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .memory-copy h2 {
    font-size: clamp(27px, 8vw, 38px);
  }

  .phone-frame {
    width: min(292px, 78vw);
  }

  .hero-phone {
    width: min(310px, 82vw);
  }

  .moments-band {
    padding-bottom: 100px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 45;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.hide-sticky-cta .mobile-sticky-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* ---------- legal pages ---------- */

.legal-main {
  background: var(--gray);
  color: var(--ink);
  padding: calc(96px + 24px) var(--pad) clamp(64px, 8vw, 120px);
  min-height: 70vh;
}

.legal-shell { max-width: 880px; margin: 0 auto; }

.legal-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(156, 163, 175, 0.28);
  margin-bottom: 40px;
}

.legal-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 14px;
}

.legal-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(1, 50, 7, 0.72);
  max-width: 60ch;
}

.legal-meta {
  margin-top: 18px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--light);
  background: rgba(60, 150, 71, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.legal-doc section { margin-bottom: 36px; }

.legal-doc h2 {
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--ink);
  margin-bottom: 14px;
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(1, 50, 7, 0.78);
  margin-bottom: 10px;
}

.legal-doc ul,
.legal-doc ol { padding-left: 22px; margin-bottom: 12px; }

.legal-doc a { color: var(--light); text-decoration: underline; }

.contact-block {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-block p { margin-bottom: 4px; }
