* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-dark: #1b4332;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --green-bg: #f0faf4;
  --red: #e63946;
  --orange: #e76f51;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--green-bg);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px 40px;
}
#app {
  width: 100%;
  max-width: 580px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
}

/* Progress Bar */
.progress-bar { height: 5px; background: var(--green-pale); }
.progress-fill { height: 100%; background: var(--green-light); transition: width 0.4s ease; }

/* Header */
.app-header {
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--green-mid); font-size: 14px; font-weight: 600;
  padding: 4px 0; display: flex; align-items: center; gap: 4px;
}
.back-btn:hover { color: var(--green-dark); }
.step-label {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.4px; text-transform: uppercase;
}

/* Screen */
.screen { padding: 18px 20px 28px; }
.screen-title { font-size: 21px; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; line-height: 1.3; }
.screen-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }

/* Options */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.option-grid.single-col { grid-template-columns: 1fr; }
.option-btn {
  background: var(--white); border: 2px solid #e8f4ec;
  border-radius: 10px; padding: 13px 12px;
  text-align: left; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.35;
  width: 100%;
}
.option-btn:hover { border-color: var(--green-light); background: var(--green-bg); }
.option-btn.full-width { grid-column: 1 / -1; }
.option-btn .icon { font-size: 19px; min-width: 22px; text-align: center; }
.option-desc { font-size: 11.5px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* Welcome */
.welcome-hero { text-align: center; padding: 36px 24px 28px; }
.welcome-hero .plant-icon { font-size: 54px; margin-bottom: 14px; display: block; }
.welcome-hero h1 { font-size: 26px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; line-height: 1.2; }
.welcome-hero p { color: var(--text-muted); font-size: 15px; margin-bottom: 26px; line-height: 1.6; max-width: 380px; margin-left: auto; margin-right: auto; }
.start-btn {
  display: inline-block; background: var(--green-mid); color: var(--white);
  border: none; border-radius: 10px; padding: 15px 36px;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.start-btn:hover { background: var(--green-dark); }
.welcome-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.tag { background: var(--green-pale); color: var(--green-dark); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 500; }

/* Result */
.result-header { background: var(--green-mid); color: white; padding: 22px 20px; }
.result-header.urgent { background: var(--red); }
.confidence-badge {
  display: inline-block; background: rgba(255,255,255,0.22); border-radius: 20px;
  padding: 3px 10px; font-size: 11px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.diagnosis-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.diagnosis-why { font-size: 14px; opacity: 0.92; line-height: 1.6; }
.result-body { padding: 18px 20px 24px; }
.result-section { margin-bottom: 22px; }
.result-section h3 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--green-mid); margin-bottom: 10px;
}
.action-list { list-style: none; }
.action-list li {
  padding: 8px 0; font-size: 14px; color: var(--text);
  border-bottom: 1px solid #f3f4f6;
  display: flex; gap: 9px; line-height: 1.45; align-items: flex-start;
}
.action-list li:last-child { border-bottom: none; }
.action-list li::before { content: "✓"; color: var(--green-light); font-weight: 800; min-width: 16px; margin-top: 1px; }
.dont-list li::before { content: "✕"; color: var(--red); }
.timeline-box {
  background: var(--green-bg); border-radius: 8px;
  padding: 13px 15px; font-size: 14px; color: var(--text); line-height: 1.6;
}
.urgent-box {
  background: #fff3f3; border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0; padding: 13px 15px;
  font-size: 14px; color: #c0392b; line-height: 1.5; font-weight: 600;
}
.read-next-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-pale); border-radius: 8px; padding: 13px 15px;
  text-decoration: none; color: var(--green-dark);
  font-size: 14px; font-weight: 600; transition: background 0.15s;
}
.read-next-link:hover { background: #b7e4c7; }
.product-link {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #e8f4ec; border-radius: 8px; padding: 13px 15px;
  text-decoration: none; color: var(--text); font-size: 14px;
  transition: border-color 0.15s; margin-top: 8px; background: var(--white);
}
.product-link:hover { border-color: var(--green-light); }
.product-name { font-weight: 600; margin-bottom: 2px; }
.product-desc { font-size: 12px; color: var(--text-muted); }
.restart-btn {
  width: 100%; background: var(--green-bg); color: var(--green-mid);
  border: 2px solid var(--green-pale); border-radius: 10px;
  padding: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 6px; transition: all 0.15s;
}
.restart-btn:hover { background: var(--green-pale); border-color: var(--green-light); }

/* No match */
.no-match { text-align: center; padding: 32px 20px; }
.no-match .icon { font-size: 44px; margin-bottom: 14px; display: block; }
.no-match h2 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.no-match p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.22s ease forwards; }

/* Responsive */
@media (max-width: 400px) {
  .option-grid { grid-template-columns: 1fr; }
  .option-btn.full-width { grid-column: 1; }
  .screen-title { font-size: 19px; }
  .diagnosis-title { font-size: 21px; }
}
