/* ============================================================
   Grove Network marketing site -- design system
   Editorial, warm, grounded. Dark forest field, ivory type,
   citrus used sparingly. No gradients, no glassmorphism, no emoji icons.
   ============================================================ */

:root {
  --grove-deep: #0d1610;
  --charcoal: #141613;
  --charcoal-raised: #212420;
  --charcoal-overlay: #2a2d27;
  --grove-green: #243a2a;
  --grove-bright: #6fbf94;
  --citrus: #c9682c;
  --citrus-deep: #a8551f;
  --citrus-hover: #8f4718;
  --citrus-text: #e2925a;
  --citrus-wash: rgba(201, 104, 44, .16);
  --citrus-wash-strong: rgba(201, 104, 44, .28);
  --ivory: #f4f0e6;
  --ivory-muted: #a7ac9c;
  --olive: #70755d;
  --line: rgba(244, 240, 230, .11);
  --line-strong: rgba(244, 240, 230, .23);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shell: 1180px;
  --gutter: 24px;

  --duration: .5s;
  --duration-fast: .18s;
  --ease: cubic-bezier(.16, .8, .28, 1);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ivory); }
/* Bare section h2s (section-head, standalone content headings) were falling
   back to the browser default (~24px) next to a ~60px hero h1. More specific
   rules like .final-cta h2 and .prose h2 already set their own size and win
   the cascade over this, so they're unaffected. */
h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.01em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--citrus);
  color: var(--grove-deep);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--citrus-text);
  margin: 0 0 14px;
}

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ivory-muted); font-size: 17px; }

.light-section {
  background: var(--ivory);
  color: var(--charcoal);
}
.light-section h1, .light-section h2, .light-section h3, .light-section h4 { color: var(--charcoal); }
.light-section p { color: var(--olive); }
.light-section .eyebrow { color: var(--citrus-deep); }
.light-section .hairline { background: rgba(20, 22, 19, .14); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* The frosted-glass background lives on a pseudo-element rather than
   directly on .site-header: `backdrop-filter` (like `filter`) makes the
   element that has it the containing block for any `position: fixed`
   descendant. .site-nav (the mobile flyout) is a fixed-position descendant
   of .site-header, so putting backdrop-filter on .site-header directly
   trapped the flyout inside the 76px header box instead of the viewport —
   it opened but was clipped to almost nothing. Moving it to a leaf
   pseudo-element keeps the same visual effect without that side effect. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 22, 16, .92);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ivory);
  flex-shrink: 0;
}
.brand-mark {
  /* the app icon; the "gn" text node in the markup is aria-hidden legacy */
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 24%;
  background: url("img/brand-mark.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -.01em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ivory-muted);
  transition: color var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-mobile-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--citrus-deep); color: var(--ivory); }
.btn-primary:hover { background: var(--citrus-hover); box-shadow: 0 4px 20px -6px rgba(201, 104, 44, .45); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory-muted); background: rgba(244, 240, 230, .06); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

.light-section .btn-ghost { border-color: rgba(20,22,19,.28); color: var(--charcoal); }
.light-section .btn-ghost:hover { background: rgba(20,22,19,.06); border-color: rgba(20,22,19,.5); }

/* ---------- Hairline rule ---------- */
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Tree-ring organic motif ---------- */
.tree-rings {
  position: absolute;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
}
.tree-rings circle { fill: none; stroke: var(--olive); stroke-opacity: .35; }

/* ---------- Hero (asymmetric) ---------- */
.hero {
  background: var(--grove-deep);
  overflow: hidden;
  padding: 64px 0 96px;
}
.hero .shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
/* Grid items default to a content-based automatic minimum width, which lets
   long text or fixed-width descendants (like the phone mockups) force the
   track wider than the viewport on narrow screens. min-width: 0 lets the
   track actually shrink to the available space instead. */
.hero-copy, .hero-art, .app-section .shell > * { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.03;
  margin: 0 0 22px;
}
.hero-copy p.lede {
  color: var(--ivory-muted);
  font-size: 19px;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ivory-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grove-bright); }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---------- Phone frame (no fake device brand marks) ---------- */
.phone-frame {
  width: 220px;
  border-radius: 34px;
  background: var(--charcoal-raised);
  border: 1px solid var(--line-strong);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.phone-frame .phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--line);
}
.phone-frame .phone-screen img { width: 100%; height: auto; display: block; }
.phone-frame.large { width: 260px; }

.phone-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.phone-stack .phone-frame:nth-child(1) { transform: translateX(46px) rotate(4deg); z-index: 1; }
.phone-stack .phone-frame:nth-child(2) { position: absolute; transform: translateX(-58px) rotate(-6deg); z-index: 0; opacity: .88; }

/* ---------- How it works (steps) ---------- */
.steps {
  background: var(--charcoal);
  padding: 96px 0;
}
.step-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  padding: 0 20px 0 0;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  position: relative;
}
.step:first-child { border-left: 0; padding-left: 0; }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--citrus-text);
  font-size: 15px;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ivory-muted); font-size: 14px; margin: 0; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--charcoal-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ivory-muted); font-size: 14.5px; margin: 0; }
