/* SproutPod site v2. Plain CSS, mobile first.
   Palette and components follow the SproutPod app (planter.css tokens).
   Fonts self-hosted (Inter Tight, OFL). */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2");
}

:root {
  /* app tokens */
  --cream: #EEECE6;
  --page: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #1C1917;          /* 14.8:1 on cream */
  --secondary: #57534E;    /* 6.5:1 on cream, 7.6:1 on white */
  --accent: #2D6A4F;       /* 5.4:1 on cream, 6.4:1 on white */
  --accent-soft: #E4F2EA;
  --green-50: #F1F7F3;
  --cream-2: #E4E1D8;
  --warn: #B45309;         /* 4.5:1 on warn-bg; used for the bold notice title only */
  --warn-bg: #FEF3C7;
  --radius: 20px;
  /* logo family, for the dark band and the one highlight */
  --leaf-dark: #326A39;
  --band: #24502B;         /* darker than the logo's stem green: cream text 7.9:1 */
  --sun: #F7B634;          /* 5.2:1 on --band; never as text on cream */
  --on-band: #EEECE6;
  --on-band-2: #C9D9C6;    /* 6.3:1 on --band */
  --shadow: 0 1px 10px rgba(28, 25, 23, 0.05);

  --wrap: 1180px;
  --pad: clamp(1rem, 5vw, 2.5rem);
  --space: clamp(4rem, 11vw, 7.5rem);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible { outline-color: var(--sun); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}
.skip:focus { top: 0.75rem; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(238, 236, 230, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
}
.brand__mark { width: auto; height: 2rem; }

.nav { display: none; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--surface); }

/* ---------- shared components (from the app) ---------- */

/* amber notice card, like the app's "Raise the light" banner */
.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--warn-bg);
  color: var(--ink);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 0.97rem;
  line-height: 1.45;
  max-width: 40rem;
}
.notice p { margin: 0; }
.notice__icon { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; color: var(--warn); }
.notice__title { color: var(--warn); font-weight: 600; }

/* pill buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--cream-2);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--accent); text-decoration: none; }
.pill--primary { background: var(--accent); color: #fff; box-shadow: none; }
.pill--primary:hover { background: #245a42; box-shadow: none; text-decoration: underline; }

/* chips, like the app's preset chips */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.chip--now { background: var(--accent-soft); color: var(--accent); }
.chip--now::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.45rem;
}
.chip--later { background: var(--cream-2); color: var(--secondary); }

/* white card surfaces */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- hero ---------- */
.hero { padding: 1rem 0 clamp(1rem, 4vw, 2rem); }
.hero__grid { display: grid; gap: 1.75rem; }
.notice--hero { margin-bottom: 1.4rem; }

h1 {
  font-size: clamp(2.3rem, 9.4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 1.1rem;
}
.lede {
  font-size: clamp(1.1rem, 4.3vw, 1.25rem);
  line-height: 1.5;
  max-width: 36ch;
  color: var(--secondary);
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--radius);
  background: #4a4540;
}

figcaption {
  font-size: 0.85rem;
  color: var(--secondary);
  padding: 0.6rem 0.25rem 0;
  line-height: 1.45;
}

/* register interest: hidden unless CONTACT_URL is set (see site.js) */
.interest[hidden] { display: none !important; }
.interest { margin-top: 1.25rem; }

/* ---------- sections ---------- */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.section--band, .section--dark { padding-top: var(--space) !important; }
.section--band + .section, .section--dark + .section { padding-top: var(--space); }

.section--band { background: var(--page); }
.section--dark { background: var(--band); color: var(--on-band); }
.section--dark h2, .section--dark h3 { color: var(--on-band); }

