/* ─────────── Shared components: FAQ, closing CTA card, footer ───────────
   Linked last on every page so these win over each page's inline styles.
   Selectors carry an element type (section.faq, section.g-cta, footer.g-foot)
   for the same reason. Fonts and colors come from each page's tokens. */

/* ─────────── Type: Instrument Sans for headings, Geist for body ───────────
   Every page reads headings from --ff-serif / --ff-display. :root:root outranks
   each page's own :root block wherever it sits. Accent words inside headings
   stay upright. */
:root:root { --ff-serif: "Instrument Sans", "Geist", system-ui, sans-serif; --ff-display: "Instrument Sans", "Geist", system-ui, sans-serif; }
:root:root :is(h1, h2, h3, h4, h5, h6) em { font-style: normal; }

/* Heading font, served from /fonts and preloaded on every page */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Announcement ribbon above the nav, on every page */
.g-ribbon{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding:9px 20px;background:var(--grove-95);color:rgba(255,255,255,.88);font:500 13px/1.3 var(--ff-sans);position:relative;z-index:51}
.g-ribbon__badge{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:6px;background:rgba(174,214,185,.14);box-shadow:inset 0 0 0 1px rgba(174,214,185,.32);color:var(--grove-2);font:600 12px/1 var(--ff-sans);letter-spacing:.01em}
.g-ribbon__link{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.g-ribbon__link strong{color:#fff;font-weight:600}
.g-ribbon__link i{font-size:12px;color:var(--grove-2);transition:transform 180ms cubic-bezier(.16,1,.3,1)}
.g-ribbon__link:hover{color:#fff}
.g-ribbon__link:hover span{text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:3px}
.g-ribbon__link:hover i{transform:translateX(2px)}
.g-ribbon__link:focus-visible{outline:2px solid var(--grove-2);outline-offset:3px;border-radius:4px}
.g-ribbon__sep{width:1px;height:14px;background:rgba(255,255,255,.22)}
@media(max-width:780px){.g-ribbon{font-size:12.5px;padding:9px 16px}.g-ribbon__badge,.g-ribbon__sep{display:none}.g-ribbon__link:last-child{display:none}}

/* Header: same place on every page, logo and buttons on the sand column's borders; no shrink on scroll so nothing below it moves */
@media (min-width: 901px) {
  .g-nav .g-nav__inner, .g-nav[data-scrolled="true"] .g-nav__inner { max-width: min(1280px, calc(100% - 80px)); padding: 18px 0; }
}
.g-nav .g-nav__inner { align-items: center; }
.g-nav[data-scrolled="true"] .g-nav__inner { padding-top: 18px; padding-bottom: 18px; }

/* Product menu: six products with their app icons, a featured AI Prep card, pricing link */
.g-nav .g-nav__mega { left: 0; right: 0; top: calc(100% + 10px); width: min(920px, calc(100vw - 48px)); margin: 0 auto; padding: 0; border-radius: 16px; border: 1px solid rgba(20,20,10,.1); background: #FBFAF7; box-shadow: 0 30px 70px -24px rgba(20,20,10,.35), 0 8px 20px -10px rgba(20,20,10,.12); overflow: hidden; }
.gm { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px; padding: 10px; }
.gm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.gm__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .2s; }
.gm__item:hover, .gm__item:focus-visible { background: #EEEBE5; outline: none; }
.gm__ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12); }
.gm__ico i { color: #fff; font-size: 17px; }
.gm__title { display: block; font: 500 15px/1.3 var(--ff-sans); color: var(--grove-9); margin: 1px 0 3px; }
.gm__desc { display: block; font: 400 13px/1.45 var(--ff-sans); color: var(--fg-4); }
.gm__feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; border-radius: 12px; text-decoration: none; color: var(--grove-9); min-height: 220px;
  background: radial-gradient(70% 70% at 90% 100%, rgba(44,138,96,.6) 0%, transparent 72%), radial-gradient(60% 60% at 30% 20%, rgba(255,255,255,.7) 0%, transparent 70%), linear-gradient(160deg, #E3EFDC 0%, #B9DCC0 60%, #86C29C 100%); }
.gm__feature::before { content: ""; position: absolute; width: 360px; height: 360px; left: -40%; top: 30%; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); }
.gm__feature-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--grove-9); color: var(--grove-2); font: 600 12px/1 var(--ff-sans); letter-spacing: .01em; }
.gm__feature-title { position: relative; font: 400 26px/1.05 var(--ff-display); letter-spacing: -.01em; }
.gm__feature-desc { position: relative; font: 400 13px/1.45 var(--ff-sans); color: var(--grove-85, #013228); }
.gm__feature-link { position: relative; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--ff-sans); color: var(--grove-8); }
.gm__feature:hover .gm__feature-link i { transform: translateX(3px); }
.gm__feature-link i { transition: transform .25s cubic-bezier(.16,1,.3,1); }

/* Grove lockup: the tree mark matches the wordmark's height everywhere */
.g-nav .g-nav__brand { gap: 8px; }
.g-nav .g-nav__brand .g-nav__mark, .g-nav .g-nav__brand .g-nav__wordmark { height: 20px; width: auto; }
footer.g-foot .g-foot__logo { gap: 8px; }

/* Buttons: one corner radius everywhere */
html .g-btn { border-radius: 8px; }

/* ─────────── FAQ: centered title, hairline accordion, chevrons ─────────── */
section.faq { background: transparent; padding: 120px 28px; border: 0; }
section.faq .faq__inner { max-width: 820px; margin: 0 auto; }
section.faq .faq__head { text-align: center; margin: 0 0 64px; }
section.faq .faq__head h2 { font: 400 clamp(36px, 4.4vw, 56px) / 1.05 var(--ff-display); letter-spacing: -0.02em; color: var(--grove-9); margin: 0; }
section.faq .faq__list { border-top: 1px solid rgba(20, 20, 10, 0.1); }
section.faq .faq__item { border: 0; border-bottom: 1px solid rgba(20, 20, 10, 0.1); border-radius: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; interpolate-size: allow-keywords; }
section.faq .faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font: 400 18px / 1.4 var(--ff-sans); color: var(--grove-9); }
section.faq .faq__item summary::-webkit-details-marker { display: none; }
section.faq .faq__item summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); font: inherit; }
section.faq .faq__item[open] summary::after { content: ""; transform: translateY(2px) rotate(-135deg); }
section.faq .faq__item summary:hover { color: var(--grove-7); }
section.faq .faq__item summary:focus-visible { outline: 2px solid var(--grove-7); outline-offset: 4px; border-radius: 4px; }
section.faq .faq__item p { margin: 0; padding: 0 48px 28px 0; max-width: none; font-size: 16px; line-height: 1.6; color: var(--fg-3); }
section.faq .faq__item p a { color: var(--grove-7); text-decoration: underline; text-underline-offset: 3px; }
/* Smooth open and close where the browser supports animating details content */
section.faq .faq__item::details-content { height: 0; overflow: hidden; transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), content-visibility 0.35s allow-discrete; }
section.faq .faq__item[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) { section.faq .faq__item::details-content { transition: none; } }
@media (max-width: 780px) {
  section.faq { padding: 72px 20px; }
  section.faq .faq__head { margin-bottom: 40px; }
  section.faq .faq__item summary { padding: 20px 0; font-size: 16px; }
  section.faq .faq__item p { padding-right: 0; font-size: 15px; }
}

