/* Whatidog Landing — brand: #4FC3F7 sky blue (customer app) */

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

body {
  overflow-x: hidden;
}

.safe-x {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

#header {
  padding-top: env(safe-area-inset-top);
}

#header .max-w-6xl {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#header.scrolled {
  background: rgba(247, 252, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(3, 155, 229, 0.08);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #039be5 0%, #4fc3f7 100%);
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  min-height: 44px;
  box-shadow: 0 4px 16px -4px rgba(3, 155, 229, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(3, 155, 229, 0.45);
}

.btn-primary:focus-visible {
  outline: 2px solid #039be5;
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #01579b;
  background: #fff;
  border: 2px solid #a3e0fb;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  min-height: 44px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
  background: #e8f7fe;
  border-color: #75d1f9;
  transform: translateY(-1px);
}

.btn-secondary:focus-visible {
  outline: 2px solid #039be5;
  outline-offset: 2px;
}

.store-icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover { color: #01579b; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: #039be5;
  border-radius: 1px;
  transition: width 0.2s ease;
}

.nav-link:hover::after { width: 100%; }

.mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  min-height: 44px;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #0288d1;
  transition: background 0.15s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.mobile-link:hover { background: #e8f7fe; }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: #a3e0fb;
  top: -100px;
  left: -100px;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: #d1f0fd;
  bottom: 0;
  right: -50px;
}

.phone-mockup {
  width: 100%;
  max-width: 280px;
}

.phone-frame {
  background: linear-gradient(145deg, #0277bd, #039be5);
  border-radius: 2.5rem;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(2, 119, 189, 0.35);
}

.phone-screen {
  background: #f7fcff;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 9/19;
}

.map-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d1f0fd;
}

#hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hero-map .mapboxgl-ctrl-top-right {
  top: 42px;
  right: 6px;
}

#hero-map .mapboxgl-ctrl-group {
  box-shadow: 0 2px 8px rgba(3, 155, 229, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

#hero-map .mapboxgl-ctrl-group button {
  width: 28px;
  height: 28px;
}

#hero-map .mapboxgl-ctrl-attrib {
  font-size: 8px;
  max-width: 55%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px 0 0 0;
}

#hero-map .mapboxgl-ctrl-logo {
  transform: scale(0.65);
  transform-origin: bottom left;
  margin: 0 0 2px 2px;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #d1f0fd 0%, #a3e0fb 40%, #75d1f9 100%);
  text-align: center;
  padding: 1rem;
}

.map-overlay-top {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.map-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  color: #01579b;
  box-shadow: 0 4px 14px rgba(3, 155, 229, 0.15);
}

.map-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

.map-service-marker {
  position: relative;
  width: 18px;
  height: 18px;
}

.map-service-marker-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: pulse-dot 2s ease-in-out infinite;
}

.map-service-marker-core {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.map-dog-marker {
  position: relative;
  width: 22px;
  height: 22px;
}

.map-dog-marker-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(231, 111, 81, 0.35);
  animation: pulse-dot 2s ease-in-out infinite;
}

.map-dog-marker-core {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #e76f51;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.map-card {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(3, 155, 229, 0.1);
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(3, 155, 229, 0.15);
  color: #01579b;
  animation: float 3s ease-in-out infinite;
}

.floating-badge-1 { top: 10%; left: -10%; animation-delay: 0s; }
.floating-badge-2 { bottom: 20%; right: -15%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.feature-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 24px -4px rgba(3, 155, 229, 0.08);
  border: 1px solid rgba(163, 224, 251, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(3, 155, 229, 0.12);
}

@media (hover: none) {
  .feature-card:hover,
  .app-card:hover {
    transform: none;
  }
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.badge-soon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #f4a261;
  color: #01579b;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #039be5, #4fc3f7);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(3, 155, 229, 0.35);
}

.app-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(163, 224, 251, 0.5);
  box-shadow: 0 8px 32px -8px rgba(3, 155, 229, 0.1);
  transition: transform 0.25s ease;
}

