
:root {
  --forest: #163e2d;
  --green: #286b48;
  --light-green: #e8f2e8;
  --cream: #faf9f3;
  --text: #24382c;
  --muted: #6e7d72;
  --white: #ffffff;
  --border: #e5e9df;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.navbar {
  min-height: 76px;
  padding: 16px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(250, 249, 243, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 21px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.brand-icon {
  margin-right: 5px;
}

.ai-label {
  color: var(--green);
  font-size: 12px;
  border: 1px solid #b7d6bc;
  padding: 3px 6px;
  border-radius: 6px;
  vertical-align: middle;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a:hover {
  color: var(--green);
}

.offline-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--light-green);
  padding: 8px 12px;
  border-radius: 30px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #439b5b;
  border-radius: 50%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 45px;
  padding: 80px 8%;
  background: #f0f2e7;
}

.hero-content {
  max-width: 590px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 20px 0;
  color: var(--forest);
}

h1 span {
  color: #578552;
}

.hero-content > p,
.section-heading p {
  color: var(--muted);
  max-width: 480px;
}

.primary-btn {
  display: inline-block;
  background: var(--forest);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 13px 19px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s, transform 0.2s;
}

.primary-btn:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.hero-content > .primary-btn {
  margin-top: 25px;
}

.hero-stats {
  display: flex;
  gap: 45px;
  margin-top: 40px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 26px;
  color: var(--forest);
}

.hero-stats span {
  font-size: 12px;
  color: var(--muted);
}

.hero-art {
  min-height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(#d7e8d5, #f2edcf);
  box-shadow: 0 18px 40px #203e2012;
}

.sun {
  position: absolute;
  width: 85px;
  height: 85px;
  background: #f8d98c;
  border-radius: 50%;
  top: 42px;
  right: 55px;
}

.mountain {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 210px solid transparent;
  border-right: 210px solid transparent;
}

.mountain-back {
  border-bottom: 255px solid #9dbd9b;
  bottom: 38px;
  left: -45px;
}

.mountain-front {
  border-left-width: 250px;
  border-right-width: 250px;
  border-bottom: 190px solid #467a50;
  bottom: 20px;
  right: -80px;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #163e2de8;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 13px;
}

.section {
  padding: 75px 8%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(25px, 3vw, 36px);
  color: var(--forest);
  letter-spacing: -0.7px;
  margin: 8px 0;
}

.section-emoji {
  font-size: 38px;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.challenge-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #203e2010;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 13px;
  font-size: 24px;
  margin-bottom: 15px;
}

.green-icon { background: #e5f2df; }
.yellow-icon { background: #fff1c9; }
.blue-icon { background: #e2eef9; }
.purple-icon { background: #eee6fa; }

.difficulty {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.challenge-card h3,
.ai-panel h3 {
  margin: 9px 0;
  font-size: 19px;
  color: var(--forest);
}

.challenge-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  flex: 1;
}

.outline-btn {
  width: 100%;
  padding: 11px;
  background: white;
  color: var(--green);
  border: 1px solid #b9d4bd;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.outline-btn:hover,
.outline-btn.done {
  background: var(--light-green);
}

.ai-panel {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 17px;
}

.ai-panel-heading {
  display: flex;
  gap: 15px;
  align-items: center;
}

.ai-panel-heading .card-icon {
  flex-shrink: 0;
  margin: 0;
}

.ai-panel-heading p {
  color: var(--muted);
  font-size: 13px;
}

label {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.input-row {
  display: flex;
  gap: 12px;
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce3d9;
  background: #fff;
  color: var(--text);
  border-radius: 9px;
  outline: none;
  font-size: 13px;
}

input:focus, select:focus, textarea:focus {
  border-color: #6b9c72;
  box-shadow: 0 0 0 3px #6b9c721c;
}

.input-row select {
  flex: 1;
}

.input-row button {
  flex-shrink: 0;
}

.ai-result {
  margin-top: 20px;
  padding: 17px;
  background: #f1f6ee;
  border-radius: 11px;
  color: var(--text);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-result p {
  display: inline;
}

.ai-result strong {
  color: var(--forest);
}

.garden-section {
  background: #f0f2e7;
}

.garden-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  align-items: center;
  padding: 35px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.garden-illustration {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 14px;
  background: linear-gradient(140deg, #e5efdc, #f9edc9);
  font-size: 100px;
}

.garden-form .primary-btn {
  margin-top: 20px;
}

.journal-form {
  padding: 25px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 15px;
}

.journal-form textarea {
  resize: vertical;
}

.journal-form .primary-btn {
  margin-top: 15px;
}

.journal-entries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.journal-entry {
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.journal-entry h3 {
  color: var(--forest);
  margin-bottom: 6px;
}

.journal-entry p,
.journal-entry small {
  color: var(--muted);
  font-size: 13px;
}

.entry-date {
  display: block;
  margin-top: 12px;
}

.delete-note {
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 7px;
  color: #8c443e;
  font-size: 12px;
}

.closing-banner {
  text-align: center;
  padding: 65px 8%;
  background: var(--forest);
  color: white;
}

.closing-banner > span {
  font-size: 38px;
}

.closing-banner h2 {
  color: white;
  margin: 15px 0;
}

.closing-banner p {
  color: #d2e0d3;
  margin-bottom: 24px;
  font-size: 14px;
}

.closing-banner .primary-btn {
  background: #e1eedb;
  color: var(--forest);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 25px 7%;
  background: white;
  font-size: 12px;
  color: var(--muted);
}

footer .brand {
  font-size: 16px;
}

@media (max-width: 800px) {
  .navbar {
    padding: 14px 5%;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 55px 6%;
  }

  .hero-art {
    min-height: 290px;
  }

  .section {
    padding: 55px 6%;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .garden-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .garden-illustration {
    min-height: 170px;
  }
}

@media (max-width: 480px) {
  .offline-badge {
    font-size: 10px;
    padding: 6px 8px;
  }

  .brand {
    font-size: 17px;
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 12px;
  }

  .hero-stats {
    gap: 25px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }

  .ai-panel {
    padding: 20px;
  }

  .journal-entries {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}
