/* Marketing landing page only - site.css's :root tokens are shared (linked
   alongside this file), the legal/support pages' own styles are untouched. */

.home-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.top-nav .brand {
  margin-bottom: 0;
  justify-content: flex-start;
}

.top-nav .brand img { width: 32px; height: 32px; }
.top-nav .brand .wordmark { font-size: 19px; }

.top-nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.top-nav-links a { color: var(--grey); }
.top-nav-links a:hover { color: var(--cyan); text-decoration: none; }

@media (max-width: 560px) {
  .top-nav { flex-direction: column; align-items: center; gap: 14px; }
  .top-nav-links { gap: 16px; font-size: 13px; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0 48px;
    text-align: center;
  }
  .hero-phone { justify-self: center; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  text-align: left;
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

@media (max-width: 820px) {
  .hero h1 { text-align: center; font-size: 34px; }
}

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

.hero-lede {
  font-size: 17px;
  color: var(--grey);
  max-width: 480px;
  margin: 0 0 30px;
}

@media (max-width: 820px) {
  .hero-lede { margin-left: auto; margin-right: auto; }
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

.secondary-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.secondary-cta:hover { text-decoration: none; color: var(--cyan); }

/* ---------- App Store badge (recreated, deliberately inert) ---------- */

.appstore-badge-wrap {
  position: relative;
  display: inline-block;
  margin-top: 14px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 12px;
  padding: 9px 16px 9px 14px;
  opacity: 0.55;
  filter: grayscale(0.15);
  cursor: default;
  user-select: none;
}

.appstore-badge svg { width: 24px; height: 24px; flex-shrink: 0; fill: #fff; }

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.appstore-badge .badge-text small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.appstore-badge .badge-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.coming-soon-ribbon {
  position: absolute;
  top: -14px;
  right: -8px;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

/* ---------- Phone mockups ---------- */

.phone {
  width: 260px;
  aspect-ratio: 9 / 19.4;
  border-radius: 38px;
  background: #0b0d1a;
  padding: 10px;
  box-shadow: 0 24px 60px -12px rgba(18, 22, 46, 0.4), 0 0 0 1px rgba(18, 22, 46, 0.06);
  flex-shrink: 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0d0f1f;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  background: #0b0d1a;
  border-radius: 999px;
  z-index: 5;
}

.phone-screen.dark {
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 184, 204, 0.18), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(191, 90, 242, 0.14), transparent 50%),
    #0d0f1f;
}

.phone-screen.light {
  background: #f5f6fa;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

.zone-status-pill {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  /* No backdrop-filter (see .roster-bar's comment) - a flat, slightly more
     opaque fill instead, dropped rather than worked around. */
  background: rgba(13, 15, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 11px;
  border-radius: 999px;
}

.zone-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf5af2;
  box-shadow: 0 0 6px #bf5af2;
}

.zone-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168px;
  height: 168px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(191, 90, 242, 0.85);
  background: radial-gradient(circle, rgba(191, 90, 242, 0.08), transparent 70%);
  /* Gentle breathing loop, echoing the game's own shrinking-zone mechanic -
     just enough motion to give the hero mockup some depth, not a literal
     shrink-to-minRadius animation. */
  animation: zone-ring-pulse 4.5s ease-in-out infinite;
}

@keyframes zone-ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .zone-ring { animation: none; }
}

.player-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #0d0f1f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.player-dot.hunter { background: #3d6c99; }
.player-dot.hider { background: #e5484d; }
.player-dot.you { background: #00e5ff; }

.roster-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* No backdrop-filter here (or on .zone-status-pill) - a real Safari bug
     let this bar's content render past .phone-screen's rounded-corner
     overflow:hidden clip instead of being clipped by it (Safari doesn't
     reliably give an overflow:hidden ancestor its own compositing layer
     when a backdrop-filter descendant is involved). A translateZ(0) hack
     on .phone-screen didn't fix it in practice, so the filter is dropped
     entirely instead of chasing another workaround - a flatter, more
     opaque fill reads fine here without it.
  */
  background: rgba(13, 15, 31, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px;
}

.avatar-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* A round icon button now (the real app's own Catch tab icon - "scope",
   see ActiveGameTabBar.swift - rather than a "Found Someone" text pill),
   sized to stand out next to the 26px avatar chips as the primary action. */
.found-btn {
  position: relative;
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(52, 199, 89, 0.5);
}

/* Absolute + negative-margin centering instead of flex align/justify -
   Safari has a long-standing quirk where an inline SVG's intrinsic
   baseline/whitespace inside a flex container can throw off visual
   centering by a couple of px (reported: the icon looked centered in
   Chromium but visibly off in Safari). This is deterministic regardless
   of the SVG's own intrinsic sizing behavior. */
.found-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}

/* Home-screen mockup - normal document flow throughout (except the
   corner-pinned credit chip) rather than hardcoded top offsets, so
   changing any one piece's height can't silently overlap the next. */

.phone-screen.light {
  display: flex;
  flex-direction: column;
}

.mock-home-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 46px 16px 18px;
}

.mock-home-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy-soft);
}

