/* ParkPing landing page — scoped to .landing-page */

.landing-page {
  overflow-x: hidden;
}

.landing-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Skip link */
.landing-page .skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--pp-primary);
  color: white;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}

.landing-page .skip-link:focus {
  left: 1rem;
}

/* Nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}

.landing-nav.is-scrolled {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: var(--pp-border);
}

.landing-nav .site-nav-inner {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.landing-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  color: var(--pp-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
}

.landing-nav-link:hover {
  color: var(--pp-text);
  background: rgba(255, 255, 255, 0.05);
}

.landing-nav .btn-nav {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

/* Hero */
.landing-page .hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 3rem;
  text-align: left;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(123, 97, 255, 0.12) 0%, transparent 55%),
    var(--pp-bg);
}

.hero-fallback.is-visible {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pp-accent);
  margin: 0 0 0.75rem;
}

.hero-headline {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-headline-line {
  display: block;
}

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

.hero-subhead {
  color: var(--pp-muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 1.25rem 0 0;
  max-width: 32rem;
  line-height: var(--pp-line);
}

.hero-use-cases {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-use-cases li {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  color: var(--pp-muted);
}

.landing-page .hero-cta {
  margin-top: 2rem;
  justify-content: flex-start;
  gap: 0.75rem;
}

.btn-ghost {
  background: transparent;
  color: var(--pp-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--pp-text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-hero {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Hero product card */
.hero-product-card {
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.hero-sticker {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid var(--pp-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(37, 99, 235, 0.08);
}

.hero-sticker-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hero-sticker-brand .logo {
  font-size: 1.125rem;
}

.hero-sticker-tagline {
  font-size: 0.8125rem;
  color: var(--pp-muted);
  margin: 0 0 1rem;
}

.hero-sticker-qr {
  position: relative;
  aspect-ratio: 1;
  max-width: 180px;
  margin: 0 auto 1rem;
  background: white;
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sticker-qr-grid {
  position: absolute;
  inset: 0.75rem;
  background-image:
    linear-gradient(90deg, #0f172a 25%, transparent 25%),
    linear-gradient(#0f172a 25%, transparent 25%);
  background-size: 8px 8px;
  border-radius: 0.25rem;
  opacity: 0.85;
}

.hero-sticker-qr-mark {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 0.25rem;
  padding: 2px;
}

.hero-sticker-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
}

.hero-sticker-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: var(--pp-border);
  border-radius: 0.25rem;
  color: var(--pp-text);
}

.hero-sticker-chip--danger {
  background: rgba(127, 29, 29, 0.6);
  color: #fecaca;
}

/* Sections */
.landing-section {
  padding: 4rem 0;
  scroll-margin-top: 4.5rem;
}

.landing-section .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--pp-space-3);
  letter-spacing: -0.02em;
}

.landing-section .section-lead {
  max-width: 42rem;
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* How it works — pinned horizontal on desktop */
.how-pin-wrap {
  overflow: hidden;
}

.how-track {
  display: grid;
  gap: 1rem;
}

.how-step {
  margin-bottom: 0;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--pp-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.how-step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.how-step p {
  color: var(--pp-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: var(--pp-line-tight);
}

/* Bento grid */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.bento-card {
  margin-bottom: 0;
}

.bento-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pp-accent);
  margin: 0 0 0.5rem;
}

.bento-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.bento-muted {
  color: var(--pp-muted);
  font-size: 0.8125rem;
  margin: 0 0 0.75rem;
}

.bento-preset {
  background: var(--pp-border);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.bento-preset--danger {
  background: rgba(127, 29, 29, 0.5);
  color: #fecaca;
}

.bento-thread {
  background: var(--pp-bg);
  border-left: 3px solid var(--pp-primary);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.bento-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pp-primary);
  margin-left: 0.35rem;
}

.bento-reply {
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--pp-muted);
}

/* Preset grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.625rem;
}

.preset-chip {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .preset-chip:hover {
    border-color: var(--pp-primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
  }
}

/* Privacy band */
.landing-section--privacy {
  padding-bottom: 2rem;
}

.privacy-band {
  max-width: 42rem;
}

.privacy-band p {
  margin: 0 0 var(--pp-space-2);
}

/* Footer */
.landing-footer {
  margin-top: 0;
  padding: 2rem 0 2.5rem;
}

/* GSAP initial states (overridden when reduced motion) */
.landing-page:not(.motion-ready) [data-animate="hero"],
.landing-page:not(.motion-ready) [data-animate="hero-card"] {
  opacity: 1;
  transform: none;
}

.landing-page.motion-ready [data-animate="hero"],
.landing-page.motion-ready [data-animate="hero-card"],
.landing-page.motion-ready [data-animate="section"],
.landing-page.motion-ready [data-animate="how-step"],
.landing-page.motion-ready [data-animate="bento"],
.landing-page.motion-ready [data-animate="preset"] {
  will-change: transform, opacity;
}

/* Tablet */
@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero-product-card {
    justify-self: end;
  }

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

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

  .bento-card--wide {
    grid-column: 1 / -1;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .how-pin-wrap.is-pinned .how-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    width: max-content;
  }

  .how-pin-wrap.is-pinned .how-step {
    flex: 0 0 min(280px, 70vw);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .bento-card--scanner {
    grid-row: span 2;
  }
}

/* Mobile CTAs stack */
@media (max-width: 480px) {
  .landing-page .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-page .hero-cta .btn-hero {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .landing-nav,
  .preset-chip {
    transition: none;
  }

  #hero-canvas {
    display: none;
  }

  .hero-fallback {
    opacity: 1;
  }

  .landing-page.motion-ready [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
