:root {
  --bg: #000000;
  --card: #151515;
  --card-light: #1c1c1e;
  --text: #ffffff;
  --muted: #8e8e93;
  --primary: #aeff00;
  --primary-dim: rgba(174, 255, 0, 0.12);
  --border: #2a2a2a;
  --radius: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.accent { color: var(--primary); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-solid {
  background: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.nav-cta {
  color: var(--bg) !important;
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.donate-hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 12px 40px rgba(174, 255, 0, 0.18);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-large { padding: 16px 28px; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(174, 255, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34rem;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-offer {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
  margin: 16px 0 0;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  flex: 0 0 auto;
}

.app-store-badge img {
  display: block;
  width: 119.66407px;
  height: 40px;
  max-width: none;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.35; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Device mockups */
.device {
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}

.device.in-view { transform: perspective(1200px) rotateY(-2deg) rotateX(0deg); }

.device-small { width: min(280px, 100%); }

.device-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}

.device-photo {
  --bezel: 10px;
  padding: var(--bezel);
  background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
  overflow: hidden;
  aspect-ratio: auto;
}

.sport-preview-device::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
}

.sport-preview-device .sport-preview-viewport {
  position: absolute;
  inset: var(--bezel);
  overflow: hidden;
  border-radius: calc(42px - var(--bezel));
  background: #000;
}

.sport-preview-track {
  --sport-count: 10;
  display: flex;
  height: 100%;
  width: calc(100% * var(--sport-count));
  transform: translateX(calc(-100% * var(--sport-index, 0) / var(--sport-count)));
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sport-preview-track img {
  flex: 0 0 calc(100% / var(--sport-count));
  width: calc(100% / var(--sport-count));
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sport-preview-track picture {
  flex: 0 0 calc(100% / var(--sport-count));
  width: calc(100% / var(--sport-count));
  height: 100%;
  display: block;
  background: #000;
}

.sport-preview-track picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .sport-preview-track { transition: none; }
}

.device-photo > picture {
  display: block;
  width: 100%;
  height: auto;
}

.device-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(42px - var(--bezel, 10px));
  background: #000;
}

.mock-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(174, 255, 0, 0.08), transparent 35%),
    linear-gradient(180deg, #1a1f1a 0%, #0d120d 45%, #111 100%);
}

.mock-map-dim { filter: brightness(0.75); }

.mock-route {
  position: absolute;
  left: 18%;
  top: 28%;
  width: 58%;
  height: 42%;
  border: 4px solid var(--primary);
  border-radius: 40% 60% 45% 55%;
  border-left: none;
  border-bottom: none;
  filter: drop-shadow(0 0 8px rgba(174, 255, 0, 0.35));
}

.mock-route-long { height: 52%; top: 22%; }
.mock-route-history { width: 72%; left: 10%; top: 18%; height: 34%; }

.mock-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4da3ff;
  border: 3px solid #fff;
  top: 48%;
  left: 52%;
  box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.18);
}

.mock-pill {
  position: absolute;
  top: 56px;
  background: rgba(21, 21, 21, 0.92);
  border: 1px solid #333;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 3;
}

.mock-pill span { color: var(--primary); }
.mock-pill-left { left: 14px; }
.mock-pill-center { left: 50%; transform: translateX(-50%); top: 56px; }

.mock-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 18px 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}

.mock-stat label {
  display: block;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.mock-stat strong {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mock-stat-hr strong { color: #ff5a7a; }

.mock-hud-compact {
  grid-template-columns: 1fr;
  padding-top: 12px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
}

.mock-live {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.live-activity {
  width: 100%;
  background: rgba(28, 28, 30, 0.95);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-top, .live-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.live-top { color: var(--muted); font-size: 0.68rem; margin-bottom: 8px; }
.live-main strong { font-size: 1.3rem; letter-spacing: -0.03em; }
.live-main span { color: var(--muted); font-size: 0.72rem; }
.live-bar { height: 4px; background: #2a2a2a; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.live-bar-fill { width: 62%; height: 100%; background: var(--primary); border-radius: inherit; }

.mock-hr-wave {
  width: 80%;
  height: 48px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 122, 0.35), transparent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath fill='%23fff' d='M0 12 Q10 0 20 12 T40 12 T60 12 T80 12 T100 12 T120 12'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
}

.history-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 16px;
}

.history-sheet strong { display: block; margin-bottom: 8px; }
.history-meta { display: flex; gap: 12px; color: var(--muted); font-size: 0.72rem; font-weight: 700; margin-bottom: 14px; }

.chart-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 56px;
}

.chart-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, rgba(174, 255, 0, 0.25), var(--primary));
  border-radius: 4px 4px 0 0;
}

/* Stats bar */
.stats-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
  background: rgba(21, 21, 21, 0.45);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1.15;
}

.stat span { color: var(--muted); font-size: 0.85rem; }

/* Feature sections */
.feature-section {
  padding: 120px 0;
}

.feature-section-alt { background: linear-gradient(180deg, rgba(21, 21, 21, 0.35), transparent); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-grid-reverse .feature-copy { order: 2; }
.feature-grid-reverse .feature-visual { order: 1; }

.feature-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.feature-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; }

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: #d1d1d6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.sport-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-light);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

button.chip {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

button.chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.chip-active {
  color: #000;
  background: var(--primary);
  border-color: var(--primary);
}

/* Interactive screenshot detail: hover/tap hotspot zoom */
.shot-explorer {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.shot-explorer-device {
  position: relative;
  z-index: 1;
}

.shot-hotspot {
  position: absolute;
  top: var(--hotspot-top);
  left: var(--hotspot-left);
  width: var(--hotspot-width);
  height: var(--hotspot-height);
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.shot-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(174, 255, 0, 0.35);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.shot-explorer:hover .shot-hotspot,
.shot-explorer.is-open .shot-hotspot,
.shot-hotspot:focus-visible {
  border-color: rgba(174, 255, 0, 0.55);
  background: rgba(174, 255, 0, 0.1);
  box-shadow: 0 0 0 4px rgba(174, 255, 0, 0.08);
}

.shot-explorer:hover .shot-hotspot-label,
.shot-explorer.is-open .shot-hotspot-label,
.shot-hotspot:focus-visible .shot-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shot-detail {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 46%;
  width: min(360px, calc(100vw - 48px));
  padding: 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(174, 255, 0, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.shot-detail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .shot-explorer:hover .shot-detail,
  .shot-explorer.is-open .shot-detail {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
  }
}

.shot-explorer.is-open .shot-detail {
  opacity: 1;
  pointer-events: auto;
}

.shot-hint {
  margin: 16px 0 0;
  text-align: center;
  color: #666;
  font-size: 0.82rem;
}

.shot-hint strong {
  color: var(--muted);
  font-weight: 600;
}

.card-stack { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }

.badge-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

.badge-card.visible { transform: translateX(0); opacity: 1; }

.badge-icon { font-size: 1.6rem; }
.badge-card strong { display: block; margin-bottom: 2px; }
.badge-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Story + Pricing */
.story-pricing-section { padding: 100px 0; }

.story-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.story-card,
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.story-card p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.story-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.story-list li {
  position: relative;
  padding-left: 22px;
  color: #d1d1d6;
  font-size: 1.05rem;
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.story-closing {
  margin-bottom: 0 !important;
  color: var(--text) !important;
  font-weight: 600;
}

.story-closing a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-link {
  position: relative;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  border-radius: 4px;
}

.story-link::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.story-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(174, 255, 0, 0.06), transparent 70%), var(--card);
}

.pricing-headline {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--primary);
}

.pricing-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 16rem;
}

/* Tip */
.tip-section {
  padding: 16px 0 88px;
}

.tip-card {
  position: relative;
  overflow: hidden;
  max-width: 42rem;
  margin: 0 auto;
  padding: 40px 36px 36px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 130, 160, 0.08), transparent 58%),
    radial-gradient(circle at 18% 22%, rgba(255, 150, 175, 0.05), transparent 42%),
    var(--card);
  border: 1px solid rgba(255, 150, 170, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.tip-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tip-heart {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: calc(var(--size) * 1.2);
  line-height: 1;
  color: rgba(255, 120, 155, 0.42);
  animation: tip-heart-float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.tip-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.tip-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #b8b8bd;
  font-size: 1.05rem;
  line-height: 1.72;
}

.tip-paypal-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 32px;
  background: #ffc439;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.tip-paypal-btn:hover {
  transform: translateY(-1px);
  background: #f4ba2f;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.tip-paypal-btn img {
  display: block;
  width: 108px;
  height: auto;
}

@keyframes tip-heart-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.22;
  }
  25% {
    transform: translate(10px, -14px) scale(1.07);
    opacity: 0.42;
  }
  50% {
    transform: translate(-8px, -22px) scale(0.93);
    opacity: 0.28;
  }
  75% {
    transform: translate(-12px, -8px) scale(1.04);
    opacity: 0.38;
  }
}

