*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}

/* ── Sticky Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 36px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-join {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: #2e7d32;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-join:hover {
  background: #1b5e20;
}

/* ── Hero / Map ── */

.hero {
  width: 100%;
  /* 60% of viewport height, accounting for the sticky header */
  height: calc(60vh - 56px);
  min-height: 240px;
  position: relative;
}

.hero-map {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #d6e4d6;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 40px 40px;
}

.zoom-warning {
  display: none;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.zoom-warning.visible {
  display: block;
}

/* ── Map Overlay ── */

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  /* gradient scrim: map is fully open at the top, darkens only near the card */
  background: linear-gradient(
    to bottom,
    transparent        30%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.38) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 18px;
  opacity: 1;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.map-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 18px 18px 14px;
  max-width: 340px;
  width: 100%;
  cursor: default;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.overlay-heading {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.overlay-body {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-overlay-primary {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 24px;
  background: #2e7d32;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-overlay-primary:hover {
  background: #1b5e20;
}

.btn-overlay-secondary {
  display: block;
  text-align: center;
  padding: 9px 16px;
  border-radius: 24px;
  border: 1.5px solid #c8e6c9;
  background: transparent;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-overlay-secondary:hover {
  background: #f1f8f1;
  border-color: #a5d6a7;
}

.overlay-proof {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.overlay-proof svg {
  width: 6px;
  height: 6px;
  fill: #4caf50;
  flex-shrink: 0;
}

.overlay-tap-hint {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #2e7d32;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── MapLibre control reset fix ── */
/* The global * { margin:0; padding:0 } reset zeroes out MapLibre's button
   padding, collapsing the +/- zoom controls to 0 height. Restore them. */
.maplibregl-ctrl button {
  padding: revert;
  margin: revert;
  line-height: revert;
}

/* ── Polygon click popup ── */
.maplibregl-popup-content {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.maplibregl-popup-close-button {
  padding: 4px 8px;
  font-size: 18px;
  line-height: 1;
}

.poly-popup {
  min-width: 200px;
}

.poly-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.poly-popup-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.poly-popup-label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.poly-popup-coords {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.poly-popup-coords:hover {
  background: #f5f8f5;
}

.poly-popup-coords:active {
  background: #e8f0e8;
}

.poly-coords-body {
  flex: 1;
  min-width: 0;
}

.poly-coords-text {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
  white-space: nowrap;
}

.poly-coords-hint {
  display: block;
  font-size: 11px;
  color: #999;
  transition: color 0.2s ease;
}

.poly-popup-coords.copied .poly-coords-hint {
  color: #2e7d32;
  font-weight: 600;
}

.poly-copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #888;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.poly-copy-btn:hover {
  background: #f0f0f0;
  color: #444;
}

.poly-popup-coords.copied .poly-copy-btn {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

/* ── Explainer Strip ── */

.explainer-strip {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef4ee;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip svg {
  width: 6px;
  height: 6px;
  fill: #2e7d32;
  flex-shrink: 0;
}

.explainer-text {
  font-size: 13px;
  line-height: 1.55;
  color: #555;
  margin: 0;
}

/* ── Below-fold content ── */

.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

.page-content > section + section {
  margin-top: 40px;
}

.members-section {
  scroll-margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-heading {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
}

.section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.benefit-cards {
  display: grid;
  gap: 12px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.benefit-card h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.benefit-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.section-actions {
  margin-top: 4px;
}

.btn-section-primary {
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 24px;
  background: #2e7d32;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-section-primary:hover {
  background: #1b5e20;
}

.testimonials-section {
  scroll-margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* quote p → name h3: add breathing room above the name */
.benefit-card p + h3 {
  margin-top: 10px;
  margin-bottom: 0;
}

.faq-section,
.final-cta-section {
  scroll-margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}