.mock-home-logo .dot { color: var(--cyan); }

.mock-credit-chip {
  position: absolute;
  top: 34px;
  right: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  color: var(--navy-soft);
  box-shadow: 0 1px 3px rgba(18, 22, 46, 0.08);
}

.mock-home-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-home-btn {
  border-radius: 18px;
  padding: 18px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(18, 22, 46, 0.3);
}

.mock-home-btn.host { background: linear-gradient(135deg, #12162e, #2a2f4d); }
.mock-home-btn.join { background: linear-gradient(135deg, #00b8cc, #00e5ff); color: #06232a; }
.mock-home-btn small { display: block; font-weight: 500; font-size: 10px; opacity: 0.75; margin-top: 2px; }

.mock-home-free {
  margin-top: 14px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #00a3b4;
}

.mock-home-modes {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Lobby/roster mockup */

.mock-lobby-header {
  padding: 46px 16px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.mock-lobby-code {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  margin-top: 6px;
}

.mock-roster-list {
  margin: 22px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 10px;
}

.mock-roster-row.catchable {
  border-color: rgba(52, 199, 89, 0.6);
  box-shadow: 0 0 12px rgba(52, 199, 89, 0.25);
}

.mock-roster-row span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.mock-roster-row small {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.mock-roster-row.catchable small { color: #34c759; }

/* ---------- Section shell ---------- */

.section {
  padding: 56px 0;
}

.section-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
}

.section h2 {
  text-align: center;
  font-size: 30px;
  margin: 0 0 12px;
  color: var(--navy-soft);
}

.section-sub {
  text-align: center;
  color: var(--grey);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 44px;
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

/* Below 480px, four stacked cards ran the section too long for a phone -
   a horizontally-swiped carousel instead, bled to the screen edges (the
   home-wrap wrapper always carries a 24px gutter, at every width, so that's
   the exact amount to cancel out here) with a peek of the next card and
   scroll-snap so it settles on a card rather than stopping mid-scroll. */
@media (max-width: 480px) {
  .steps-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Without this, "start"-snapping to the first card auto-scrolls past
       the leading padding the instant the page loads (a real, documented
       scroll-snap quirk - the padding itself isn't a valid snap position
       unless the scrollport is told to treat it as reserved space), which
       silently ate the 24px gutter this padding was meant to preserve. */
    scroll-padding: 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 0 24px 6px;
  }

  .steps-grid::-webkit-scrollbar { display: none; }

  .steps-grid .step-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cyan) 15%, transparent);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--navy-soft);
}

.step-card p {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
}

/* ---------- Game modes ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .modes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
}

.mode-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.mode-card h3 {
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--navy-soft);
}

.mode-card p {
  font-size: 11.5px;
  color: var(--grey);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Screenshot gallery ---------- */

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.gallery-item {
  text-align: center;
}

/* Real screenshots (unlike the hand-built hero mockup) have their own
   native aspect ratio (~0.507) which doesn't match the generic phone
   frame's 9/19.4 (~0.464) - overridden here so object-fit: cover crops as
   little as possible instead of zooming in more than expected. */
.gallery-item .phone { transform: scale(0.92); aspect-ratio: 672 / 1324; }

.gallery-item p {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-soft);
  margin: 14px 0 0;
}

/* ---------- Download footer CTA ---------- */

.download-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy), #1c2246);
  border-radius: 28px;
  padding: 56px 28px;
  margin: 20px 0 64px;
  color: #fff;
}

.download-cta h2 {
  color: #fff;
  margin: 0 0 10px;
}

.download-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 28px;
}

/* Footer nav-cards (shared with the legal pages, see site.css) read as too
   wide/plain full-bleed at this page's 1080px container - three columns
   on desktop instead. */
.home-wrap .cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
  .home-wrap .cards-grid { grid-template-columns: 1fr; }
}
