
:root {
  --paper: #f6f4ef;
  --ink: #20251f;
  --muted: #73796f;
  --line: #e4e1d8;
  --white: #fffefa;
  --green: #315b42;
  --lime: #d8ef9c;
  --orange: #c77b48;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.topbar {
  min-height: 72px;
  padding: 14px max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--green);
  color: var(--lime);
  font-size: 22px;
}

.top-note {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #77a75c;
  flex-shrink: 0;
}

.shell {
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
}

.hero {
  padding: 72px 0 42px;
  max-width: 780px;
}

.eyebrow,
.step-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: var(--green);
}

h1 {
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -3.5px;
  line-height: 1.02;
  margin: 18px 0 20px;
  font-weight: 750;
}

h1 em {
  font-family: Georgia, serif;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -2.8px;
}

.hero-copy {
  max-width: 610px;
  color: #62685f;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 27px;
  min-width: 0;
  box-shadow: 0 8px 30px #3b3b2410;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}

.panel-heading h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 4px 0 0;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f1e8;
  color: var(--green);
  font-size: 18px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 16px 0 7px;
}

.optional {
  font-weight: 400;
  color: #8a8d84;
  margin-left: 5px;
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #dedfd5;
  background: #fff;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #719078;
  box-shadow: 0 0 0 3px #315b4212;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-weight: 750;
  padding: 15px;
  margin-top: 24px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s, background 0.2s;
}

.primary-button:hover {
  background: #254b35;
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.button-arrow {
  margin-left: auto;
  font-size: 18px;
}

.form-footnote,
.edit-note {
  font-size: 11px;
  color: #888d83;
  text-align: center;
  margin: 12px 0 0;
}

.ai-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f0f4e8;
  border-radius: 30px;
  padding: 7px 10px;
  color: #53694b;
  font-size: 10px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 25px 12px 22px;
}

.empty-art {
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.empty-art > span {
  position: absolute;
  color: #8fa66d;
  font-size: 24px;
}

.empty-art > span:nth-child(1) {
  top: 7px;
  left: 24%;
}

.empty-art > span:nth-child(2) {
  top: 24px;
  right: 22%;
  font-size: 18px;
}

.empty-art > span:nth-child(3) {
  bottom: 15px;
  right: 27%;
  font-size: 20px;
}

.art-card {
  width: 118px;
  height: 135px;
  border-radius: 12px;
  background: #e8eed9;
  border: 1px solid #d8e1c4;
  transform: rotate(-5deg);
  padding: 20px 14px;
  box-shadow: 8px 10px 0 #e9e5d9;
}

.art-card::before {
  content: "✿";
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  background: #c7d7ac;
  border-radius: 50%;
  margin: 0 auto 12px;
  color: #476846;
  font-size: 28px;
}

.art-card div {
  height: 5px;
  border-radius: 4px;
  background: #b8c6a3;
  margin: 5px auto;
  width: 80%;
}

.art-card div:last-child {
  width: 50%;
}

.empty-state h3,
.loading-state h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}

.empty-state p,
.loading-state p {
  max-width: 310px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.output-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.output-benefits span {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 10px;
  color: #73796f;
}

.hidden {
  display: none !important;
}

.loading-state {
  text-align: center;
  padding: 75px 15px;
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e9dc;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.result-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #798071;
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 800;
  margin-bottom: 9px;
}

.copy-button {
  border: 0;
  background: #f0f2e9;
  color: var(--green);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0;
}

.result-title,
.result-description,
.tags {
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-title {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.result-description {
  font-size: 13px;
  line-height: 1.8;
  color: #53594f;
  min-height: 100px;
}

.tags {
  font-size: 12px;
  line-height: 2;
  color: var(--green);
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.secondary-button {
  flex: 1;
  padding: 11px 10px;
  border: 1px solid #d9ded1;
  background: #f7f8f2;
  color: var(--green);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.secondary-button:hover {
  background: #edf2e4;
}

.error-message {
  padding: 14px;
  border-radius: 9px;
  background: #fff0e8;
  color: #8c4828;
  font-size: 12px;
  margin-top: 16px;
}

.how-it-works {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 26px;
  margin: 64px 0 48px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-it-works h2 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 9px 0;
}

.reason {
  display: flex;
  gap: 12px;
}

.reason-number {
  font-size: 11px;
  color: #8a9b70;
  font-weight: 800;
}

.reason h3 {
  font-size: 13px;
  margin: 0 0 7px;
}

.reason p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 0 0 30px;
  color: #8a8d84;
  font-size: 11px;
}

@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 55px;
  }

  .panel {
    padding: 23px;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 0 15px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .top-note {
    font-size: 0;
  }

  .hero {
    padding: 43px 0 32px;
  }

  h1 {
    letter-spacing: -2.5px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .trust-row {
    gap: 11px;
    font-size: 10px;
  }

  .panel {
    padding: 19px 16px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 42px;
  }

  footer {
    flex-direction: column;
  }

  .result-actions {
    flex-direction: column;
  }
}