/* ─────────── Closing CTA: rounded card, pale green on top, a deep green glow
   rising from the bottom, light corners, and a dot grid over the glow ─────────── */
section.g-cta { background: transparent; color: var(--grove-9); padding: 24px 28px 104px; border: 0; }
section.g-cta .g-cta__card { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 1240px; margin: 0 auto; padding: clamp(96px, 11vw, 148px) 28px clamp(120px, 14vw, 176px); border-radius: 24px; text-align: center; background:
  radial-gradient(70% 64% at 50% -8%, #F3F9F1 0%, #E5F1E2 45%, rgba(229, 241, 226, 0) 100%),
  radial-gradient(32% 62% at -4% 106%, #F6FBF5 0%, rgba(246, 251, 245, 0.85) 45%, rgba(246, 251, 245, 0) 100%),
  radial-gradient(32% 62% at 104% 106%, #F6FBF5 0%, rgba(246, 251, 245, 0.85) 45%, rgba(246, 251, 245, 0) 100%),
  linear-gradient(180deg, #D3E9D2 0%, #A9D6B6 55%, #79BF97 100%); }
section.g-cta .g-cta__card::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -38%; width: 78%; height: 92%; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, #0B6A4B 0%, rgba(18, 128, 90, 0.75) 38%, rgba(46, 150, 104, 0.35) 68%, rgba(46, 150, 104, 0) 100%);
  filter: blur(8px); will-change: transform, opacity; animation: gCtaGlow 9s ease-in-out infinite alternate; }
section.g-cta .g-cta__card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.1px, transparent 1.6px); background-size: 16px 16px; background-position: center;
  -webkit-mask-image: radial-gradient(62% 60% at 50% 88%, #000 0%, rgba(0, 0, 0, 0.55) 50%, transparent 82%); mask-image: radial-gradient(62% 60% at 50% 88%, #000 0%, rgba(0, 0, 0, 0.55) 50%, transparent 82%); }
@keyframes gCtaGlow { from { transform: translateX(-50%) scale(1); opacity: 0.9; } to { transform: translateX(-50%) scale(1.08); opacity: 1; } }
section.g-cta .g-cta__card h2 { font: 400 clamp(38px, 4.6vw, 64px) / 1.06 var(--ff-display); letter-spacing: -0.02em; color: var(--grove-9); margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
section.g-cta .g-cta__card h2 em { font-style: normal; color: inherit; }
section.g-cta .g-cta__card > p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; color: var(--grove-85, #013228); opacity: 0.8; max-width: 34em; margin: 0 0 30px; text-wrap: pretty; }
section.g-cta .g-cta__card h2 + .g-cta__ctas { margin-top: 16px; }
section.g-cta .g-cta__ctas { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; width: auto; }
section.g-cta .g-btn--primary { background: var(--grove-10, #0A0A0A); color: #fff; border-color: transparent; }
section.g-cta .g-btn--primary:hover { background: var(--grove-95, #01110E); }
section.g-cta .g-btn--ghost { background: rgba(255, 255, 255, 0.82); color: var(--grove-9); border-color: rgba(1, 68, 55, 0.16); }
section.g-cta .g-btn--ghost:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) { section.g-cta .g-cta__card::before { animation: none; } }
@media (max-width: 780px) {
  section.g-cta { padding: 8px 16px 72px; }
  section.g-cta .g-cta__card { border-radius: 18px; padding: 84px 20px 112px; }
  section.g-cta .g-cta__card::before { width: 120%; height: 70%; bottom: -24%; }
  section.g-cta .g-cta__ctas { flex-direction: column; width: 100%; }
  section.g-cta .g-cta__ctas .g-btn { width: 100%; justify-content: center; }
}

/* ─────────── Footer: Deep Canopy green, sand type, large faint wordmark ─────────── */
footer.g-foot { --sand: #EBE3D2; --sand-2: rgba(235, 227, 210, 0.72); background: var(--grove-8); color: var(--sand); border: 0; padding: 88px 28px 0; overflow: hidden; overflow: clip; }
footer.g-foot .g-foot__inner { max-width: 1200px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1.1fr 2fr; gap: 64px; }
footer.g-foot .g-foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
footer.g-foot .g-foot__logo { display: flex; align-items: center; gap: 10px; }
footer.g-foot .g-foot__mark, footer.g-foot .g-foot__wordmark { display: block; background: var(--sand); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
footer.g-foot .g-foot__mark { --m: url(/assets/logos/grove-mark-deep-green.svg); width: 14px; height: 22px; }
footer.g-foot .g-foot__wordmark { --m: url(/assets/logos/grove-wordmark-deep-green.svg); width: 71px; height: 22px; }
footer.g-foot .g-foot__sub { font: 400 clamp(22px, 2vw, 28px) / 1.2 var(--ff-display); letter-spacing: -0.01em; color: var(--sand); max-width: 21ch; margin-top: 28px; text-wrap: balance; }
footer.g-foot .g-foot__backed { display: flex; align-items: center; gap: 6px; margin-top: 20px; white-space: nowrap; font: 400 14px / 1.4 var(--ff-sans); color: var(--sand-2); }
footer.g-foot .g-foot__speedrun { display: block; width: 94px; height: 18px; flex: none; background: currentColor; -webkit-mask: url(/assets/logos/a16z-speedrun.svg) center / contain no-repeat; mask: url(/assets/logos/a16z-speedrun.svg) center / contain no-repeat; }
footer.g-foot .g-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
footer.g-foot .g-foot__cols > div { display: block; }
footer.g-foot .g-foot__cols .g-eyebrow { display: block; font: 500 17px / 1.2 var(--ff-display); text-transform: none; letter-spacing: 0; color: var(--sand); margin: 0 0 14px; }
footer.g-foot .g-foot__cols a { display: block; padding: 7px 0; font: 400 15px / 1.4 var(--ff-sans); color: var(--sand-2); text-decoration: none; }
footer.g-foot .g-foot__cols a:hover { color: var(--sand); }
footer.g-foot .g-foot__cols a.g-foot__social { display: flex; align-items: center; gap: 8px; }
footer.g-foot .g-foot__social i { font-size: 18px; }
footer.g-foot .g-foot__giant { max-width: 1200px; margin: 88px auto 0; aspect-ratio: 1291 / 400; background: rgba(235, 227, 210, 0.07); -webkit-mask: url(/assets/logos/grove-wordmark-deep-green.svg) center / contain no-repeat; mask: url(/assets/logos/grove-wordmark-deep-green.svg) center / contain no-repeat; transform: translateY(14%); }
@media (max-width: 780px) {
  footer.g-foot { padding: 64px 20px 0; }
  footer.g-foot .g-foot__inner { grid-template-columns: 1fr; gap: 40px; }
  footer.g-foot .g-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  footer.g-foot .g-foot__giant { margin-top: 40px; }
}

/* ─────────── Sand frame (homepage middle, About) ─────────── */
/* A sand column (max 1280px) with
   hairline edges, diagonal hatching in the gutters, hairline rules between sections. */
.sh{--sand:#F7F5F2;--sand-2:#EEEBE5;--out:#F0EEE9;--line:rgba(20,20,10,.1);--hatch:rgba(20,20,10,.09);--h:min(640px,calc(50% - 33px - 5vw));
  background:
    linear-gradient(90deg,var(--out) calc(50% - var(--h) - 33px),var(--line) calc(50% - var(--h) - 33px) calc(50% - var(--h) - 32px),transparent calc(50% - var(--h) - 32px) calc(50% - var(--h) - 1px),var(--line) calc(50% - var(--h) - 1px) calc(50% - var(--h)),var(--sand) calc(50% - var(--h)) calc(50% + var(--h)),var(--line) calc(50% + var(--h)) calc(50% + var(--h) + 1px),transparent calc(50% + var(--h) + 1px) calc(50% + var(--h) + 32px),var(--line) calc(50% + var(--h) + 32px) calc(50% + var(--h) + 33px),var(--out) calc(50% + var(--h) + 33px)),
    repeating-linear-gradient(-45deg,var(--hatch) 0 1px,transparent 1px 7px),
    var(--out)}
.sh>section{max-width:calc(2*var(--h));margin:0 auto;background:transparent}
@media(max-width:900px){.sh{--h:50%}}
.sh>section+section{border-top:1px solid var(--line)}
.sh section.g-cta{padding:0}
.sh section.g-cta .g-cta__card{max-width:none;border-radius:0}
@media(max-width:900px){.sh section.g-cta{padding:0}.sh section.g-cta .g-cta__card{border-radius:0}}

/* Scroll reveal: hidden only once JS has marked the page, so content never stays hidden without it */
/* A plain fade: nothing moves, so text never drifts and nothing below shifts */
.rv [data-rv]{opacity:0;transition:opacity .6s ease var(--d,0s)}
.rv [data-rv].in{opacity:1}
@media(prefers-reduced-motion:reduce){.rv [data-rv]{opacity:1;transform:none;transition:none}}

/* ─────────── Inner pages in the sand frame (.sh.v2) ───────────
   Each page keeps its own section styles; the frame supplies the column,
   hairlines and sand. Dark sections stay dark, as cells in the column. */
.sh.v2 > section.aiadv-why, .sh.v2 > section.careers-section--canopy { background: var(--grove-8); }
.sh.v2 > section.mcp-hero, .sh.v2 > section.mcp-section--canopy, .sh.v2 > section.pc-soon, .sh.v2 > section.sec-hero, .sh.v2 > section.sec-irs { background: var(--grove-9); }
.sh.v2 > section { border-top: 0; }
.sh.v2 > section + section { border-top: 1px solid var(--line); }
.sh.v2 > section:not(.g-cta) { padding-left: 40px; padding-right: 40px; }
@media (max-width: 900px) { .sh.v2 > section:not(.g-cta) { padding-left: 16px; padding-right: 16px; } }

/* Card grids become joined hairline cells */
.sh.v2 .fp-inc, .sh.v2 .aiadv-people__grid, .sh.v2 .mcp-install { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sh.v2 .fp-inc > .p-card, .sh.v2 .aiadv-person, .sh.v2 .mcp-install__card { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.sh.v2 .fp-inc > .p-card--feature { background: var(--grove-8); }
.sh.v2 .mcp-install__card:hover, .sh.v2 .aiadv-person:hover { background: var(--sand-2); }
/* Single boxes: hairline, square, on sand */
.sh.v2 .fp-how, .sh.v2 .fp-vtab, .sh.v2 .mcp-card, .sh.v2 .careers-roles__list, .sh.v2 .fe-details { border-radius: 0; border-color: var(--line); box-shadow: none; background: transparent; }
.sh.v2 .fp-how { margin-top: 0; border-top: 0; }
.sh.v2 .fp-vc--g { background: rgba(1, 68, 55, 0.05); }
/* Legal pages: prose sits straight on the sand */
.sh.v2 .legal-prose { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding-left: 48px; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .sh.v2 .legal-prose { padding-left: 0; border-left: 0; } }

/* Legal pages: title and last-updated only; prose centered; a line outline on the right */
.sh.v2 .legal-hero__meta { border-top: 0; padding-top: 0; margin-top: 18px; }
.sh.v2 .legal-body__inner { grid-template-columns: minmax(0, 1fr) 40px; max-width: 920px; gap: 56px; }
.sh.v2 .legal-prose { padding-left: 0; border-left: 0; }
.lg-outline { position: sticky; top: 28vh; justify-self: end; }
.lg-outline__lines { list-style: none; margin: 0; padding: 12px 8px; display: grid; justify-items: end; gap: 7px; border-radius: 999px; background: rgba(20, 20, 10, 0.05); }
.lg-outline__lines li { display: flex; align-items: center; height: 4px; }
.lg-outline__lines span { display: block; width: 10px; height: 2px; border-radius: 2px; background: rgba(20, 20, 10, 0.28); transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s; }
.lg-outline__lines li.is-active span { width: 18px; background: var(--grove-9); }
.lg-outline__panel { list-style: none; margin: 0; position: absolute; top: -8px; right: 0; z-index: 20; width: 300px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: #FBFAF7; box-shadow: 0 18px 40px -20px rgba(20, 20, 10, 0.35); opacity: 0; pointer-events: none; transform: translateX(6px); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.lg-outline:hover .lg-outline__panel, .lg-outline:focus-within .lg-outline__panel { opacity: 1; pointer-events: auto; transform: none; }
.lg-outline__panel a { display: block; padding: 8px 12px; border-radius: 10px; font: 400 14px/1.35 var(--ff-sans); color: var(--fg-2); text-decoration: none; }
.lg-outline__panel a:hover { background: var(--sand-2); color: var(--grove-9); }
.lg-outline__panel a.is-active { background: var(--sand-2); color: var(--grove-9); font-weight: 500; }
.lg-outline__panel a:focus-visible { outline: 2px solid var(--grove-7); outline-offset: -2px; }
@media (max-width: 900px) {
  .sh.v2 .legal-body__inner { grid-template-columns: 1fr; gap: 24px; }
  .lg-outline { position: static; order: -1; justify-self: stretch; }
  .lg-outline__lines { display: none; }
  .lg-outline__panel { position: static; width: auto; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; }
}
/* Legal headings: the number sits in a small chip, centered on the heading line */
.sh.v2 .legal-prose h2 { align-items: center; gap: 14px; }
.sh.v2 .legal-prose h2::before { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--grove-1); color: var(--grove-7); font: 600 11.5px/1 var(--ff-mono); letter-spacing: 0.04em; }
.sh.v2 .legal-prose h2:not([data-num])::before { display: none; }
/* Contact card: icon tile, hairline, sand */
.sh.v2 .legal-prose__contact { align-items: center; gap: 18px; padding: 22px 24px; background: var(--sand-2); border: 1px solid var(--line); border-radius: 12px; }
.sh.v2 .legal-prose__contact i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; border-radius: 10px; background: var(--grove-8); color: #fff; font-size: 20px; }
.sh.v2 .legal-prose__contact h3 { font: 500 17px/1.3 var(--ff-display); }

/* Nav links: hover only turns the text green, no pill */
.g-nav .g-nav__links > a:hover, .g-nav .g-nav__links > .g-nav__item > button:hover, .g-nav .g-nav__links > .g-nav__item[data-open="true"] > button { background: transparent !important; color: var(--grove-6) !important; }
.g-nav--over[data-scrolled="false"]:not([data-mobile-open="true"]) .g-nav__links > a:hover, .g-nav--over[data-scrolled="false"]:not([data-mobile-open="true"]) .g-nav__links > .g-nav__item > button:hover, .g-nav--over[data-scrolled="false"]:not([data-mobile-open="true"]) .g-nav__links > .g-nav__item[data-open="true"] > button { background: transparent !important; color: var(--grove-2) !important; }

/* Header demo button: Grove green whenever the header is white (every page, and the homepage once scrolled) */
.g-nav:not(.g-nav--over) .g-nav__cta .g-btn--primary,
.g-nav--over[data-scrolled="true"] .g-nav__cta .g-btn--primary,
.g-nav--over[data-mobile-open="true"] .g-nav__cta .g-btn--primary { background: var(--grove-8) !important; color: #fff !important; border-color: transparent !important; }
.g-nav:not(.g-nav--over) .g-nav__cta .g-btn--primary:hover,
.g-nav--over[data-scrolled="true"] .g-nav__cta .g-btn--primary:hover,
.g-nav--over[data-mobile-open="true"] .g-nav__cta .g-btn--primary:hover { background: var(--grove-9) !important; }

/* "Backed by a16z speedrun" opens Grove's speedrun page */
a.g-foot__backed, a.hx__badge { color: inherit; text-decoration: none; transition: opacity .2s, border-color .2s, background-color .2s; }
a.g-foot__backed:hover { opacity: .75; }
a.hx__badge:hover { border-color: rgba(255,255,255,.45); background-color: rgba(255,255,255,.08); }
a.g-foot__backed:focus-visible, a.hx__badge:focus-visible { outline: 2px solid var(--grove-2); outline-offset: 3px; }

/* Trust strip: Grove's security seals in joined cells (home, ProConnect, Security) */
section.g-trust { padding: 104px 40px; }
section.g-trust .g-trust__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 40px; }
section.g-trust .g-trust__head h2 { font: 400 clamp(32px, 3.8vw, 52px) / 1.06 var(--ff-display); letter-spacing: -0.02em; color: var(--grove-9); margin: 0; max-width: 16em; text-wrap: balance; }
section.g-trust .g-trust__head a { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 600 14px / 1.2 var(--ff-sans); color: var(--grove-7); text-decoration: none; }
section.g-trust .g-trust__head a:hover { color: var(--grove-9); }
.g-trust__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.g-trust__grid li { display: flex; align-items: center; gap: 16px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.g-trust__grid li:hover { background: var(--sand-2); }
.g-trust__grid img { width: 52px; height: 52px; flex: none; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.g-trust__grid li:hover img { transform: rotate(-8deg) scale(1.05); }
.g-trust__grid b { display: block; font: 500 16px / 1.25 var(--ff-sans); color: var(--grove-9); }
.g-trust__grid small { display: block; margin-top: 3px; font: 400 13.5px / 1.35 var(--ff-sans); color: var(--fg-4); }
.g-trust__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { section.g-trust { padding: 72px 16px; } .g-trust__grid, .g-trust__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-trust__grid li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 18px; } }
@media (max-width: 600px) { section.g-trust .g-trust__head { flex-direction: column; align-items: flex-start; } }

/* Hero glow: a blurred color glow rising from the bottom edge of a hero; two layers drift and shift color.
   Colors come from the page's stage tokens (--stc, --st2, --st3), Grove green by default. */
.has-glow { position: relative; overflow: hidden; isolation: isolate; }
.sh.v2 > section.has-glow { padding-bottom: 176px !important; }
.pp-glow { --g1: var(--stc, #1E7A55); --g2: var(--st2, #AED6B9); --g3: var(--st3, #2C8A60); position: absolute; left: -12%; right: -12%; bottom: -34%; height: 104%; z-index: -1; pointer-events: none; contain: strict; }
/* Only transform and opacity animate here: both run on the GPU without repainting, so the text above stays still */
.pp-glow i { position: absolute; inset: 0; filter: blur(40px); will-change: transform; transform: translateZ(0); }
.pp-glow i:first-child { background:
    radial-gradient(30% 48% at 14% 70%, var(--g1) 0%, transparent 72%),
    radial-gradient(36% 54% at 50% 74%, color-mix(in srgb, var(--g1) 65%, #fff) 0%, transparent 72%),
    radial-gradient(30% 48% at 86% 70%, var(--g3) 0%, transparent 72%);
  opacity: .8; animation: ppDriftA 9s ease-in-out infinite alternate; }
.pp-glow i:last-child { background:
    radial-gradient(28% 44% at 32% 72%, var(--g2) 0%, transparent 72%),
    radial-gradient(30% 46% at 70% 72%, #8FD3AE 0%, transparent 72%);
  opacity: .85; animation: ppDriftB 11s ease-in-out infinite alternate; }
@keyframes ppDriftA { 0% { transform: translateX(-10%) scale(1, .85); } 50% { transform: translateX(4%) scale(1.12, 1.2); } 100% { transform: translateX(10%) scale(.95, .95); } }
@keyframes ppDriftB { 0% { transform: translateX(12%) scale(1.1, 1.05); } 50% { transform: translateX(-4%) scale(.9, 1.25); } 100% { transform: translateX(-12%) scale(1.05, .9); } }
@media (prefers-reduced-motion: reduce) { .pp-glow i { animation: none; } }
@media (max-width: 900px) { .sh.v2 > section.has-glow { padding-bottom: 128px !important; } .pp-glow { height: 90%; } }

/* Glowing heroes fill the first screen, like the homepage; the rest of the page arrives on scroll */
.sh.v2 > section.has-glow { min-height: calc(100svh - 111px); display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
.sh.v2 > section.has-glow > :not(.pp-glow) { width: 100%; }
@media (max-width: 900px) { .sh.v2 > section.has-glow { min-height: calc(100svh - 104px); padding-top: 48px; } }

/* Ribbon on phones: one line at a time; the two messages take turns, flipping in with a soft blur */
@media (max-width: 780px) {
  .g-ribbon { display: grid; place-items: center; overflow: hidden; }
  .g-ribbon .g-ribbon__link, .g-ribbon .g-ribbon__link:last-child { display: inline-flex; grid-area: 1 / 1; white-space: nowrap; }
  .g-ribbon .g-ribbon__link { animation: ribFlip 8s cubic-bezier(.4,0,.2,1) infinite; }
  .g-ribbon .g-ribbon__link:last-child { animation-delay: -4s; }
}
@keyframes ribFlip {
  0% { opacity: 0; filter: blur(6px); transform: translateY(70%) rotateX(-50deg); }
  7%, 43% { opacity: 1; filter: blur(0); transform: none; }
  50%, 100% { opacity: 0; filter: blur(6px); transform: translateY(-70%) rotateX(50deg); }
}
@media (max-width: 780px) and (prefers-reduced-motion: reduce) {
  .g-ribbon .g-ribbon__link { animation: none; }
  .g-ribbon .g-ribbon__link:last-child { display: none; }
}

/* Header, homepage hero and footer span to the outer lines of the hatched rails, on every page */
@media (min-width: 901px) {
  .g-nav .g-nav__inner, .g-nav[data-scrolled="true"] .g-nav__inner { max-width: min(1346px, calc(100% - 10vw)) !important; }
  footer.g-foot { padding-left: 0; padding-right: 0; }
  footer.g-foot .g-foot__inner, footer.g-foot .g-foot__giant { max-width: min(1346px, calc(100% - 10vw)); }
  /* Content keeps 24px clear of those lines on both sides */
  .g-nav .g-nav__inner, .g-nav[data-scrolled="true"] .g-nav__inner, .hx .hx__in, footer.g-foot .g-foot__inner, footer.g-foot .g-foot__giant { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  footer.g-foot .g-foot__inner { gap: 40px; }
}

/* Nav "Beta" tag: centered on the label's line, styled like the ribbon's New badge */
.g-nav__links > a:has(.g-nav-tag), .g-nav__mobile-link:has(.g-nav-tag) { display: inline-flex; align-items: center; gap: 8px; }
.g-nav__mobile-link:has(.g-nav-tag) { display: flex; justify-content: flex-start; }
.g-nav-tag { display: inline-flex; align-items: center; height: 20px; margin: 0; padding: 0 7px; border-radius: 6px; background: var(--grove-05, #F2F6F1); box-shadow: inset 0 0 0 1px rgba(30, 91, 75, .18); color: var(--grove-7, #1E5B4B); font: 600 11.5px/1 var(--ff-sans); letter-spacing: .01em; text-transform: none; vertical-align: baseline; }
.g-nav--over[data-scrolled="false"]:not([data-mobile-open="true"]) .g-nav-tag { background: rgba(174, 203, 172, .14); box-shadow: inset 0 0 0 1px rgba(174, 203, 172, .34); color: var(--grove-2); }
.g-nav__mobile-link .g-nav-tag { margin-left: auto; }

/* Grove stage icons (assets/icons/grove-stages.svg): white line icons inside the stage-colored tiles */
.gi { display: block; width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #fff; }