.privacy-section { padding: 100px 0; }

.privacy-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.privacy-grid h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 16ch;
}

.privacy-grid p { color: var(--muted); margin: 0; max-width: 42rem; }

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 48px;
}

.footer-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover { color: var(--text); }
.footer-copy { color: #555; font-size: 0.82rem; margin: 0; }

.footer-legal {
  color: #555;
  font-size: 0.75rem;
  line-height: 1.45;
  max-width: 36rem;
  margin: 0;
}

/* Legal page */
.legal-page { padding-top: var(--nav-h); }

.legal-content {
  max-width: 720px;
  padding: 48px 0 80px;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.legal-content .meta { color: var(--muted); margin-bottom: 32px; }
.legal-content h2 { font-size: 1.15rem; margin-top: 2rem; letter-spacing: -0.02em; }
.legal-content p, .legal-content li { color: #d1d1d6; }
.legal-content a { color: var(--primary); overflow-wrap: break-word; }
.legal-content ul { padding-left: 1.2rem; }

/* Release calendar */
.releases-page { padding-top: var(--nav-h); }

.releases-hero {
  padding: 56px 0 8px;
}

.releases-hero-inner { max-width: 42rem; }

.releases-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1.05;
}

.releases-lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  max-width: 38rem;
}

.releases-lead + .releases-lead { margin-top: 12px; }

#release-next-app-store,
#release-v1-app-store { margin: 0 0 22px; }

.releases-main { padding: 28px 0 72px; }

#release-calendar-root {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
  /* Reserved for the rendered counter, grid, and notes so the footer does not jump. */
  min-height: 2189px;
}

