
:root {
  --green: #254f38;
  --green-dark: #193b29;
  --lime: #d7e8a9;
  --cream: #f5f6ed;
  --white: #fffefa;
  --muted: #7c8378;
  --border: #e5e8dc;
  --orange: #f3b47d;
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--cream);
  color: var(--green-dark);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

button, a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--green);
  color: var(--lime);
  border-radius: 10px;
}

.brand-ai {
  color: #819b5d;
}

nav {
  display: flex;
  gap: 30px;
  color: #667365;
  font-size: 13px;
  font-weight: 600;
}

nav a:hover {
  color: var(--green);
}

.online-status, .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8eddf;
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-dot, .scanner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72a96b;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 24px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 45px 0 55px;
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #84936d;
  margin-bottom: 15px;
}

.hero h1, h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -2px;
  line-height: 1.13;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 67px);
  font-weight: 800;
}

.hero h1 span {
  color: #78965c;
}

.hero-copy > p {
  max-width: 420px;
  margin: 22px 0 25px;
  color: #6e796b;
  font-size: 15px;
  line-height: 1.9;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 13px;
  transition: .2s ease;
}

.primary-btn:hover:not(:disabled) {
  background: #386749;
  transform: translateY(-2px);
}

.primary-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  height: 385px;
  position: relative;
}

.hero-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 140px 24px 24px 24px;
}

.floating-card {
  position: absolute;
  bottom: 24px;
  left: -30px;
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 17px;
  box-shadow: 0 12px 35px #203b241b;
}

.floating-icon {
  font-size: 26px;
}

.floating-card strong {
  font-size: 12px;
}

.floating-card p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.art-label {
  position: absolute;
  right: 15px;
  top: 20px;
  color: white;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff90;
  padding: 22px;
  margin-bottom: 85px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border: 0;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #edf0e5;
  font-size: 21px;
}

.stat strong, .stat small {
  display: block;
}

.stat strong {
  font-size: 20px;
  font-family: "Manrope", sans-serif;
}

.stat small {
  color: var(--muted);
  font-size: 11px;
}

.section {
  margin-bottom: 90px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(26px, 3vw, 37px);
  font-weight: 800;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quest-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s;
}

.quest-card:hover {
  transform: translateY(-4px);
}

.quest-visual {
  min-height: 145px;
  display: grid;
  place-items: center;
  font-size: 64px;
}

.leaves { background: #e1ebd2; }
.birds { background: #f6e6d3; }
.sky { background: #dce9e7; }

.quest-body {
  padding: 22px;
}

.quest-type {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #81946a;
}

.quest-body h3 {
  margin: 8px 0;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  letter-spacing: -.5px;
}

.quest-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  min-height: 65px;
}

.quest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.quest-footer > span {
  color: var(--muted);
  font-size: 11px;
}

.complete-btn, .secondary-btn {
  border: 1px solid #dce5d3;
  background: #edf2e6;
  color: var(--green);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.complete-btn:hover, .secondary-btn:hover {
  background: #dce9cf;
}

.complete-btn:disabled {
  opacity: .7;
  cursor: default;
}

.scanner-section {
  display: grid;
  grid-template-columns: .85fr 1fr;
  align-items: start;
  gap: 65px;
  padding: 48px;
  background: #e9eddf;
  border-radius: 30px;
}

.scanner-copy {
  padding-top: 25px;
}

.scanner-copy h2 {
  font-size: clamp(33px, 4vw, 47px);
}

.scanner-copy > p {
  color: #6e796b;
  font-size: 14px;
  line-height: 1.9;
  margin: 20px 0 30px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  background: #f8f9f2;
  border: 1px solid #e1e7d9;
  border-radius: 15px;
}

.privacy-note > span {
  font-size: 21px;
}

.privacy-note strong {
  font-size: 12px;
}

.privacy-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.scanner-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 23px;
}

.scanner-top, .result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scanner-top > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.scanner-top .pill {
  font-size: 9px;
}

.upload-area {
  margin: 20px 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  border: 1.5px dashed #c9d4bd;
  background: #f4f6ed;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}

.upload-area:hover {
  border-color: #78965c;
}

#uploadPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 20px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: white;
  font-size: 24px;
  color: var(--green);
  margin-bottom: 7px;
}

#uploadPlaceholder strong {
  font-size: 13px;
}

#uploadPlaceholder span:not(.upload-icon) {
  font-size: 11px;
  color: var(--muted);
}