.app-card:hover { transform: translateY(-2px); }

.app-card-owner { border-top: 4px solid #4fc3f7; }
.app-card-provider { border-top: 4px solid #243b6b; }

.btn-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1e3258 0%, #243b6b 100%);
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  min-height: 44px;
  box-shadow: 0 4px 16px -4px rgba(36, 59, 107, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-provider:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(36, 59, 107, 0.45);
}

.provider-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  transition: background 0.2s ease;
}

.provider-card:hover { background: rgba(255,255,255,0.12); }

.provider-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.provider-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  color: #f4a261;
  font-size: 0.875rem;
  font-weight: 600;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.city-pill-active {
  background: #039be5;
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(3, 155, 229, 0.4);
}

.city-pill-soon {
  background: #fff;
  color: #0288d1;
  border: 1px solid #a3e0fb;
}

.city-pill-soon small {
  font-size: 0.7rem;
  font-weight: 500;
  color: #e76f51;
}

.testimonial-card {
  background: #f0f9ff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(163, 224, 251, 0.4);
}

.cta-box {
  background: linear-gradient(135deg, #fff 0%, #e8f7fe 50%, #f0f9ff 100%);
  border: 1px solid #a3e0fb;
  border-radius: 2rem;
  padding: 3rem 2rem;
  box-shadow: 0 8px 40px -12px rgba(3, 155, 229, 0.12);
}

@media (max-width: 640px) {
  .hero-blob-1 {
    width: 220px;
    height: 220px;
    top: -60px;
    left: -80px;
  }

  .hero-blob-2 {
    width: 180px;
    height: 180px;
    right: -40px;
  }

  .phone-mockup {
    max-width: min(100%, 260px);
  }

  .phone-frame {
    padding: 10px;
    border-radius: 2rem;
  }

  .phone-screen {
    border-radius: 1.5rem;
  }

  .floating-badge {
    display: none;
  }

  .map-card {
    left: 8px;
    right: 8px;
    bottom: 10px;
    padding: 10px;
  }

  .map-live-pill {
    font-size: 9px;
    padding: 4px 8px;
  }

  #hero-map .mapboxgl-ctrl-top-right {
    display: none;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .app-card {
    padding: 1.5rem;
  }

  .step-card {
    padding: 1.25rem 0.75rem;
  }

  .provider-card {
    padding: 0.875rem;
  }

  .provider-avatar {
    width: 3rem;
    height: 3rem;
  }

  .provider-card p.font-bold {
    font-size: 0.9rem;
  }

  .city-pill {
    font-size: 0.8rem;
    padding: 0.5rem 0.875rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .cta-box {
    padding: 2rem 1.25rem;
    border-radius: 1.5rem;
  }

  .badge-soon {
    top: 0.75rem;
    left: 0.75rem;
  }
}

@media (max-width: 380px) {
  .phone-mockup {
    max-width: 220px;
  }
}

body.menu-open {
  overflow: hidden;
}

.legal-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #01579b;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .legal-page-title {
    font-size: 2.25rem;
  }
}

.legal-page-updated {
  font-size: 0.875rem;
  color: #0288d1;
  margin-bottom: 2rem;
}

.legal-page-content {
  background: #fff;
  border: 1px solid rgba(163, 224, 251, 0.5);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px -4px rgba(3, 155, 229, 0.08);
}

@media (min-width: 640px) {
  .legal-page-content {
    padding: 2rem;
  }
}

.legal-page-content p,
.legal-page-content li {
  color: #0288d1;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.legal-page-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #01579b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page-content h2:first-child {
  margin-top: 0;
}

.legal-page-content ul,
.legal-page-content ol {
  margin: 0.75rem 1.25rem 0.75rem 0;
  padding: 0;
}

.legal-placeholder {
  color: #0288d1;
  font-style: italic;
}
