
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --forest: #163d2a;
  --forest-dark: #10251b;
  --green: #baf27a;
  --green-soft: #edf7e8;
  --cream: #faf9f4;
  --text: #1b2c21;
  --muted: #738076;
  --border: #e5e9e0;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #80b95c;
  outline-offset: 3px;
}
.topbar {
  min-height: 76px;
  padding: 16px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Manrope, sans-serif;
  font-size: 23px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-icon { color: #54954e; font-size: 29px; }
.brand-accent { color: #579d53; }
.topbar nav { display: flex; gap: 30px; color: #536157; font-size: 14px; }
.topbar nav a:hover { color: #438448; }
.status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #526654; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #69b765; }

.hero {
  background: var(--forest-dark);
  color: white;
  padding: 75px 7%;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 55px;
  align-items: center;
  overflow: hidden;
}
.hero-content { max-width: 590px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #54894f;
}
.hero .eyebrow { color: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -1px; }
h1 { font-size: clamp(39px, 5vw, 65px); line-height: 1.12; margin: 20px 0; }
h1 span { color: var(--green); }
.hero-content > p { color: #c2cec2; font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.button {
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: transform .18s, background .18s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.primary { color: #17351f; background: var(--green); padding: 13px 19px; }
.primary:hover:not(:disabled) { background: #a9e967; }
.secondary { color: var(--forest); background: white; border: 1px solid var(--border); padding: 12px 17px; }
.hero-note { margin-top: 22px; color: #c7d8c5; font-size: 12px; }

.hero-art {
  position: relative;
  min-height: 310px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #294e43 0%, #789f84 100%);
}
.sun {
  position: absolute;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #e3f3ad;
  top: 38px; right: 19%;
  box-shadow: 0 0 65px #e3f3ad55;
}
.mountain { position: absolute; bottom: 95px; width: 0; height: 0; }
.mountain-back {
  left: -6%; border-left: 190px solid transparent;
  border-right: 190px solid transparent; border-bottom: 190px solid #9fbea0;
}
.mountain-front {
  right: -12%; border-left: 220px solid transparent;
  border-right: 220px solid transparent; border-bottom: 235px solid #557d60;
}
.hill { position: absolute; width: 140%; height: 145px; border-radius: 50%; }
.hill-back { left: -15%; bottom: -62px; background: #376649; transform: rotate(-8deg); }
.hill-front { left: 14%; bottom: -87px; background: #1e4a31; transform: rotate(8deg); }
.art-label {
  position: absolute; left: 22px; bottom: 20px;
  font-size: 10px; letter-spacing: 2px; color: white; font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 30px 7%;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 13px; background: var(--green-soft);
  color: var(--forest); font-size: 22px;
}
.stat-label { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1.2px; font-weight: 700; }
.stat-card strong { display: block; font-family: Manrope, sans-serif; font-size: 27px; line-height: 1.3; }
.stat-card small { font-size: 11px; color: var(--muted); }

.mission-section { padding: 54px 7% 65px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.2; margin: 9px 0 12px; }
.section-heading p, .checklist-section > div > p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.ai-status {
  margin-top: 22px;
  background: #eef5e9;
  color: #456746;
  border: 1px solid #e0ebd9;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 12px;
}
.ai-status.error { background: #fff3e8; border-color: #f4dec9; color: #8c5228; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 23px 0; }
.filter {
  padding: 9px 15px; border: 1px solid var(--border);
  border-radius: 30px; background: white; color: #536157; font-size: 12px;
}
.filter.active { background: var(--forest); border-color: var(--forest); color: white; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mission-card {
  overflow: hidden; background: white;
  border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.mission-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px #233a2310; }
.mission-visual {
  height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.mission-visual > span { font-size: 45px; }
.mission-visual small { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #35533b; }
.visual-green { background: #e0efdb; }
.visual-blue { background: #e1edf0; }
.visual-orange { background: #f6e7d5; }
.mission-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tag { color: #5b8a51; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.mission-body h3 { font-size: 19px; margin: 9px 0; }
.mission-body p { color: var(--muted); font-size: 12px; flex: 1; }
.mission-footer {
  border-top: 1px solid #eef0eb; padding-top: 15px; margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mission-footer > span { font-size: 11px; font-weight: 700; color: #4f8549; }
.small { background: var(--forest); color: white; padding: 9px 12px; font-size: 11px; }

.tracker-section {
  padding: 50px 7%;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 45px; align-items: center;
  background: #eaf1e5;
}
.tracker-copy > p { max-width: 430px; color: #69786b; font-size: 14px; }
.current-mission {
  padding: 13px 15px; background: #ffffffaa;
  border: 1px solid #dce7d6; border-radius: 10px;
  font-size: 12px; color: #4b654c; margin-top: 25px;
}
.timer-card {
  background: white; padding: 28px; border-radius: 18px;
  text-align: center; box-shadow: 0 8px 30px #1b39210b;
}
.timer-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); }
.timer { font-family: Manrope, sans-serif; font-size: clamp(45px, 6vw, 62px); font-weight: 800; letter-spacing: -2px; margin: 12px 0; font-variant-numeric: tabular-nums; }
.timer-progress { height: 6px; border-radius: 10px; background: #eaf0e7; overflow: hidden; margin: 14px 0 22px; }
.timer-progress div { height: 100%; width: 0; background: #6ea75b; transition: width .3s; }
.timer-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.complete-button {
  width: 100%; margin-top: 12px; padding: 12px;
  border-radius: 9px; border: 1px solid #dfe9da;
  background: var(--green-soft); color: #305b32; font-weight: 700;
}
.complete-button:disabled { opacity: .45; cursor: not-allowed; }
.timer-help { font-size: 11px; color: var(--muted); margin: 13px 0 0; }

.checklist-section {
  padding: 60px 7%; display: grid;
  grid-template-columns: 1fr 1fr; gap: 45px; align-items: start;
}
.checklist { display: grid; gap: 12px; }
.checklist label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; background: white;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; cursor: pointer;
}
.checklist input { accent-color: #397e43; width: 17px; height: 17px; }

.about-section {
  padding: 55px 7%; text-align: center; background: var(--forest-dark); color: white;
}
.about-section .eyebrow { color: var(--green); }
.about-section h2 { margin-top: 14px; }
.about-section > p { max-width: 660px; margin: 0 auto 24px; color: #c4d0c5; font-size: 14px; }
.about-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.about-pills span { border: 1px solid #ffffff2b; border-radius: 30px; padding: 8px 13px; color: #e2eee0; font-size: 11px; }
footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 23px 7%; background: white; flex-wrap: wrap;
}
footer .brand { font-size: 18px; }
footer .brand-icon { font-size: 23px; }
footer p, footer > span { color: var(--muted); font-size: 11px; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); background: #183d28; color: white;
  padding: 13px 19px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 8px 25px #0002; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-art { min-height: 260px; }
  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracker-section { grid-template-columns: 1fr; }
  .checklist-section { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px 5%; flex-wrap: wrap; }
  .topbar nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .status { font-size: 10px; }
  .hero, .mission-section, .tracker-section, .checklist-section, .about-section { padding-left: 5%; padding-right: 5%; }
  .hero { gap: 30px; }
  h1 { font-size: 42px; }
  .hero-art { min-height: 220px; }
  .stats { padding: 20px 5%; grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 15px; }
  .section-heading { align-items: start; flex-direction: column; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-visual { height: 130px; }
  .tracker-section { gap: 25px; }
  .timer-card { padding: 22px 16px; }
  footer { padding: 22px 5%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}