
@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 {
  --bg: #f7f6f0;
  --surface: #ffffff;
  --ink: #1c2b24;
  --muted: #788078;
  --green: #245b43;
  --green-dark: #194531;
  --green-pale: #eaf2e9;
  --border: #e7e8df;
  --orange: #f0a36c;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #9dc8aa;
  outline-offset: 3px;
}

.topbar {
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 25px;
  letter-spacing: -2px;
}

.brand-light {
  color: var(--green);
  font-weight: 500;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #53645a;
}

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #39976b;
  box-shadow: 0 0 0 3px #e0efe4;
}

.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9e2d5;
  color: #635c4f;
  font-size: 11px;
  font-weight: 700;
}

.page {
  max-width: 1000px;
  width: 88%;
  margin: 0 auto;
}

.hero {
  padding: 75px 0 46px;
  text-align: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #dce5d8;
  border-radius: 30px;
  background: #eff3e9;
}

.eyebrow span {
  font-size: 14px;
  color: #bf8052;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 24px 0 17px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2.8px;
}

h1 span {
  color: var(--green);
}

.hero-copy {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.workspace {
  padding-bottom: 30px;
}

.section-heading,
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

h2 {
  margin: 8px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.text-button {
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  color: #b46e41;
}

.input-card,
.result-card {
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 9px 35px rgba(40, 55, 40, 0.035);
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.field-head label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.field-note {
  color: #9a9e96;
  font-size: 11px;
}

select,
textarea {
  width: 100%;
  border: 1px solid #e5e7df;
  border-radius: 11px;
  background: #fbfcf9;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

select {
  height: 46px;
  padding: 0 13px;
  font-size: 13px;
}

textarea {
  display: block;
  min-height: 155px;
  padding: 16px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.8;
}

textarea::placeholder {
  color: #a3a69e;
}

select:focus,
textarea:focus {
  border-color: #8eaf96;
  outline: none;
  box-shadow: 0 0 0 3px #edf4ed;
}

.message-head {
  margin-top: 24px;
}

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 19px;
}

.input-hint {
  color: #8d938b;
  font-size: 11px;
  line-height: 1.6;
}

.primary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 19px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

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

.model-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding: 17px 20px;
  border: 1px solid #dfe8db;
  border-radius: 13px;
  background: #eef3e9;
}

.model-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: white;
  color: var(--green);
  font-size: 23px;
}

.model-strip > div {
  flex: 1;
  min-width: 0;
}

.model-strip strong {
  font-size: 12px;
}

.model-strip p {
  margin: 4px 0 0;
  color: #69766a;
  font-size: 11px;
  line-height: 1.6;
}

.model-badge {
  flex-shrink: 0;
  padding: 7px 9px;
  border-radius: 6px;
  background: #e0e6d9;
  color: #5d6c5b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.results {
  margin-top: 42px;
}

.results-header {
  align-items: center;
}

.ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 30px;
  background: #e9f3e9;
  color: #326b49;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0e9;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 22px;
}

.result-title h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.result-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.analysis-output {
  padding: 22px 0;
  color: #3d4a40;
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 17px;
  border-top: 1px solid #edf0e9;
}

.secondary-button {
  padding: 11px 15px;
  border: 1px solid #dfe4da;
  border-radius: 9px;
  background: white;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

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

.disclaimer {
  margin: 13px 2px 0;
  color: #858b82;
  font-size: 11px;
  line-height: 1.8;
}

.error-box {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #f0d4c9;
  border-radius: 10px;
  background: #fff4ef;
  color: #88452f;
  font-size: 12px;
  line-height: 1.7;
}

.how-it-works {
  margin: 60px 0 45px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f1f0e8;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.mini-icon {
  display: inline-block;
  margin-bottom: 15px;
  color: #b47a50;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.mini-grid h3 {
  margin-bottom: 8px;
  font-size: 13px;
}

.mini-grid p {
  max-width: 220px;
  margin: 0;
  color: #788078;
  font-size: 11px;
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  color: #858b82;
  font-size: 10px;
}

.footer-brand {
  font-size: 14px;
  letter-spacing: -0.4px;
}

.footer-brand .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 20px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 650px) {
  .topbar {
    height: 65px;
    padding: 0 5%;
  }

  .brand {
    font-size: 17px;
  }

  .privacy {
    font-size: 0;
  }

  .privacy .live-dot {
    width: 9px;
    height: 9px;
  }

  .top-right {
    gap: 10px;
  }

  .page {
    width: 91%;
  }

  .hero {
    padding: 54px 0 34px;
  }

  h1 {
    letter-spacing: -1.8px;
  }

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

  .input-card,
  .result-card {
    padding: 18px;
  }

  .section-heading,
  .results-header {
    align-items: flex-start;
  }

  h2 {
    font-size: 20px;
  }

  .input-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .model-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 15px;
  }

  .model-strip > div {
    width: calc(100% - 50px);
  }

  .model-badge {
    margin-left: 48px;
  }

  .ready-pill {
    font-size: 0;
    padding: 9px;
  }

  .ready-pill .live-dot {
    width: 8px;
    height: 8px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mini-grid p {
    max-width: 100%;
  }

  .how-it-works {
    padding: 21px;
    margin-top: 42px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}
