@font-face {
  font-family: 'DINPro';
  src: url('/public/DINPro-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  /* Use local font class later, or fallback to Google Font */
  font-family:
    "Roboto Condensed",
    "DIN Pro",
    -apple-system,
    sans-serif;
  overflow: hidden; /* prevent scroll while on map */
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1; /* Below landing page */
}

/* Style the popup to match your screenshot */
.mapboxgl-popup-content {
  color: #000;
  font-family: inherit;
  /* Extra top padding so the absolute-positioned close button
     sits above the first content row without overlapping it */
  padding: 36px 14px 14px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Close button: sit neatly in the top-right corner */
.mapboxgl-popup-close-button {
  font-size: 16px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 6px;
  right: 6px;
  color: #888;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mapboxgl-popup-close-button:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.08);
}

/* --- Landing Page Overlays --- */
.landing-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f5f0ef; /* Light theme for the landing page */
  color: #111;
  z-index: 10; /* Above the map */
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease; /* Fade/morph effect */
  overflow-y: auto; /* allow scroll if screen is too small */
}

.landing-page.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.logo svg {
  flex-shrink: 0;
}

.cta-btn {
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 999px; /* Pill style */
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  font-family: inherit;
}

.cta-btn:hover {
  background: #1976d2;
  transform: scale(1.05);
}

.cta-btn.large {
  padding: 16px 36px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 40px 10vw;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.title {
  font-size: 64px;
  line-height: 1.1;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.caption {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Simulated iPhone 13 frame for the Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  height: 600px;
  border: 12px solid #222;
  border-radius: 40px; /* iPhone like corners */
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.screen-content {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the whole frame representing the app */
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px 80px 20px;
  font-size: 14px;
  color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .title {
    font-size: 42px;
  }

  .phone-frame {
    width: 250px;
    height: 500px;
  }

  .footer {
    padding: 20px;
  }
}
