/* ============================================================
   GRASSARA — marketing site
   Type:  Spectral (serif headlines) + Hanken Grotesk (sans body)
   ============================================================ */

:root {
  /* Palette — deep greens, earth tones, golden accent */
  --green-deepest: #0f1d14;
  --green-deep:    #16271b;
  --green:         #1f3d2b;
  --green-mid:     #2c5238;
  --earth:         #3a2f22;
  --cream:         #f4f0e6;
  --cream-dim:     #d9d3c4;

  /* Accent */
  --accent:       #7bbf4f;
  --accent-deep:  #5fa238;
  --accent-ink:   #1a3a0a;

  /* Scroll-grade variables — written live by JS */
  --grade-saturate:   0.92;
  --grade-brightness: 0.94;
  --grade-contrast:   1.0;
  --grade-hue:        0deg;
  --grade-sepia:      0.04;

  /* Color wash overlaid on the lawn: cool slate -> warm gold */
  --wash-top:    rgba(120, 134, 140, 0.30);
  --wash-bottom: rgba(80, 54, 18, 0.28);
  --wash-gold:   0;

  /* Real lawn photo — graded live by scroll engine */
  --lawn-image: url("assets/lawn.png");
  --photo-display: block;

  /* Global readability veil */
  --veil: 0.36;

  /* Subtle main-photo movement */
  --grow-scale: 1.012;

  /* Dedicated foreground grass growth */
  --foreground-grass-opacity: 0;
  --foreground-grass-y: 34px;
  --foreground-grass-scale: 1;

  /* Ambient animation control */
  --sway-play: running;

  /* Layout */
  --maxw: 1180px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--cream);
  background: var(--green-deepest);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ----------------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: rgba(232, 161, 58, 0.35);
  color: var(--cream);
}

/* ----------------------------------------------------------------
   LAWN BACKDROP

   A single fixed backdrop. The lawn should feel healthier over time
   through grading, warmth, and foreground fill — not a big zoom.
---------------------------------------------------------------- */

.lawn {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Subtle scale only. Keep this restrained so it does not feel like camera zoom. */
.lawn__grow {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: scale(var(--grow-scale, 1.012));
  transition: transform 0.12s linear;
  will-change: transform;
}

.lawn__img {
  position: absolute;
  inset: -2%;
  background-color: #25491f;
  background-image:
    radial-gradient(
      120% 90% at 70% 118%,
      rgba(255, 196, 92, 0.55),
      rgba(255, 196, 92, 0) 55%
    ),
    linear-gradient(
      180deg,
      rgba(8, 20, 10, 0.55) 0%,
      rgba(8, 20, 10, 0) 30%
    ),
    repeating-linear-gradient(
      91deg,
      rgba(255, 255, 255, 0.018) 0px,
      rgba(255, 255, 255, 0.018) 1px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 3px
    ),
    linear-gradient(
      180deg,
      #2e4a2a 0%,
      #2c5232 32%,
      #2f6135 60%,
      #3a7a3c 100%
    );
  background-size: cover, cover, auto, cover;
  background-position: center;

  filter:
    saturate(var(--grade-saturate))
    brightness(var(--grade-brightness))
    contrast(var(--grade-contrast))
    hue-rotate(var(--grade-hue))
    sepia(var(--grade-sepia));

  transition: filter 0.12s linear;
}

/* If a real photo is provided, layer it on top of the procedural field */
.lawn__img--photo {
  background-image: var(--lawn-image);
  background-size: cover;
  background-position: center bottom;
  display: var(--photo-display, none);
}

/* Organic grain */
.lawn__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Color wash: cool and flat at top -> warm golden at bottom */
.lawn__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      140% 70% at 60% 130%,
      rgba(255, 178, 74, 0),
      rgba(255, 178, 74, 0)
    ),
    linear-gradient(
      180deg,
      var(--wash-top) 0%,
      rgba(0, 0, 0, 0) 40%,
      var(--wash-bottom) 100%
    );
}

/* Golden-hour glow that strengthens near final CTA */
.lawn__gold {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 65% 125%,
    rgba(255, 184, 84, 0.7),
    rgba(255, 184, 84, 0) 60%
  );
  opacity: var(--wash-gold);
  mix-blend-mode: soft-light;
}

