:root {
  --bg: #07100c;
  --panel: #0d1913;
  --panel-strong: #12231a;
  --line: rgba(198, 232, 190, 0.16);
  --line-strong: rgba(198, 232, 190, 0.32);
  --text: #e7f3e2;
  --muted: #a6b9a1;
  --quiet: #748477;
  --green: #7dd489;
  --mint: #8fe3c0;
  --gold: #e3c565;
  --red: #e67b6d;
  --white: #fbfff6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(125, 212, 137, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(227, 197, 101, 0.12), transparent 24rem),
    linear-gradient(180deg, #07100c 0%, #09120d 58%, #060a08 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251, 255, 246, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 255, 246, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration-color: rgba(143, 227, 192, 0.6);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: var(--white);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(125, 212, 137, 0.48);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(125, 212, 137, 0.09);
}

.brand-copy,
.top-nav a,
.eyebrow,
.section-kicker,
.button,
.small-label,
.site-footer {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.top-nav a {
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  text-decoration: none;
}

.top-nav a[aria-current="page"],
.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

main {
  padding-bottom: 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  min-height: min(38rem, calc(100vh - 6rem));
  padding: 2.25rem 0 2rem;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow,
.section-kicker,
.small-label {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(2.35rem, 5.7vw, 5.2rem);
  line-height: 0.98;
  max-width: 12ch;
}

h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.25;
}

.hero-lede,
.section-body,
.card p,
.step-card p,
.notice {
  color: var(--muted);
}

.hero-lede {
  max-width: 40rem;
  font-size: 1.08rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(125, 212, 137, 0.52);
  border-radius: 6px;
  background: rgba(125, 212, 137, 0.11);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: rgba(125, 212, 137, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.panel,
.card,
.step-card,
.prompt-panel,
.plant-summary,
.metric-card,
.context-card,
.field-block,
.thank-you-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 25, 19, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.panel,
.prompt-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.panel ol,
.panel ul,
.card ul,
.step-card ul {
  padding-left: 1.2rem;
}

.panel li,
.card li,
.step-card li {
  margin: 0.45rem 0;
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(227, 197, 101, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(227, 197, 101, 0.08);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.card-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step-card {
  padding: 1rem;
}

.review-layout {
  display: grid;
  gap: 0.9rem;
}

.plant-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.plant-summary p:last-child,
.context-card p:last-child,
.thank-you-box p:last-child {
  margin-bottom: 0;
}

.metric-grid,
.context-grid,
.form-grid,
.review-score-grid {
  display: grid;
  gap: 0.85rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid,
.review-score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.context-card,
.field-block,
.thank-you-box {
  padding: 1rem;
}

.metric-card span,
.field-block span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1.1;
}

.review-form {
  display: grid;
  gap: 0.85rem;
}

.field-block input,
.field-block select,
.field-block textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font: inherit;
  padding: 0.72rem 0.8rem;
}

.field-block textarea {
  resize: vertical;
}

.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
  outline: 2px solid rgba(143, 227, 192, 0.3);
  border-color: rgba(143, 227, 192, 0.7);
}

.thank-you-box label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
}

.thank-you-box p {
  color: var(--muted);
}

.button.is-disabled {
  opacity: 0.55;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(143, 227, 192, 0.5);
  border-radius: 999px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.prompt-box,
.mail-box,
pre {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.prompt-box,
.mail-box {
  min-height: 20rem;
  padding: 0.9rem;
  resize: vertical;
}

.mail-box {
  min-height: 10rem;
}

pre {
  overflow: auto;
  padding: 0.9rem;
}

.copy-status {
  min-height: 1.2rem;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.checklist {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.68rem;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .section-grid {
    display: block;
  }

  .top-nav {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .panel,
  .prompt-panel,
  .card-grid,
  .step-grid,
  .plant-summary {
    margin-top: 1rem;
  }

  .card-grid,
  .step-grid,
  .plant-summary,
  .metric-grid,
  .context-grid,
  .form-grid,
  .review-score-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
  }
}