.section__title {
  font-size: clamp(1.85rem, 7vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 2rem;
}
.kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.section--dark .kicker { color: var(--sun); }
.section__intro {
  margin-top: -0.75rem;
  margin-bottom: 2.25rem;
  color: var(--secondary);
  max-width: 52ch;
}

/* how it works */
.how { display: grid; gap: 1.25rem; }
.how__figure img { border-radius: var(--radius); background: #a9a49d; }
.how__figure--front { max-width: 26rem; }

.steps { display: grid; gap: 0.75rem; }
.step {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.35rem;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green-50);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
/* the one sun highlight on cream: a decorative ring on the "Light" step number */
.step--light .step__n { box-shadow: 0 0 0 3px var(--sun); background: var(--surface); }
.step p { max-width: 54ch; color: var(--secondary); }

.wide-figure { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.wide-figure img { width: 100%; border-radius: var(--radius); background: #a9a49d; }
.wide-figure figcaption span { display: block; }

/* what you build */
.build { display: grid; gap: 1rem; }
.build__col {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem 1.5rem;
}
.build__col h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.build__col > p { max-width: 46ch; color: var(--secondary); }

.facts { margin: 1.25rem 0; }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--cream-2);
}
.facts div:last-child { border-bottom: 1px solid var(--cream-2); }
.facts dt { color: var(--secondary); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.note {
  background: var(--green-50);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-size: 0.97rem;
}

.parts { margin-top: 1.25rem; }
.parts li { padding: 0.8rem 0; border-top: 1px solid var(--cream-2); }
.parts li:last-child { border-bottom: 1px solid var(--cream-2); }
.parts strong { font-weight: 600; }

.wide-figure--split figcaption { font-size: 1rem; color: var(--ink); max-width: 40ch; }
.wide-figure--split figcaption span { font-size: 0.85rem; color: var(--secondary); margin-bottom: 0.35rem; }

/* kits */
#kit .notice { margin-bottom: 2rem; }
.tiers { display: grid; gap: 0.75rem; }
.tier {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.4rem;
}
.tier .chip { margin-bottom: 0.85rem; }
.tier--main { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.tier--free { background: var(--green-50); box-shadow: none; }
.tier__name { font-size: 1.3rem; margin-bottom: 0.35rem; }
.tier__price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.tier__price span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--secondary);
  vertical-align: 0.4em;
  margin-left: 0.3rem;
  background: var(--cream-2);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}
.tier p:last-child { color: var(--secondary); font-size: 0.98rem; }

/* local */
.local__list { display: grid; gap: 0.75rem; }
.local__list li {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
}
.local__list h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.local__list p { color: var(--on-band-2); max-width: 44ch; }

.signals { display: grid; gap: 0.9rem; margin-top: 1.1rem; }
.signal { display: flex; align-items: center; gap: 0.9rem; color: var(--on-band); font-weight: 500; }
.signal__bar {
  flex: none;
  width: 3.2rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0 14px 2px rgba(247, 182, 52, 0.45);
}
.signal__bar--breathe { animation: breathe 3.6s ease-in-out infinite; }
.signal__bar--blink { animation: blink2 3s linear infinite; }

@keyframes breathe {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@keyframes blink2 {
  0%, 6% { opacity: 1; }
  7%, 13% { opacity: 0.2; }
  14%, 20% { opacity: 1; }
  21%, 100% { opacity: 0.2; }
}

/* status */
.roadmap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.25rem 1.25rem;
  max-width: 44rem;
}
.roadmap li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 1rem 0;
}
.roadmap li + li { border-top: 1px solid var(--cream-2); }
.roadmap__what { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.interest--status { margin-top: 2rem; }
.interest--status p { margin-bottom: 0.8rem; color: var(--secondary); }

/* footer */
.foot {
  background: var(--page);
  color: var(--ink);
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--cream-2);
}
.foot__inner { display: grid; gap: 0.5rem; }
.foot__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.05rem; margin: 0; }
.foot__mark { width: auto; height: 1.8rem; }
.foot__note { color: var(--secondary); font-size: 0.9rem; margin: 0; }

/* 404 */
.lost p a { font-weight: 500; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local__list li, .step, .build__col, .tier { padding: 1.5rem 1.5rem 1.6rem; }
}

@media (min-width: 820px) {
  .nav { display: block; }
  .top__inner { min-height: 4.25rem; }
}

@media (min-width: 960px) {
  .hero { padding-top: 2rem; padding-bottom: 1rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
    align-items: center;
    gap: 3.5rem;
  }
  h1 { font-size: clamp(2.8rem, 4.2vw, 3.9rem); }
  .how {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    align-items: start;
  }
  .how__figure--front { position: sticky; top: 6rem; max-width: none; }
  .wide-figure:not(.wide-figure--split) { max-width: 60rem; margin-left: auto; margin-right: auto; }
  .build { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .build__col { padding: 2rem; }
  .wide-figure--split {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 2.5rem;
    align-items: end;
  }
  .tiers { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
  .tier { grid-column: span 2; }
  .tier:nth-child(1), .tier:nth-child(2) { grid-column: span 3; }
  .local__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal__bar--breathe, .signal__bar--blink { animation: none; }
  .signal__bar--breathe { opacity: 0.6; }
}
