/* leaftime.net — landing page styles */

:root {
  --green-dark: #1a2e1a;
  --green-mid: #2d5a2d;
  --green-light: #e8f0e8;
  --text: #333;
  --text-muted: #666;
  --white: #fff;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  height: 100vh;
}

/* Header */
#header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  z-index: 10;
}

#header img { height: 32px; }
#header h1 { font-size: 18px; font-weight: 500; letter-spacing: 0.02em; }

/* Footer */
#footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: var(--green-dark);
  color: #aaa;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Comparison container */
#comparison-container {
  position: absolute;
  top: 48px; bottom: 28px; left: 0; right: 0;
}

.map {
  position: absolute;
  top: 0; bottom: 0; width: 100%;
}

/* Swipe labels */
.swipe-label {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#label-left { left: 14px; }
#label-right { right: 14px; }

/* Info card */
#info-card {
  position: absolute;
  top: 64px;
  left: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
  padding: 18px 20px;
  max-width: 270px;
  font-size: 13px;
  color: var(--text);
}

#info-card h2 {
  font-size: 19px;
  color: var(--green-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

#info-card .tagline {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.btn-link {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-mid); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--green-mid);
  color: var(--green-mid);
}
.btn-secondary:hover { background: var(--green-light); }

.contact {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.contact a { color: var(--green-mid); text-decoration: none; }

/* NDVI legend */
.legend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.legend-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.gradient-bar {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(to right, #0d0887, #7e03a8, #cc4778, #f89540, #f0f921);
  margin-bottom: 3px;
}

.gradient-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #777;
}