/* Dedicated foreground grass growth layer.
   This gives the feeling of grass filling in without zooming the whole photo. */
.lawn__foreground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9vh;
  height: 44vh;
  background-image: url("assets/foreground-grass.png");
  background-size: cover;
  background-position: bottom center;
  opacity: var(--foreground-grass-opacity, 0);
  transform:
    translateY(var(--foreground-grass-y, 34px))
    scale(var(--foreground-grass-scale, 1));
  transform-origin: 50% 100%;
  will-change: opacity, transform;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.04);
}

/* Optional subtle breeze only on foreground grass */
.lawn__foreground::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  opacity: 0.34;
  animation: foregroundSway 9s ease-in-out infinite;
  animation-play-state: var(--sway-play, running);
}

@keyframes foregroundSway {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-0.18%, 0, 0) scale(1.004);
  }
}

/* Uniform darkening so text always has a contrast floor */
.lawn__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 9, calc(var(--veil) * 1.05)) 0%,
    rgba(6, 14, 9, calc(var(--veil) * 0.7)) 34%,
    rgba(6, 14, 9, calc(var(--veil) * 0.7)) 66%,
    rgba(6, 14, 9, calc(var(--veil) * 1.1)) 100%
  );
}



.nav a {
  color: rgba(244, 240, 230, 0.82);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--cream);
}

.nav__cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
}

/* ----------------------------------------------------------------
   LAYOUT SCAFFOLD
---------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: clamp(96px, 14vh, 180px) 24px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Readability vignette behind each section's copy */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section--scrim::before {
  background: radial-gradient(
    115% 82% at 50% 50%,
    rgba(8, 18, 11, 0.74) 0%,
    rgba(8, 18, 11, 0.5) 52%,
    rgba(8, 18, 11, 0.2) 100%
  );
}

/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */

.eyebrow {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.8;
}

h1,
h2,
h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(4, 12, 7, 0.4),
    0 2px 22px rgba(4, 12, 7, 0.34);
}

.display {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 300;
}

.hero__copy .display {
  text-shadow:
    0 1px 2px rgba(4, 12, 7, 0.6),
    0 2px 8px rgba(4, 12, 7, 0.55),
    0 4px 18px rgba(4, 12, 7, 0.55),
    0 8px 44px rgba(4, 12, 7, 0.5);
}

.hero__copy .eyebrow {
  text-shadow:
    0 1px 2px rgba(4, 12, 7, 0.6),
    0 2px 10px rgba(4, 12, 7, 0.55),
    0 4px 22px rgba(4, 12, 7, 0.5);
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 300;
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
  max-width: 36ch;
  text-wrap: pretty;
  text-shadow: 0 1px 16px rgba(4, 12, 7, 0.45);
}

.muted {
  color: var(--cream-dim);
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */

.btn {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 17px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #4a2f10;
}

.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(244, 240, 230, 0.08);
  color: var(--cream);
  border: 1px solid rgba(244, 240, 230, 0.28);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(244, 240, 230, 0.16);
  transform: translateY(-2px);
}

.btn .ico {
  width: 18px;
  height: 18px;
  display: block;
}

/* ----------------------------------------------------------------
   FROSTED PANELS / CARDS
---------------------------------------------------------------- */

.panel {
  background: linear-gradient(
    165deg,
    rgba(18, 32, 22, 0.62),
    rgba(12, 22, 15, 0.5)
  );
  border: 1px solid rgba(244, 240, 230, 0.12);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-radius: 20px;
}

/* ----------------------------------------------------------------
   HERO / CTA GROUPS
---------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
}

.hero__content {
  max-width: 760px;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cta-note {
  margin-top: 16px;
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.98rem;
  max-width: 46ch;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(244, 240, 230, 0.1);
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(244, 240, 230, 0.18);
  backdrop-filter: blur(10px);
}

.store-badge__small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.72;
  line-height: 1;
}

.store-badge__main {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
}

/* ----------------------------------------------------------------
   WAITLIST / EMAIL CAPTURE
---------------------------------------------------------------- */

.waitlist-form {
  display: flex;
  gap: 12px;
  width: min(100%, 560px);
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(244, 240, 230, 0.1);
  border: 1px solid rgba(244, 240, 230, 0.18);
  backdrop-filter: blur(12px);
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  padding: 0 14px;
}

.waitlist-form input::placeholder {
  color: rgba(244, 240, 230, 0.52);
}

.waitlist-form .btn {
  padding: 13px 22px;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   MARKETING SECTIONS
---------------------------------------------------------------- */

.section__head {
  max-width: 720px;
  margin-bottom: 42px;
}



/* ----------------------------------------------------------------
   ANIMATION — REVEAL ON SCROLL
---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   RESPONSIVE / MOBILE
---------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
    --veil: 0.42;
  }

  .section {
    padding: 88px 20px;
  }

  .hero {
    min-height: 96svh;
    padding-top: calc(var(--header-h) + 28px);
  }

  .display {
    font-size: clamp(2.4rem, 11.5vw, 3.7rem);
  }

  .h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .lede {
    max-width: 100%;
  }

  .cta-row {
    align-items: stretch;
  }

  .btn,
  .store-badge {
    width: 100%;
    justify-content: center;
  }

  .waitlist-form {
    border-radius: 24px;
    flex-direction: column;
    padding: 12px;
  }

  .waitlist-form input {
    min-height: 48px;
    padding: 0 12px;
  }

  .waitlist-form .btn {
    width: 100%;
  }

  /* Mobile performance fallback */
  .lawn {
    position: fixed;
  }

  .lawn__img {
    animation: none;
  }

  .lawn__grain {
    opacity: 0.32;
  }

  .lawn__foreground {
    height: 34vh;
    bottom: -7vh;
  }
}

/* ----------------------------------------------------------------
   REDUCED MOTION
---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lawn__img,
  .lawn__foreground::after {
    transition: none;
    animation: none;
  }

  .lawn__grow,
  .lawn__foreground {
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* =====================================================================
   Early-access modal
   ===================================================================== */
.ea-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 11, 0.66);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  animation: ea-fade 0.22s ease both;
}

.ea-modal {
  position: relative;
  width: min(380px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 61, 43, 0.96), rgba(15, 29, 20, 0.97));
  border: 1px solid rgba(244, 240, 230, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(244, 240, 230, 0.06) inset;
  animation: ea-rise 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ea-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--cream-dim);
  background: rgba(244, 240, 230, 0.08);
  transition: background 0.18s ease, color 0.18s ease;
}

.ea-close:hover {
  background: rgba(244, 240, 230, 0.16);
  color: var(--cream);
}

.ea-form,
.ea-done {
  display: flex;
  flex-direction: column;
}

.ea-title {
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  line-height: 1.08;
  margin: 4px 0 0;
  color: var(--cream);
}

.ea-sub {
  margin: 8px 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--cream-dim);
  max-width: 34ch;
}

.ea-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  margin-bottom: 8px;
}

.ea-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 1.02rem;
  color: var(--cream);
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid rgba(244, 240, 230, 0.22);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ea-input::placeholder { color: rgba(217, 211, 196, 0.5); }

.ea-input:focus {
  border-color: var(--accent);
  background: rgba(244, 240, 230, 0.1);
  box-shadow: 0 0 0 3px rgba(226, 97, 60, 0.25);
}

.ea-input--err {
  border-color: #e2613c;
  box-shadow: 0 0 0 3px rgba(226, 97, 60, 0.22);
}

.ea-err {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: #f3a48b;
}

.ea-submit {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}

.ea-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.ea-fine {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(217, 211, 196, 0.62);
}

/* success state */
.ea-done { align-items: center; text-align: center; }

.ea-done .ea-sub { margin-bottom: 26px; }

.ea-check {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(226, 97, 60, 0.4);
  margin-bottom: 6px;
  animation: ea-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.4) both;
}

.ea-embed {
  margin-top: 2px;
  background: var(--cream);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.ea-embed iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

@keyframes ea-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ea-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes ea-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ea-overlay, .ea-modal, .ea-check { animation: none; }
}