/* Homepage — hero, trust strip, how-it-works, crop-type grid, and the closing
   CTA band. Loaded only by pages/home through :extra_head. */

.r-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 28px 54px;
}

.r-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.r-hero__lede {
  max-width: 640px;
  min-width: 0;
}

.r-hero__h1 {
  margin: 0 0 22px;
  font-family: var(--r-display);
  font-size: var(--r-fs-display);
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 0.96;
}

.r-hero__h1 em {
  color: var(--r-green);
  font-style: normal;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
}

.r-hero__sub {
  max-width: 540px;
  margin: 0;
  color: var(--r-ink-2);
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.55;
}

/* Delivery ZIP — a hero-scale control that opens the shared ZIP modal. */
.r-hero__zipbox {
  display: flex;
  width: 100%;
  min-height: 78px;
  max-width: 460px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--r-line-strong);
  border-radius: var(--r-radius-lg);
  background: var(--r-surface);
  box-shadow: var(--r-shadow);
  color: var(--r-ink);
  font-family: var(--r-body);
  text-align: left;
  cursor: pointer;
  align-items: center;
  gap: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.r-hero__zipbox:hover,
.r-hero__zipbox:focus-visible {
  border-color: var(--r-green);
  box-shadow: var(--r-shadow-lg);
  transform: translateY(-1px);
}

.r-hero__zip-icon {
  flex-shrink: 0;
  color: var(--r-green);
}

.r-hero__zip-field {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.r-hero__zip-field strong {
  color: var(--r-green);
  font-size: var(--r-fs-price);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.r-hero__zip-hint {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--r-muted);
}

.r-hero__zipnote {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--r-muted);
  font-size: var(--r-fs-sm);
}

.r-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.r-hero__visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-radius-xl);
  background: var(--r-green);
  text-decoration: none;
  aspect-ratio: 4 / 5;
}

.r-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r-hero__visual-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(20, 19, 15, 0.72) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.r-hero__visual-stat {
  color: #fff;
  font-family: var(--r-display);
  font-size: var(--r-fs-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.r-hero__visual-stat-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--r-fs-body);
  font-weight: 600;
}

.r-trust {
  width: calc(100% - 56px);
  max-width: 1264px;
  margin: 0 auto;
  padding: 30px 34px;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  background: var(--r-surface);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.r-trust__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.r-trust__num {
  font-family: var(--r-display);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}

.r-trust__lbl {
  color: var(--r-ink-2);
  font-size: var(--r-fs-body);
}

.r-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: how;
}

.r-how__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-increment: how;
}

.r-how__num {
  color: var(--r-green);
  font-family: var(--r-mono);
  font-size: var(--r-fs-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
}

.r-how__num::before {
  content: "STEP 0" counter(how);
}

.r-how__title {
  font-family: var(--r-display);
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.r-how__body {
  color: var(--r-ink-2);
  font-size: var(--r-fs-body);
  line-height: 1.55;
}

.r-about-band {
  width: calc(100% - 56px);
  max-width: 1264px;
  margin: 0 auto 88px;
  padding: 38px;
  border: 1px solid rgba(45, 90, 40, 0.22);
  border-left: 5px solid var(--r-green);
  border-radius: var(--r-radius-lg);
  background: #f7faf6;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.r-about-band h2 {
  margin: 8px 0 0;
  font-family: var(--r-display);
  font-size: var(--r-fs-section);
  font-weight: 650;
  line-height: 1.08;
}

.r-about-band p {
  margin: 0;
  color: var(--r-ink-2);
  font-size: var(--r-fs-body);
  line-height: 1.6;
}

.r-section-wrap--tight {
  padding: 50px 28px;
}

/* Five crop-type cards (grasses, legumes, brassicas, broadleaves, mixes). The
   column counts below are chosen so the row never ends in a single orphaned
   card: 5 → 3+2 → 2+2+1 (last card spans, see the 700px breakpoint) → 1. */
.r-usecases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1240px) {
  .r-usecases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.r-usecase {
  display: flex;
  padding: 24px;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-lg);
  background: var(--r-surface);
  color: var(--r-ink);
  font-family: var(--r-body);
  text-align: left;
  text-decoration: none;
  flex-direction: column;
  gap: 8px;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.r-usecase:hover,
.r-usecase:focus-visible {
  border-color: var(--r-green);
  box-shadow: var(--r-shadow);
  transform: translateY(-2px);
}

.r-usecase__num {
  color: var(--r-muted);
  font-family: var(--r-mono);
  font-size: var(--r-fs-eyebrow);
  letter-spacing: 0.1em;
}

.r-usecase__name {
  font-family: var(--r-display);
  font-size: var(--r-fs-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.r-usecase__blurb {
  color: var(--r-ink-2);
  font-size: var(--r-fs-sm);
  line-height: 1.5;
}

.r-usecase__species {
  display: flex;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 4px;
}

.r-home-cta {
  width: calc(100% - 56px);
  max-width: 1264px;
  margin: 24px auto 0;
  padding: 44px 48px;
  border-radius: var(--r-radius-xl);
  background: var(--r-green);
}

.r-home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.r-home-cta__title {
  margin: 10px 0 0;
  color: #fff;
  font-family: var(--r-display);
  font-size: var(--r-fs-section);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.r-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.r-home-cta__btn {
  background: #fff;
  color: var(--r-green);
  font-weight: 700;
}

.r-home-cta__btn:hover {
  background: var(--r-green-tint);
}

.r-home-cta__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.r-home-cta__btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .r-hero {
    padding-top: 48px;
  }

  .r-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .r-hero__lede {
    max-width: none;
  }

  .r-hero__visual {
    aspect-ratio: 16 / 10;
  }

  .r-about-band {
    grid-template-columns: 1fr;
  }

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

  /* Odd count — let the last card fill the row instead of sitting half-width.
     Lay its contents out horizontally too, so the extra width is used rather
     than leaving a block of dead space to the right of the text. */
  .r-usecases > :last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
  }

  .r-usecases > :last-child .r-usecase__blurb {
    flex: 1 1 220px;
  }

  .r-usecases > :last-child .r-usecase__species {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .r-how {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .r-hero {
    padding: 34px 16px 40px;
  }

  .r-hero__zipbox,
  .r-hero__zipnote {
    max-width: none;
  }

  .r-hero__ctas {
    flex-direction: column;
  }

  .r-hero__ctas .r-btn {
    width: 100%;
  }

  .r-trust,
  .r-about-band,
  .r-home-cta {
    width: calc(100% - 32px);
  }

  .r-trust {
    padding: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r-about-band {
    margin-bottom: 64px;
    padding: 26px;
  }

  .r-home-cta {
    padding: 28px 24px;
  }

  .r-home-cta__actions {
    width: 100%;
  }

  .r-home-cta__actions .r-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .r-usecases {
    grid-template-columns: 1fr;
  }

  /* Single column — the last card is no longer wider than its siblings, so
     drop the horizontal treatment and let it stack like the rest. */
  .r-usecases > :last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}