@media (max-width: 959px) {
  #release-calendar-root { min-height: 2240px; }
}

@media (max-width: 879px) {
  #release-calendar-root { min-height: 2310px; }
}

@media (max-width: 639px) {
  #release-calendar-root { min-height: 2363px; }
}

@media (max-width: 619px) {
  #release-calendar-root { min-height: 2416px; }
}

@media (max-width: 559px) {
  #release-calendar-root { min-height: 2499px; }
}

@media (max-width: 519px) {
  #release-calendar-root { min-height: 2564px; }
}

@media (max-width: 499px) {
  #release-calendar-root { min-height: 2639px; }
}

@media (max-width: 479px) {
  #release-calendar-root { min-height: 2748px; }
}

@media (max-width: 439px) {
  #release-calendar-root { min-height: 2854px; }
}

@media (max-width: 399px) {
  #release-calendar-root { min-height: 2968px; }
}

@media (max-width: 379px) {
  #release-calendar-root { min-height: 3055px; }
}

@media (max-width: 359px) {
  #release-calendar-root { min-height: 3167px; }
}

@media (max-width: 339px) {
  #release-calendar-root { min-height: 3353px; }
}

.ship-count {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ship-loading,
.ship-error {
  color: var(--muted);
  margin: 0;
}

.ship-error a { color: var(--primary); }

.ship-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ship-legend-scale,
.ship-legend-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ship-swatches {
  display: inline-flex;
  gap: 3px;
}

.ship-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.release-date-placeholder {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border: 1px dashed var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-v1-copy {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.release-v1-copy + .release-v1-copy {
  margin-top: 8px;
}

.ship-swatch.is-milestone {
  box-shadow: inset 0 0 0 1.5px #fff;
}

/* rgba(70, 120, 255, 0.33) painted on the card. Not the ship-day green, and not the white milestone ring. */
.ship-swatch.is-period {
  background-color: rgb(37, 54, 98);
  box-shadow: inset 0 0 0 1px rgba(150, 184, 255, 0.85);
}

.ship-year-nav {
  display: flex;
  gap: 14px;
  font-weight: 700;
}

.ship-year-nav a { color: var(--primary); }

.ship-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  min-width: 0;
}

.ship-year {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ship-graph {
  --dow: 1.7rem;
  --gap: 2px;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ship-months,
.ship-columns {
  display: grid;
  grid-template-columns: var(--dow) minmax(0, 1fr);
  column-gap: 8px;
  min-width: 0;
}

.ship-month-track,
.ship-weeks {
  display: grid;
  grid-template-columns: repeat(var(--weeks), minmax(0, 1fr));
  gap: var(--gap);
  min-width: 0;
}

.ship-month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8e8e93;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
}

.ship-dows {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: var(--gap);
  color: #666;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
}

.ship-dows span {
  display: flex;
  align-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  line-height: 1;
}

.ship-week {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: var(--gap);
  min-width: 0;
}

.ship-day {
  display: block;
  width: 100%;
  height: 0;
  padding: 0;
  padding-top: 100%;
  box-sizing: content-box;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
}

button.ship-day {
  appearance: none;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  min-width: 0;
}

.ship-day.is-period {
  background-color: rgb(37, 54, 98);
  box-shadow: inset 0 0 0 1px rgba(150, 184, 255, 0.85);
}

.ship-day.is-milestone {
  box-shadow: inset 0 0 0 1.5px #fff;
}

.ship-day.is-selected {
  outline: 2px solid #fff;
  outline-offset: 1px;
  z-index: 1;
}

.ship-day:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
  z-index: 1;
}

.ship-day-out {
  background: transparent;
  box-shadow: none;
  visibility: hidden;
}

.ship-tip {
  margin: 12px 0 0;
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.88rem;
}

.ship-notes-heading {
  margin: 8px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ship-notes {
  display: grid;
  gap: 12px;
}

.ship-note {
  scroll-margin-top: calc(var(--nav-h) + 16px);
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.ship-note.is-selected {
  border-color: rgba(174, 255, 0, 0.4);
  background: rgba(174, 255, 0, 0.06);
}

.ship-note h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ship-note time {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ship-note p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ship-note p:last-child { margin-bottom: 0; }

.ship-pending {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(174, 255, 0, 0.28);
  background: radial-gradient(circle at top left, rgba(174, 255, 0, 0.06), transparent 55%);
}

.ship-pending h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ship-pending p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.ship-pending .release-date-placeholder {
  margin: 0 0 14px;
  color: var(--primary);
}

.releases-cta { padding: 0 0 88px; }

.store-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px 40px;
}

.store-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.store-card p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 20px;
}

.store-card .app-store-badge {
  margin-top: 10px;
}

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

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .feature-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid-reverse .feature-copy,
  .feature-grid-reverse .feature-visual { order: initial; }

  .device { transform: none !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid .stat:last-child {
    grid-column: 1 / -1;
    max-width: 12rem;
    margin: 0 auto;
  }

  .privacy-grid {
    flex-direction: column;
    align-items: start;
  }

  .story-pricing-grid {
    grid-template-columns: 1fr;
  }

  .shot-detail {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin-top: 14px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .shot-explorer:not(.is-open) .shot-detail {
    display: none;
  }

  .shot-explorer.is-open .shot-detail {
    display: block;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-links {
    gap: 12px 14px;
    font-size: 0.8rem;
  }

  .nav-links a { white-space: nowrap; }

  .nav-desktop-only { display: none; }

  .releases-main .container {
    width: min(1120px, calc(100% - 24px));
  }

  .ship-card { padding: 16px 12px 14px; }

  .ship-graph { --dow: 1.15rem; --gap: 2px; }

  .ship-month { font-size: 0.58rem; letter-spacing: 0; }

  .ship-dows { font-size: 7px; }
}

@media (max-width: 360px) {
  .nav-brand span { display: none; }
  .ship-month { font-size: 8px; }
}

@media (max-width: 520px) {
  .nav {
    height: auto;
    min-height: var(--nav-h);
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }

  .legal-page,
  .releases-page { padding-top: 124px; }

  .hero { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .badge-card, .device, .btn { transition: none !important; animation: none !important; }
  .reveal, .badge-card { opacity: 1; transform: none; }
  .tip-heart { animation: none !important; opacity: 0.32; }
  .shot-detail, .shot-hotspot, .shot-hotspot-label { transition: none !important; }
  .ship-day, .ship-note { transition: none !important; }
}

/* Feedback form and roadmap */
.feedback-form {
  margin-top: 28px;
  color-scheme: dark;
}

.legal-content a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.field { margin: 0 0 20px; }

.feedback-form label,
.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.feedback-form textarea {
  min-height: 160px;
  resize: vertical;
}

.feedback-form select { appearance: auto; }

.field-hint {
  color: #d1d1d6;
  font-size: 0.95rem;
  margin: 8px 0 0;
}

.feedback-form button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.feedback-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.feedback-form input:focus-visible,
.feedback-form textarea:focus-visible,
.feedback-form select:focus-visible,
.feedback-form button:focus-visible,
.feedback-form a:focus-visible,
.text-target:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.form-status {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-weight: 650;
}

.form-status[hidden] { display: none; }

.form-status.is-success {
  background: var(--primary-dim);
  color: var(--text);
}

.form-status.is-error {
  background: #3a1518;
  color: #ffd7d7;
}

.form-status.is-limit {
  background: #3a3014;
  color: #ffe7a3;
}

#feedback-turnstile { min-height: 65px; }

.text-target {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--primary);
  font-weight: 700;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.roadmap-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  color: #d1d1d6;
}