#uploadPlaceholder small {
  font-size: 9px;
  color: #929b8c;
}

#preview {
  display: none;
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.full-btn {
  width: 100%;
}

.ai-status {
  margin-top: 13px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.results {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.result-heading {
  margin-bottom: 15px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.result-leaf {
  color: #819b5d;
  font-size: 20px;
}

.prediction {
  margin: 13px 0;
}

.prediction-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 7px;
}

.prediction-label span:last-child {
  color: #6f8d52;
  font-weight: 700;
}

.bar-track {
  height: 6px;
  background: #edf0e6;
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #819b5d;
  border-radius: 10px;
}

.result-disclaimer {
  color: var(--muted);
  font-size: 10px;
  margin: 15px 0;
  line-height: 1.7;
}

.outside-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px;
  background: var(--green);
  color: white;
  border-radius: 24px;
  margin-bottom: 85px;
}

.banner-emoji {
  font-size: 43px;
}

.outside-banner .eyebrow {
  color: var(--lime);
  margin-bottom: 7px;
}

.outside-banner h2 {
  font-size: clamp(20px, 3vw, 29px);
  letter-spacing: -.8px;
}

.outside-banner p {
  margin-top: 7px;
  color: #d1ddcf;
  font-size: 12px;
}

.timer-btn {
  margin-left: auto;
  flex-shrink: 0;
  border: 0;
  background: var(--lime);
  color: var(--green-dark);
  border-radius: 12px;
  padding: 14px 17px;
  font-weight: 700;
  font-size: 11px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed #cfd7c4;
  border-radius: var(--radius);
}

.empty-state > span {
  font-size: 36px;
}

.empty-state h3 {
  margin: 10px 0;
  font-family: "Manrope", sans-serif;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
}

.journal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 19px;
  overflow-wrap: anywhere;
}

.journal-card .entry-type {
  color: #81946a;
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 800;
}

.journal-card h3 {
  margin: 9px 0;
  font-size: 16px;
}

.journal-card p {
  color: var(--muted);
  font-size: 11px;
}

.journal-card img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.delete-entry {
  margin-top: 15px;
  border: 0;
  background: none;
  color: #8d6a56;
  font-size: 11px;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

footer .brand {
  color: var(--green);
  font-size: 17px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 20px;
  background: var(--green-dark);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 10;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 850px) {
  nav { gap: 14px; }
  .hero { gap: 28px; }
  .hero-art { height: 330px; }
  .scanner-section { gap: 28px; padding: 28px; }
  .outside-banner { flex-wrap: wrap; }
  .timer-btn { margin-left: 65px; }
}

@media (max-width: 620px) {
  .navbar { padding: 17px 18px; flex-wrap: wrap; }
  nav { order: 3; width: 100%; justify-content: space-between; }
  .online-status { font-size: 10px; }
  .container { padding: 0 17px; }
  .hero { grid-template-columns: 1fr; padding: 35px 0; }
  .hero h1 { font-size: 49px; }
  .hero-art { height: 300px; margin: 0 0 0 20px; }
  .floating-card { left: -20px; bottom: 15px; }
  .stats { padding: 15px 5px; margin-bottom: 60px; }
  .stat { flex-direction: column; gap: 5px; text-align: center; }
  .stat-icon { width: 35px; height: 35px; font-size: 17px; }
  .stat strong { font-size: 16px; }
  .stat small { font-size: 9px; }
  .section { margin-bottom: 60px; }
  .section-heading { align-items: center; }
  .section-heading .pill { font-size: 9px; }
  .quest-grid { grid-template-columns: 1fr; }
  .quest-visual { min-height: 110px; }
  .quest-body p { min-height: auto; }
  .scanner-section { grid-template-columns: 1fr; padding: 22px 16px; gap: 25px; }
  .scanner-copy { padding-top: 5px; }
  .scanner-copy h2 { font-size: 37px; }
  .scanner-card { padding: 16px; }
  .outside-banner { padding: 24px 19px; gap: 12px; }
  .banner-emoji { font-size: 30px; }
  .outside-banner > div { flex: 1; min-width: 180px; }
  .timer-btn { margin-left: 0; width: 100%; }
  .journal-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}