/* grove's website, in grove's own look. earthy palette, warm serif headings, a
   humanist sans for the rest, one gold accent. sentence case everywhere, calm
   spacing, never loud. the same tokens the app uses, so the brand stays one. */

:root {
  --pine: #13241c;
  --forest: #1c3527;
  --moss: #3f6b47;
  --fern: #5c9166;
  --sage: #9cbf9e;
  --mist: #cfe0cf;
  --cream: #f1ede0;
  --paper: #fbf9f3;
  --ink: #1f2c23;
  --ink-soft: #56655b;
  --gold: #d8a63f;
  --gold-deep: #9c6f1f;
  --bark: #6b5640;
  --clay: #bf6f4a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --line: rgba(31, 44, 35, 0.1);
  --line-soft: rgba(31, 44, 35, 0.06);
  --shadow: 0 24px 60px -28px rgba(28, 53, 39, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(28, 53, 39, 0.3);
  --shadow-lift: 0 30px 70px -32px rgba(28, 53, 39, 0.45);
  --settle: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-lg: 18px;
  --r-md: 12px;

  /* a modular type scale, a touch more editorial than the old one */
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 4.6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }
h1 { font-size: var(--step-4); letter-spacing: -0.015em; margin: 0 0 0.4em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; margin: 0 0 0.5em; }
h3 { font-size: var(--step-1); margin: 0 0 0.4em; }
p { margin: 0 0 1rem; }
a { color: var(--moss); text-decoration: none; transition: color 0.2s var(--settle); }
a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 44rem; }

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* a small section eyebrow, set in mono, the honest infrastructure note. a tiny sprout
   sits centered above it, in place of the old one-sided rule. */
.eyebrow {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--gold-deep); text-transform: lowercase; margin: 0 0 0.9rem;
}
/* masked so the sprout inherits the eyebrow's gold via currentColor (gold-deep here,
   --gold in the feature section). */
.eyebrow::before {
  content: ""; width: 1.05rem; height: 0.95rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-7'/%3E%3Cpath d='M12 14C8 14 6 11 6 7c4 0 6 3 6 7Z'/%3E%3Cpath d='M12 13c4 0 6-3 6-7-4 0-6 3-6 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22' viewBox='0 0 24 22' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-7'/%3E%3Cpath d='M12 14C8 14 6 11 6 7c4 0 6 3 6 7Z'/%3E%3Cpath d='M12 13c4 0 6-3 6-7-4 0-6 3-6 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.center .eyebrow { align-items: center; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; gap: 1rem;
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif);
  font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.brand .leaf { width: 1.15rem; height: 1.15rem; color: var(--gold);
  transition: transform 0.6s var(--settle); transform-origin: 50% 90%; }
.brand:hover .leaf { transform: rotate(-6deg); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.98rem; }
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  padding: 0.72rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--settle), background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--forest); color: var(--paper); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--moss); color: var(--paper); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--pine); box-shadow: var(--shadow-soft); }
.btn-gold:hover { background: #e6b758; color: var(--pine); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }
.btn .arrow { transition: transform 0.25s var(--settle); }
.btn:hover .arrow { transform: translateX(3px); }

/* sections */
section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.feature { background: var(--forest); color: var(--mist); }
.feature h2, .feature h3 { color: var(--paper); }
.feature .muted { color: var(--sage); }
.feature .eyebrow { color: var(--gold); }
.alt { background: var(--cream); }

/* a soft hairline divider between light sections, a soil line */
.alt + section:not(.feature):not(.alt)::before,
section + .alt::before { content: ""; }

/* hero. layered scenery: a soft canopy glow, a horizon, and a botanical sprig.
   the headline sits in front of it all, calm and editorial. */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(216, 166, 63, 0.12), transparent 55%),
    radial-gradient(90% 70% at 85% 20%, rgba(92, 145, 102, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.hero-inner { position: relative; z-index: 3; }
.hero h1 { margin-bottom: 0.5em; }
.hero h1 .grow-word { color: var(--moss); position: relative; white-space: nowrap; }
.hero h1 .grow-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.42em;
  background: rgba(216, 166, 63, 0.28); border-radius: 999px; z-index: -1;
  transform: scaleX(0); transform-origin: left center;
  animation: underglow 1.1s var(--settle) 0.5s forwards;
}
.hero .lede { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* the trust line under the hero ctas */
.hero-trust {
  margin-top: 1.6rem; font-size: 0.92rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-trust .dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--fern); }

/* the horizon line and faint soil at the foot of the hero */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ambient botanical art behind the hero, drawn in line, very faint */
.hero-art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  color: var(--moss); opacity: 0.5;
}
.hero-art svg { position: absolute; }
.hero-art .sprig-left { left: -2rem; bottom: -1rem; width: 16rem; opacity: 0.28; transform-origin: bottom left; }
.hero-art .sprig-right { right: -2.5rem; top: 2rem; width: 14rem; opacity: 0.22; transform: scaleX(-1); transform-origin: bottom right; }
.hero-art .canopy { left: 50%; top: -4rem; width: 38rem; transform: translateX(-50%); opacity: 0.12; color: var(--fern); }

