/* MapZap marketing site, shares the app's "night sky" design system
   (see pin-it/src/theme.ts): Baloo 2 display type, Manrope body type,
   indigo night-sky background, chunky 3-stop gradient buttons. */

@font-face {
  font-family: 'Baloo 2';
  src: local('Baloo 2');
}

:root {
  --bg-top: #1a0e45;
  --bg-mid: #160c3c;
  --bg: #120a33;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-solid: rgba(20, 12, 45, 0.85);
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --dim: #c9bdf5;
  --faint: #8a7fb8;

  --gold: #ffc93c;
  --gold-ink: #4a3000;
  --purple: #8c5bff;
  --green: #3ddc7e;
  --green-ink: #063a1e;
  --cyan: #38d6e8;
  --pink: #ff6fae;
  --orange: #ff9f3c;

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 500px at 20% -10%, var(--bg-top) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 90% 10%, #2c1b77 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
}

/* faint scattered stars, purely decorative */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 80% 8%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 25%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 30% 40%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 70% 90%, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 600px 600px;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Manrope', sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

p {
  color: var(--dim);
  margin: 0 0 1em;
}

a {
  color: var(--cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 10, 51, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  display: inline-flex;
}

/* ---------- Buttons (chunky 3-stop gradient, matches app buttons.ts) ---------- */

.btn {
  --g1: #b18cff;
  --g2: #8c5bff;
  --g3: #6b34e8;
  --lip: #47209e;
  --ink: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  box-shadow: 0 5px 0 var(--lip), 0 10px 22px rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--lip), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn.gold {
  --g1: #ffe589;
  --g2: #ffc93c;
  --g3: #f59e0b;
  --lip: #b06e00;
  --ink: #4a3000;
}

.btn.green {
  --g1: #86f0a8;
  --g2: #3ddc7e;
  --g3: #17b45e;
  --lip: #0c7a3e;
  --ink: #063a1e;
}

.btn.white {
  --g1: #ffffff;
  --g2: #f2effc;
  --g3: #ddd6f2;
  --lip: #a79ccb;
  --ink: #1a0e45;
}

.btn.ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--text);
}

.btn.ghost:active {
  transform: none;
}

.btn.sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Store badges (real Apple / Google artwork, coming soon) ---------- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.store-badge {
  display: inline-flex;
  position: relative;
  text-decoration: none;
  line-height: 0;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.12s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  height: 52px;
  width: auto;
  max-width: 100%;
  display: block;
}

.soon-tag {
  position: absolute;
  top: -10px;
  right: -10px;
  display: block;
  line-height: 1.4;
  background: var(--orange);
  color: #4a2400;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 #b0620a;
  z-index: 1;
  white-space: nowrap;
}

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

.hero {
  padding: 64px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.08;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 52px;
  }
}

.hero .lead {
  font-size: 18px;
  color: var(--dim);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

/* Sized to the globe's own width; Pinni and the globe stack in normal flow
   using the same ratios as PinniWorld in the app (PinChar.tsx): Pinni is
   half the globe's width, standing on top with its tip sinking 8% of its
   own height into the globe's surface. Percentage margins/padding in CSS
   are always relative to the containing block's WIDTH (even top/bottom
   ones), which is what makes the sink amount scale correctly with the
   globe's responsive width instead of needing a guessed pixel value. */
.hero-globe-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(280px, 62%);
}

.hero-globe-frame::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 105%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 91, 255, 0.45), rgba(140, 91, 255, 0) 70%);
  filter: blur(14px);
  z-index: 0;
}

.hero-globe {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

.hero-pinni {
  position: relative;
  z-index: 2;
  width: 50%;
  margin-bottom: -30%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: 30px;
}

@media (min-width: 640px) {
  .section-head h2 {
    font-size: 36px;
  }
}

.eyebrow {
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: linear-gradient(180deg, rgba(75, 47, 158, 0.35), rgba(36, 20, 86, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  object-fit: contain;
}

.card h3 {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

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

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 780px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 30px 22px 22px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.step .num {
  position: absolute;
  top: -18px;
  left: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe589, #ffc93c 55%, #f59e0b);
  color: #4a3000;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #b06e00;
}

.step h3 {
  margin-top: 10px;
  font-size: 18px;
}

.step p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* ---------- World tour strip (auto-scrolling, infinite loop) ---------- */

.world-marquee {
  overflow: hidden;
  padding: 10px 0 20px;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.world-strip {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: world-scroll 46s linear infinite;
}

.world-marquee:hover .world-strip {
  animation-play-state: paused;
}

@keyframes world-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-strip {
    animation: none;
    overflow-x: auto;
  }
}

.world-chip {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
}

.world-chip img {
  width: 100%;
  margin-bottom: 10px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.world-chip span {
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(140, 91, 255, 0.28), rgba(56, 214, 232, 0.16));
  border: 1px solid var(--line);
  padding: 48px 32px;
  text-align: center;
}

.cta-band h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-band p {
  margin-bottom: 26px;
}

.cta-band .store-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--faint);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

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

.footer-fine {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Legal / simple content pages ---------- */

.legal-page {
  padding: 48px 0 80px;
}

.legal-page .wrap {
  max-width: 780px;
}

/* keep the bottom contact CTA the same reading width as the legal pages
   it follows, instead of stretching to the site's wider default */
.legal-page + #contact-cta .wrap {
  max-width: 780px;
}

.legal-page h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.legal-page .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 21px;
  margin-top: 36px;
  color: var(--text);
}

.legal-page h3 {
  font-size: 17px;
  margin-top: 22px;
  color: var(--text);
}

.legal-page p, .legal-page li {
  color: var(--dim);
  font-size: 15px;
}

.legal-page ul, .legal-page ol {
  padding-left: 22px;
}

.legal-page strong {
  color: var(--text);
}

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}

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

/* ---------- FAQ / Support ---------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 14px;
  background: var(--panel);
}

.faq-item h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  margin-bottom: 0;
  font-size: 14.5px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(140, 91, 255, 0.28), rgba(56, 214, 232, 0.16));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}

.contact-card h3 {
  margin-bottom: 6px;
}

.contact-card p {
  margin-bottom: 0;
}