.card .card-eyebrow { color: var(--citrus-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; display: block; }

/* ---------- Who it is for / not ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fit-card {
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--line);
}
.fit-card.is { background: var(--grove-green); }
.fit-card.isnot { background: var(--charcoal-raised); }
.fit-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; color: var(--citrus-text); }
.fit-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fit-card li { padding-left: 22px; position: relative; font-size: 15px; color: var(--ivory-muted); }
.fit-card.is li { color: var(--ivory); }
.fit-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; }
.fit-card.is li::before { background: var(--grove-bright); }
.fit-card.isnot li::before { background: var(--olive); }

/* ---------- Trust / safety list ---------- */
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 640px; }
.trust-list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ivory-muted); }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--grove-bright); }
.light-section .trust-list li { color: var(--olive); }
.light-section .trust-list li::before { background: var(--citrus-deep); }

/* ---------- Chapters ---------- */
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.chapter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--charcoal-raised);
  position: relative;
}
.chapter-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.chapter-status.live { background: var(--citrus-wash); color: var(--citrus-text); border: 1px solid var(--citrus); }
.chapter-status.next { background: transparent; color: var(--ivory-muted); border: 1px solid var(--line-strong); }
.chapter-card h3 { font-size: 20px; margin-bottom: 8px; }
.chapter-card p { color: var(--ivory-muted); font-size: 14px; }

/* ---------- App section ---------- */
.app-section { background: var(--grove-deep); padding: 96px 0; overflow: hidden; }
.app-section .shell { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  min-width: 168px;
  text-decoration: none;
  color: var(--ivory);
}
.store-badge small { color: var(--ivory-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.store-badge span { font-family: var(--font-display); font-size: 15px; }
.store-badge:not(.store-badge--soon) { cursor: pointer; transition: border-color var(--duration-fast) var(--ease); }
.store-badge:not(.store-badge--soon):hover { border-color: var(--ivory-muted); }
.store-badge--soon { opacity: .6; cursor: default; pointer-events: none; }
.store-badge--soon span { font-family: var(--font-sans); font-size: 13px; font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--grove-green); padding: 96px 0; text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4vw, 46px); max-width: 720px; margin: 0 auto 20px; }
.final-cta p { color: var(--ivory-muted); max-width: 520px; margin: 0 auto 32px; font-size: 17px; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ivory-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--ivory-muted); transition: color var(--duration-fast) var(--ease); }
.footer-col a:hover { color: var(--ivory); }
.footer-brand p { color: var(--ivory-muted); font-size: 14px; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ivory-muted); padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Generic page hero (interior pages) ---------- */
.page-hero { background: var(--grove-deep); padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero .shell { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-hero p { color: var(--ivory-muted); font-size: 18px; max-width: 60ch; }

.content-section { padding: 80px 0; }
.content-section.tight { padding: 56px 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 4px; max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--citrus-text); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 0 22px; color: var(--ivory-muted); max-width: 68ch; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Legal / long-form content pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ivory-muted); font-size: 16px; }
.prose strong { color: var(--ivory); }
.prose a { color: var(--grove-bright); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--citrus-text); }
.updated-badge { display: inline-block; font-size: 12.5px; color: var(--ivory-muted); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 5px 14px; margin-bottom: 28px; }

/* ---------- Delete-account steps ---------- */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: del; display: grid; gap: 18px; }
.step-list li { display: flex; gap: 18px; align-items: flex-start; }
.step-list li::before {
  counter-increment: del;
  content: counter(del);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grove-green);
  color: var(--ivory);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.step-list p { margin: 0; color: var(--ivory-muted); }
.step-list strong { color: var(--ivory); }

/* ---------- Retained / deleted lists ---------- */
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col-list .panel-box { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: var(--charcoal-raised); }
.two-col-list h3 { font-size: 16px; margin-bottom: 12px; }
.two-col-list ul { margin: 0; padding-left: 1.1em; }
.two-col-list li { color: var(--ivory-muted); font-size: 14.5px; margin-bottom: 6px; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--grove-deep); }
.error-page .eyebrow-num { font-family: var(--font-display); font-style: italic; font-size: 100px; color: var(--citrus-text); line-height: 1; margin-bottom: 12px; }
.error-page h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.error-page p { color: var(--ivory-muted); margin-bottom: 28px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .shell { grid-template-columns: 1fr; gap: 40px; }
  .step-row { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .step { border-left: 1px solid var(--line); padding-left: 20px; }
  .step:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .app-section .shell { grid-template-columns: 1fr; gap: 40px; }
  .app-section .phone-stack { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--grove-deep);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 28px var(--gutter);
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    z-index: 90;
    overflow-y: auto;
  }
  .site-nav a { font-size: 20px; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-mobile-cta {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }
  .nav-mobile-cta.btn, .nav-mobile-cta a { flex: 1; }
  .site-nav .nav-mobile-cta a {
    border-bottom: 0;
    width: auto;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ivory);
    justify-content: center;
  }

  .step-row { grid-template-columns: 1fr; }
  .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .step:first-child { border-top: 0; padding-top: 0; }

  .card-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col-list { grid-template-columns: 1fr; }
  .phone-stack { min-height: 380px; }
  .phone-stack .phone-frame:nth-child(1) { transform: translateX(28px) rotate(4deg); width: 180px; }
  .phone-stack .phone-frame:nth-child(2) { transform: translateX(-36px) rotate(-6deg); width: 180px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .hero { padding: 44px 0 64px; }
  .hero-copy p.lede { font-size: 17px; }
  .steps, .app-section, .final-cta, .content-section { padding-top: 64px; padding-bottom: 64px; }
}
