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

body {
  background: #f5f2e8;
  color: #2a241d;
  font-family: Georgia, "Times New Roman", serif;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.site-header { margin-bottom: 14px; }

.brand {
  font-size: 1.25rem;
  font-weight: 700;
}

.tagline {
  margin-top: 4px;
  font-size: 1rem;
  color: #3f382f;
  font-style: italic;
  opacity: 1;
}

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

h1 {
  margin: 8px 0;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3f382f;
  opacity: 1;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -6px;
}

.bird-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.bird-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.bird {
  width: min(300px, 80vw);
  display: block;
  transform-origin: center center;
  transition: transform .7s cubic-bezier(.68,-0.2,.28,1.18);
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.12));
  user-select: none;
  -webkit-user-drag: none;
}

.bird.flipped {
  transform: rotate(180deg) scale(0.98);
}

.status-button {
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid #b7ab98;
  background: #fbf8f1;
  color: #443d34;
  cursor: pointer;
  font-size: 1rem;
}

.status-button.alert {
  background: #d85c3a;
  color: #fff;
  border-color: #c34d2d;
  animation: pulse 1.2s infinite;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 760px;
  margin-top: 10px;
}

.stat-card {
  background: #fbf8f1;
  border: 1px solid #d5cab8;
  border-radius: 18px;
  padding: 10px;
  text-align: center;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  color: #5a5247;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.section-title {
  margin: 8px 0 2px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tree-card,
.feature-card {
  background: #fbf8f1;
  border: 1px solid #d5cab8;
  border-radius: 18px;
  padding: 16px;
}

.tree-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.tree-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.tree-header p {
  margin: 0;
  color: #6b6358;
  line-height: 1.5;
  font-size: 1rem;
}

.mini-pill {
  border: 1px solid #d5cab8;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: #5a5247;
  white-space: nowrap;
}

.tree-map-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  align-items: stretch;
}

.tree-map {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02));
  border-radius: 16px;
  border: 1px solid rgba(160, 146, 124, 0.25);
  padding: 6px;
}

.branch {
  fill: none;
  stroke: rgba(92, 77, 57, 0.42);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seed-dot {
  cursor: default;
}

.seed-dot.safe { fill: #72b86f; }
.seed-dot.amber { fill: #d6a44e; }
.seed-dot.red { fill: #cf5d49; cursor: pointer; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: #5a5247;
  font-size: 0.95rem;
}

.legend-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.safe { background: #72b86f; }
.legend-dot.amber { background: #d6a44e; }
.legend-dot.red { background: #cf5d49; }

.detail-panel {
  border: 1px solid #d5cab8;
  border-radius: 16px;
  background: rgba(255,255,255,0.56);
  padding: 14px;
  min-height: 180px;
}

.detail-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #8a7a66;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-body,
.feature-card p {
  margin: 0;
  color: #6b6358;
  line-height: 1.5;
  font-size: 1rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.pulse-soft { animation: pulseSoft 2.8s infinite; }
.pulse-alert { animation: pulseAlert 1.8s infinite; }
.pulse-danger { animation: pulseDanger 1.1s infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.8; r: 8px; }
  50% { opacity: 1; r: 9px; }
}

@keyframes pulseAlert {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes pulseDanger {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (max-width: 740px) {
  .tagline {
    font-size: 1rem;
  }

  .lede {
    font-size: 1.35rem;
  }

  .stats {
    gap: 8px;
  }

  .tree-map-wrap {
    grid-template-columns: 1fr;
  }

  .mini-pill {
    display: none;
  }

  .tree-header p,
  .detail-body,
  .feature-card p,
  .stat-label {
    font-size: 1.1rem;
  }

  .detail-title,
  .feature-card h3 {
    font-size: 1.28rem;
  }

  .section-title {
    font-size: 2.3rem;
  }
}


.app-nest {
  text-align: center;
  margin-top: 40px;
}

.app-nest-img {
  width: 160px;
  max-width: 60%;
  margin-bottom: 10px;
}

.app-nest-text {
  font-size: 1.2rem;
  color: #3f382f;
}
