
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #477653;
  --dark-green: #294b34;
  --light-green: #edf4e9;
  --cream: #fbfaf5;
  --text: #29392f;
  --muted: #7b887d;
  --border: #e3e9df;
}

body {
  font-family: Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-green);
  text-decoration: none;
}

.tag {
  color: var(--green);
  background: var(--light-green);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 7px 13px;
  font-size: 12px;
}

.container {
  max-width: 1050px;
  margin: auto;
  padding: 20px 24px 40px;
}

.hero {
  text-align: center;
  padding: 45px 0;
}

.eyebrow, .step-label {
  color: var(--green);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.hero h1 {
  font-size: clamp(45px, 7vw, 70px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 22px 0;
}

.hero h1 span {
  color: var(--green);
}

.hero > p {
  max-width: 500px;
  margin: auto;
  color: var(--muted);
  font-size: 15px;
}

.quote {
  color: #8b896d;
  margin-top: 20px;
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 35px #314d3610;
  min-width: 0;
}

.card h2 {
  font-size: 22px;
  margin: 8px 0 22px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 145px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfdf9;
  outline: none;
  font-size: 13px;
  line-height: 1.7;
}

textarea:focus, select:focus {
  border-color: #7da582;
  box-shadow: 0 0 0 3px #eaf3e7;
}

.link-button {
  color: var(--green);
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  font-weight: bold;
}

.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px;
}

select {
  width: 100%;
  padding: 11px 8px;
  background: #fafcf8;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 11px;
  color: var(--text);
}

.primary-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
}

.primary-button:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.privacy {
  margin-top: 12px;
  font-size: 10px;
  color: #929c92;
}

.output-card {
  display: flex;
  flex-direction: column;
}

.empty-state {
  text-align: center;
  margin: auto 0;
  padding: 25px 0;
}

.plant {
  font-size: 45px;
  background: var(--light-green);
  border-radius: 25px;
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
}

.empty-state h3, #loadingState h3 {
  font-size: 16px;
  margin-bottom: 7px;
}

.empty-state p, #loadingState p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}

.chip {
  display: inline-block;
  color: var(--green);
  background: var(--light-green);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  margin: 3px;
}

.hidden {
  display: none !important;
}

#loadingState {
  text-align: center;
  margin: auto;
  padding: 25px 0;
}

.loader {
  width: 35px;
  height: 35px;
  border: 3px solid #e2ecdf;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.plan-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--light-green);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 15px;
}

.plan-banner strong {
  font-size: 13px;
}

.plan-banner p {
  font-size: 11px;
  color: var(--muted);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 9px;
}

.step input {
  margin-top: 5px;
  accent-color: var(--green);
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 12px;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.step-detail {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.step-time {
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}

.step.done {
  opacity: 0.55;
}

.step.done .step-title {
  text-decoration: line-through;
}

.reminder {
  padding: 13px;
  margin: 12px 0;
  border-radius: 10px;
  background: #fcf5e9;
  color: #796c54;
  font-size: 11px;
}

.secondary-button {
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--light-green);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 11px;
  font-weight: bold;
}

.model-status {
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: auto;
  font-size: 10px;
}

.features {
  text-align: center;
  padding: 65px 0 35px;
}

.features > h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: left;
}

.feature-grid article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
}

.feature-icon {
  font-size: 25px;
}

.feature-grid h3 {
  font-size: 14px;
  margin: 10px 0 6px;
}

.feature-grid p {
  color: var(--muted);
  font-size: 12px;
}

.about {
  padding: 22px;
  background: #f1f5eb;
  border: 1px dashed #d5e2d0;
  border-radius: 15px;
}

.about h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.about p {
  color: #6f7d70;
  font-size: 12px;
  line-height: 1.8;
}

footer {
  text-align: center;
  color: #929c92;
  font-size: 11px;
  padding: 28px 0 0;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-green);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: 90%;
  z-index: 5;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 700px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 0;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .card {
    padding: 20px;
  }

  .features {
    padding-top: 45px;
  }

  .features > h2 {
    font-size: 24px;
  }

  .tag {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .navbar {
    padding: 15px;
  }

  .logo {
    font-size: 18px;
  }

  .container {
    padding: 15px;
  }

  .settings {
    grid-template-columns: 1fr;
  }
}
