:root {
  color-scheme: light;
  --bg: #f7fbf7;
  --surface: #ffffff;
  --surface-soft: #edf7ef;
  --text: #183022;
  --muted: #5c6d63;
  --brand: #2d7d4f;
  --brand-dark: #1d5e3a;
  --accent: #e9b44c;
  --danger: #b2413d;
  --border: #d7e4da;
  --shadow: 0 10px 30px rgb(24 48 34 / 10%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 1.2rem;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 8px 10px;
}

.nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.page {
  margin: 0 auto;
  max-width: 1160px;
  padding: 36px 24px 56px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 520px;
}

.hero-art {
  background:
    radial-gradient(circle at 25% 25%, #f7df93 0 12%, transparent 13%),
    radial-gradient(circle at 70% 30%, #8ac796 0 14%, transparent 15%),
    linear-gradient(150deg, #dff2e4, #ffffff 58%, #f8edcd);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 340px;
  padding: 24px;
}

.hero-art-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

.plant-tile {
  align-items: end;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 90px;
  padding: 12px;
}

.plant {
  background: var(--brand);
  border-radius: 20px 20px 6px 6px;
  display: block;
  height: var(--h);
  width: 24px;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: 2rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  padding: 12px 16px;
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-dark);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.metric {
  color: var(--brand-dark);
  font-size: 2rem;
  font-weight: 900;
}

.progress-track {
  background: #dfeae2;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  background: var(--brand);
  height: 100%;
  width: var(--progress);
}

.topic-card {
  display: grid;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 9px;
}

.question {
  display: grid;
  gap: 14px;
}

.answer-row {
  display: flex;
  gap: 10px;
}

.answer-row input {
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: 1;
  padding: 12px;
}

.feedback {
  border-radius: 8px;
  display: none;
  padding: 12px;
}

.feedback.visible {
  display: block;
}

.feedback.correct {
  background: #dff2e4;
  color: var(--brand-dark);
}

.feedback.incorrect {
  background: #f9e0df;
  color: var(--danger);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

@media (max-width: 820px) {
  .hero,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }
}