/* slow ambient sway, life not animation */
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2deg); } }
@keyframes sway-r { 0%, 100% { transform: scaleX(-1) rotate(0deg); } 50% { transform: scaleX(-1) rotate(2deg); } }
.hero-art .sprig-left { animation: sway 11s ease-in-out infinite; }
.hero-art .sprig-right { animation: sway-r 13s ease-in-out infinite; }
@keyframes underglow { to { transform: scaleX(1); } }

/* cards and grids */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--settle), box-shadow 0.3s var(--settle), border-color 0.3s var(--settle);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(92, 145, 102, 0.4); }
.feature .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: var(--mist); }
.feature .card h3 { color: var(--paper); }
.feature .card:hover { border-color: rgba(156, 191, 158, 0.4); box-shadow: 0 30px 70px -32px rgba(0,0,0,0.5); }

/* a small leaf marker on feature cards */
.card .marker {
  display: inline-flex; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 1rem;
  background: rgba(92, 145, 102, 0.12); color: var(--moss);
}
.card .marker svg { width: 1.25rem; height: 1.25rem; }
.feature .card .marker { background: rgba(216, 166, 63, 0.16); color: var(--gold); }

/* the control modes, small lowercase chips (microcopy keeps its lowercase) */
.modes { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.6rem 0 2.4rem; }
.mode-chip {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(156, 191, 158, 0.35); color: var(--sage);
  background: rgba(255,255,255,0.03);
}

/* the agents row */
.logos { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.6rem; }
.logo-chip {
  font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft);
  padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); transition: border-color 0.25s var(--settle), color 0.25s var(--settle), transform 0.25s var(--settle);
}
.logo-chip:hover { border-color: var(--moss); color: var(--ink); transform: translateY(-2px); }

/* pricing */
.price { font-family: var(--serif); font-size: 3.2rem; color: var(--ink); line-height: 1; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; }
.checklist li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.62rem;
  width: 0.62rem; height: 0.62rem; border-radius: 0 50% 50% 50%;
  background: var(--fern); transform: rotate(45deg);
}

.pill { display: inline-block; font-size: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(216, 166, 63, 0.16); color: var(--gold-deep); font-weight: 500; letter-spacing: 0.01em; }

.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }

/* footer */
footer { padding: 3.5rem 0 4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.92rem;
  background: var(--paper); }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-brand .leaf { width: 0.95rem; height: 0.95rem; color: var(--gold); }
.foot-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* a calm centered card page (welcome, account) */
.standalone { min-height: 100vh; display: grid; place-items: center; padding: 2rem;
  background:
    radial-gradient(100% 80% at 50% -10%, rgba(216, 166, 63, 0.1), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--cream)); }
.standalone .card { max-width: 30rem; text-align: center; }

/* scroll-reveal: things grow and settle as they enter view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--settle), transform 0.8s var(--settle); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .hero-art .sprig-left, .hero-art .sprig-right { display: none; }
  .hero-art .canopy { width: 26rem; opacity: 0.08; }
}

/* honor reduced motion: keep the page calm and still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .grow-word::after { transform: scaleX(1); }
}
