/* PrepperPlant landing — "Sunlit Windowsill" (see DESIGN.md).
   Light-only. Two font weights. Living Green reserved for accents/progress;
   Deep Leaf for green text + primary buttons (white-on-green needs it for AA). */

:root {
  /* Neutrals (all warm-tinted; never pure #000/#fff) */
  --warm-paper: #FAFAF9;
  --card-white: #FFFFFF;
  --ink: #1C1917;
  --stone: #78716C;
  --mist: #A8A29E;
  --hairline: #F5F5F4;
  --field-border: #E7E5E4; /* stone-200 */

  /* Green system */
  --living-green: #22C55E;
  --deep-leaf: #15803D;
  --deep-leaf-pressed: #14532D;
  --seedling-wash: #DCFCE7;
  --seedling-tint: #F0FDF4;

  /* Category hues (meaning only, paired with a label) */
  --water: #3B82F6;
  --light: #F59E0B;
  --soil: #92400E;
  --roots: #7C3AED;
  --shelter: #6B7280;

  --alert-red: #EF4444;

  /* Radii */
  --r-field: 12px;
  --r-card: 16px;
  --r-hero: 24px;
  --r-pill: 9999px;

  --maxw: 68rem;
  --measure: 40rem;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--warm-paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

a { color: var(--deep-leaf); text-underline-offset: 2px; }
a:hover { color: var(--deep-leaf-pressed); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section-sm { padding-block: clamp(2rem, 5vw, 3rem); }

.lede { font-size: 1.12rem; color: var(--stone); max-width: var(--measure); }
.eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--deep-leaf); margin: 0 0 0.75rem;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--deep-leaf);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 48px; padding: 14px 22px;
  border-radius: var(--r-card); border: 1px solid transparent;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--deep-leaf); color: #fff; }
.btn-primary:hover { background: var(--deep-leaf-pressed); color: #fff; }
.btn-primary:disabled { background: var(--mist); cursor: default; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--field-border);
}
.btn-ghost:hover { background: var(--hairline); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--card-white);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.site-header .btn { padding: 9px 16px; min-height: 40px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.hero .container {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
.hero-content { min-width: 0; }
.hero h1 { max-width: 15ch; }
.hero .subhead { font-size: 1.18rem; color: var(--stone); max-width: 42ch; margin-bottom: 1.5rem; }

.plant-hero {
  background: var(--seedling-wash);
  border-radius: var(--r-hero);
  border-bottom: 4px solid #BBF7D0; /* slightly darker base — "raised terrarium" */
  box-shadow: 0 10px 30px -12px rgba(28, 25, 23, 0.18);
  padding: clamp(1.25rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: center;
}
.plant-hero img { width: auto; height: clamp(160px, 34vw, 300px); }

/* ---------- Form ---------- */
.signup {
  background: var(--card-white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(1.1rem, 3vw, 1.5rem);
}
.signup h2 { font-size: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label, .legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field input[type="email"] {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--field-border); border-radius: var(--r-field);
  background: var(--card-white); color: var(--ink);
  font-size: 1rem; font-family: inherit;
}
.field input[type="email"]::placeholder { color: var(--stone); opacity: 1; }
.field input[type="email"]:focus-visible { border-color: var(--deep-leaf); }

fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--field-border); border-radius: var(--r-pill);
  cursor: pointer; font-size: 0.95rem;
}
.radio-pill:has(input:checked) { border-color: var(--deep-leaf); background: var(--seedling-tint); }
.radio-pill input, .check-row input { accent-color: var(--living-green); width: 18px; height: 18px; }

.check-row {
  display: flex; align-items: flex-start; gap: 0.6rem;
  min-height: 44px; padding: 6px 0; cursor: pointer; font-size: 0.98rem;
}
.check-row input { margin-top: 2px; }

.consent { font-size: 0.82rem; color: var(--stone); margin: 0.85rem 0 0; }

/* Honeypot — hidden from humans and AT, present for bots */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Form status messages */
.form-status { margin-top: 1rem; }
.form-status:empty { margin-top: 0; }
.status-success, .status-error {
  border-radius: var(--r-field); padding: 14px 16px; font-size: 0.98rem;
}
.status-success {
  background: var(--seedling-tint); border: 1px solid var(--seedling-wash); color: var(--deep-leaf-pressed);
}
.status-success strong { color: var(--deep-leaf); }
.status-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.step {
  background: var(--card-white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 1.5rem; text-align: center;
}
.step img { height: 120px; width: auto; margin: 0 auto 0.75rem; }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--stone); margin: 0; font-size: 0.98rem; }

/* category chips inside step 1 */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.9rem; margin-top: 0.9rem; }
.cat { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink); }
.cat .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cat.water .dot { background: var(--water); }
.cat.light .dot { background: var(--light); }
.cat.soil .dot { background: var(--soil); }
.cat.roots .dot { background: var(--roots); }
.cat.shelter .dot { background: var(--shelter); }

/* ---------- Growth strip ---------- */
.growth { text-align: center; }
.growth-track {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem; align-items: end; margin: 1.5rem 0 1rem;
}
.growth-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.growth-step img { height: clamp(52px, 13vw, 92px); width: auto; }
.growth-step span {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--stone);
}
.growth-note { color: var(--stone); max-width: var(--measure); margin-inline: auto; }

/* ---------- Who it's for ---------- */
.audience {
  background: var(--seedling-tint); border: 1px solid var(--seedling-wash);
  border-radius: var(--r-hero); padding: clamp(1.75rem, 5vw, 3rem); text-align: center;
}
.audience p { max-width: 46ch; margin-inline: auto; }
.audience .pull { font-size: 1.2rem; color: var(--ink); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); margin-inline: auto; }
.faq details {
  background: var(--card-white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); margin-bottom: 0.75rem; padding: 0 1.25rem;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700;
  padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--deep-leaf); font-size: 1.4rem; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { color: var(--stone); padding-bottom: 1.1rem; margin-top: -0.3rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .signup { text-align: left; max-width: 32rem; margin: 1.5rem auto 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline); background: var(--card-white);
  color: var(--stone); font-size: 0.9rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center;
  padding-block: 1.5rem;
}
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--ink); }
.site-footer .sep { color: var(--mist); }

.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--card-white);
  color: var(--ink); padding: 10px 16px; border-radius: var(--r-field);
  border: 1px solid var(--field-border); transition: top 0.15s ease; z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ---------- Responsive ---------- */
@media (min-width: 52rem) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }
