:root {
  --ink: #0b100c;
  --ink-soft: #101711;
  --cream: #f5f3ec;
  --sage: #7cab76;
  --sage-muted: #b9c6b0;
  --gold: #c9a227;
  --line: rgb(245 243 236 / .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
/* Top nav styles live in src/components/GroveNav.astro (self-contained so
   the same bar renders on legacy pages that do not load this file). */
@media (max-width: 429px) {
  .btn.small { padding: .5rem 1rem; font-size: .85rem; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: .9rem 1.9rem;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s;
}
.btn:hover { background: #fffdf6; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn.small { padding: .55rem 1.35rem; font-size: .9rem; }
/* Ghost variant: the secondary button in dual-CTA pairs. Same geometry as
   .btn so pairs align; hairline cream border instead of a filled surface. */
.btn.ghost { background: transparent; color: var(--cream); border-color: rgb(245 243 236 / .45); }
.btn.ghost:hover { background: rgb(245 243 236 / .08); }

.link {
  display: inline-block;
  color: var(--cream);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgb(201 162 39 / .55);
  padding: .6rem 0;
}
.link:hover { text-decoration-color: var(--gold); }
.link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Scrubbed hero (home) ---------- */
/* svh: on iOS the classic vh unit tracks the largest viewport, so the hero
   scrub length jumped when Safari's URL bar collapsed. svh == vh on desktop. */
.scrub-wrap { position: relative; height: 130svh; }
.scrub-stage {
  position: sticky; top: 0;
  height: 100dvh; width: 100%;
  overflow: hidden;
}
.scrub-stage canvas {
  position: absolute; inset: -3%;
  width: 106%; height: 106%;
  display: block;
  will-change: transform;
}
.scrub-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(11 16 12 / .78) 0%, rgb(11 16 12 / .34) 44%, rgb(11 16 12 / 0) 70%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .scrub-stage::after {
    background: linear-gradient(180deg, rgb(11 16 12 / .25) 0%, rgb(11 16 12 / .68) 55%, rgb(11 16 12 / .82) 100%);
  }
}
.hero-copy {
  position: absolute; z-index: 2;
  left: clamp(1.25rem, 8vw, 9.5rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: 38rem;
  padding-right: 1.25rem;
  will-change: transform;
}
@media (max-width: 767px) {
  .hero-copy { top: auto; bottom: 10dvh; transform: none; }
}
.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.scrub-wrap.in .hero-copy > :nth-child(1) { transition-delay: .05s; }
.scrub-wrap.in .hero-copy > :nth-child(2) { transition-delay: .22s; }
.scrub-wrap.in .hero-copy > :nth-child(3) { transition-delay: .40s; }
.scrub-wrap.in .hero-copy > :nth-child(4) { transition-delay: .58s; }
.scrub-wrap.in .hero-copy > * { opacity: 1; transform: none; }
.eyebrow {
  font-weight: 600;
  font-size: clamp(.8rem, 1.4vw, 1.05rem);
  letter-spacing: .55em;
}
.wordmark {
  font-weight: 300;
  font-size: clamp(3.1rem, 8.5vw, 6.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #e4ecdd;
  margin-top: .5rem;
}
.tagline {
  font-weight: 350;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--sage-muted);
  margin-top: .9rem;
  max-width: 24ch;
}
/* Hero as headline, not wordmark: the largest line carries the category claim.
   The brand name lives in the eyebrow; "the grove" is introduced downpage. */
.hero-headline {
  font-weight: 320;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: #e4ecdd;
  margin-top: .6rem;
  text-wrap: balance;
}
.hero-sub {
  font-weight: 350;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.55;
  color: var(--cream);
  opacity: .88;
  margin-top: 1rem;
  max-width: 56ch;
}
.hero-cta { margin-top: 1.8rem; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }

/* ---------- Mini hero (subpages) ---------- */
.mini-hero {
  position: relative;
  height: clamp(18rem, 46dvh, 26rem);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.mini-hero canvas, .mini-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mini-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(11 16 12 / .55) 0%, rgb(11 16 12 / .8) 100%);
}
.mini-hero h1 {
  position: relative; z-index: 2;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  padding: 0 clamp(1.25rem, 6vw, 6rem) 2.2rem;
}

/* ---------- Shared section chrome (tightened) ---------- */
section { position: relative; }
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.25rem, 6vw, 6rem);
}
h2 {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  max-width: 22ch;
}
h2 em, h1 em { font-style: italic; color: var(--sage); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Editorial statement ---------- */
.statement h2 {
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.12;
  max-width: 18ch;
}
.aside {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sage-muted);
  max-width: 46ch;
}
.statement .aside { margin-left: clamp(0rem, 14vw, 14rem); }
.statement .actions {
  margin-top: 1.6rem;
  margin-left: clamp(0rem, 14vw, 14rem);
  display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap;
}
.aside.flush, .actions.flush { margin-left: 0; }
.actions.flush { margin-top: 1.6rem; display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }

/* ---------- Staircase rows ---------- */
.stairs { border-top: 1px solid var(--line); }
.stairs .row { padding: clamp(1.6rem, 3.5vh, 2.4rem) 0; }
.stairs .row:nth-child(2) { margin-left: clamp(0rem, 9vw, 9rem); }
.stairs .row:nth-child(3) { margin-left: clamp(0rem, 18vw, 18rem); }
.stairs h3 { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.stairs h3 em { font-style: italic; color: var(--sage); }
.stairs p {
  margin-top: .5rem;
  font-size: 1rem; line-height: 1.55;
  color: var(--sage-muted);
  max-width: 46ch;
}
@media (max-width: 767px) {
  .stairs .row:nth-child(2), .stairs .row:nth-child(3) { margin-left: 0; }
}

/* ---------- Roster ---------- */
.roster .strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.member {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgb(124 171 118 / .10), rgb(245 243 236 / .03));
  box-shadow: inset 0 1px 0 rgb(245 243 236 / .10);
  padding: 1.4rem;
  min-height: 10rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.member h3 { font-weight: 400; font-size: 1.12rem; }
.member p { font-size: .95rem; line-height: 1.5; color: var(--sage-muted); }
/* The five roles are the product's whole pitch, so on a phone they have to
   read at a glance rather than be swiped for. The old rule turned this into a
   70vw horizontal scroll strip below 1024px, which parked three of the five
   roles off-screen behind a gesture nothing signposted. Each card is a heading
   plus one short line, so stacking costs almost no height: two columns on
   tablets, one on phones, with min-height dropped so a card is only as tall as
   its own content. */
@media (max-width: 1023px) {
  .roster .strip {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }
  .member { min-height: 0; padding: 1.15rem; gap: .35rem; }
}
@media (max-width: 599px) {
  .roster .strip { grid-template-columns: 1fr; }
  .member h3 { font-size: 1.05rem; }
}

/* ---------- CTA band ---------- */
.band { border-top: 1px solid var(--line); background: var(--ink-soft); }
.band .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}
.band p { font-weight: 300; font-size: clamp(1.3rem, 2.6vw, 2rem); max-width: 24ch; }
.band .band-cta { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }

/* ---------- Who it's for (split with real content right) ---------- */
.fit { border-top: 1px solid var(--line); }
.fit .wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 767px) { .fit .wrap { grid-template-columns: 1fr; } }

/* ---------- A normal week (compact info grid, no cards) ---------- */
.week { border-top: 1px solid var(--line); }
.week .week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
}
.week .week-grid h3 { font-weight: 400; font-size: 1.1rem; color: var(--cream); }
.week .week-grid p { margin-top: .4rem; font-size: .95rem; line-height: 1.5; color: var(--sage-muted); }
@media (max-width: 1023px) { .week .week-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .week .week-grid { grid-template-columns: 1fr; } }

/* ---------- Quiet divider ---------- */
.divider {
  min-height: 52dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.divider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.divider::after { content: ""; position: absolute; inset: 0; background: rgb(11 16 12 / .52); }
.divider p {
  position: relative; z-index: 2;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  text-align: center;
  max-width: 28ch;
  padding: 2rem 1.25rem;
}

/* ---------- Onboarding + pricing ---------- */
.onboard .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.onboard .steps-list > div { margin-top: 1.6rem; }
.onboard .steps-list h3 { font-weight: 400; font-size: 1.3rem; }
.onboard .steps-list p {
  margin-top: .4rem;
  font-size: 1rem; line-height: 1.55;
  color: var(--sage-muted);
  max-width: 46ch;
}
.price-panel {
  border-radius: 16px;
  border: 1px solid rgb(201 162 39 / .35);
  background: linear-gradient(150deg, rgb(201 162 39 / .13), rgb(245 243 236 / .03));
  box-shadow: inset 0 1px 0 rgb(245 243 236 / .10);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
}
.price-panel .figure { font-weight: 300; font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.1; }
.price-panel .label { color: var(--sage-muted); font-size: 1rem; margin-top: .25rem; }
.price-panel .figure + .label + .figure { margin-top: 1.4rem; }
.price-panel .note {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid rgb(245 243 236 / .14);
  color: var(--sage-muted); font-size: .95rem; line-height: 1.5;
}
.price-panel .btn { margin-top: 1.4rem; }
@media (max-width: 767px) {
  .onboard .wrap { grid-template-columns: 1fr; }
}

/* ---------- Included list (pricing page) ---------- */
.included h3 { font-weight: 400; font-size: 1.3rem; }
.included ul { list-style: none; margin-top: 1rem; }
.included li {
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  color: var(--sage-muted);
  line-height: 1.5;
  max-width: 52ch;
}
.included li b { color: var(--cream); font-weight: 400; }

/* ---------- Proof stat grid (editorial numerals, no tiles) ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.5rem;
}
.stat .figure {
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--cream);
}
.stat .what { margin-top: .5rem; font-size: 1.02rem; color: var(--cream); }
.stat p { margin-top: .35rem; font-size: .95rem; line-height: 1.5; color: var(--sage-muted); max-width: 30ch; }
@media (max-width: 1023px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .proof-grid { grid-template-columns: 1fr; } }

.proof-feature { border-top: 1px solid var(--line); }
.proof-feature .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.proof-feature .figure {
  font-weight: 300;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1;
  color: var(--gold);
  white-space: nowrap;
}
.proof-feature .caption { font-size: 1.05rem; line-height: 1.6; color: var(--sage-muted); max-width: 46ch; }
.proof-feature .caption b { color: var(--cream); font-weight: 400; }
@media (max-width: 767px) { .proof-feature .wrap { grid-template-columns: 1fr; } }

.fineprint {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--sage-muted);
  max-width: 62ch;
}

/* ---------- FAQ ---------- */
.faq .qa { max-width: 56rem; margin-top: 1.8rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.1rem;
  cursor: pointer;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem; font-weight: 300;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.faq details p {
  padding-bottom: 1.2rem;
  color: var(--sage-muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* ---------- Closing ---------- */
.closing { background: var(--ink-soft); border-top: 1px solid var(--line); }
.closing .wrap {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
@media (max-width: 767px) { .closing .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem clamp(1.25rem, 6vw, 6rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--sage-muted);
}
footer b { font-weight: 600; letter-spacing: .35em; color: var(--cream); }
footer nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; justify-content: center; }
footer nav a { color: var(--sage-muted); text-decoration: none; padding: .6rem 0; }
footer nav a:hover { color: var(--cream); }

/* ---------- Sitemap footer (GroveFooter.astro) ---------- */
footer.sitefoot { display: block; padding-top: 2.8rem; padding-bottom: 1.6rem; }
.sitefoot .foot-cols { display: flex; flex-wrap: wrap; gap: 1.6rem 3.5rem; justify-content: space-between; margin-top: 1.8rem; }
.sitefoot .foot-group { min-width: 10.5rem; }
.sitefoot .foot-group h4 { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); opacity: .6; margin: 0 0 .35rem; }
.sitefoot .foot-group nav { flex-direction: column; gap: 0; justify-content: flex-start; align-items: flex-start; }
.sitefoot nav a { padding: .75rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.sitefoot .foot-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sitefoot .foot-legal nav { justify-content: flex-start; }

/* ---------- Touch refinements (no effect on desktop pointers) ---------- */
a, button { -webkit-tap-highlight-color: transparent; }

@media (hover: none) {
  /* A tap must not leave an element stuck in its hover treatment. */
  .btn:hover { transform: none; background: var(--cream); }
  .btn.ghost:hover { background: transparent; }
  .link:hover { text-decoration-color: rgb(201 162 39 / .55); }
  footer nav a:hover { color: var(--sage-muted); }
}

@media (max-width: 767px) {
  /* Notched-phone safe areas; viewport-fit=cover comes from GroveHead. */
  footer {
    padding-left: max(clamp(1.25rem, 6vw, 6rem), env(safe-area-inset-left));
    padding-right: max(clamp(1.25rem, 6vw, 6rem), env(safe-area-inset-right));
  }
  footer.sitefoot { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scrub-wrap { height: auto; }
  .scrub-stage { position: relative; height: 100dvh; }
  .hero-copy > *, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .topnav { transform: none; transition: none; }
  .faq summary::after { transition: none; }
}
