/* AcroLinq · Grove design language · marketing site */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Focus states — keyboard navigation only, on-brand bright-green ring */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--bright-green);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

:root {
  /* Greens */
  --deep-forest:   #0F5A3A;
  --med-forest:    #2B5C3E;
  --bright-green:  #337A4B;
  --mint-accent:   #9BDFB1;       /* dark-mode accent */
  --light-sage:    #BACFC3;
  --pale-sage:     #E8EFE8;
  /* Warm neutrals */
  --warm-cream:    #F5EFE0;
  --warm-cream-dim:#ECE4D1;
  --warm-tan:      #F0E4CD;
  --warm-tan-text: #7A5416;
  /* Accents */
  --terracotta:    #D4714A;
  --terracotta-tint: #F7E3D7;
  /* Surfaces */
  --white:         #FFFFFF;
  --off-white:     #FBFAF5;
  --near-black-forest: #1A3829;
  /* Text */
  --text:          #1A1F1C;
  --subtext:       #656C62;
  /* Lines */
  --hairline:      rgba(26,56,41,0.08);
  --hairline-strong: rgba(26,56,41,0.14);
  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;
  /* Elevation */
  --e-1: 0 1px 2px rgba(26,56,41,0.05);
  --e-2: 0 2px 6px rgba(26,56,41,0.06), 0 1px 2px rgba(26,56,41,0.04);
  --e-3: 0 8px 24px rgba(26,56,41,0.08), 0 2px 6px rgba(26,56,41,0.04);
  --e-lift: 0 14px 40px rgba(26,56,41,0.12), 0 4px 10px rgba(26,56,41,0.05);
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-quick: 0.2s var(--ease-out);
  --t-hover: 0.25s var(--ease-out);
  --t-base: 0.3s var(--ease-out);
  --t-slow: 0.8s var(--ease-out);
  /* Vertical rhythm — section spacing */
  --space-y-section: clamp(80px, 10vw, 140px);
  --space-y-section-lg: clamp(96px, 12vw, 168px);
  /* Marketing web type scale */
  --type-display-web: 44px;
  --type-heading-web: 28px;
  --type-title-web: 18px;
  --type-body-web: 15px;
  --type-small-web: 13px;
  --type-caption-web: 10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--warm-cream);
  background-image: linear-gradient(180deg, rgba(251,250,245,0.72) 0%, rgba(245,239,224,0) 360px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Paper grain — ultra subtle */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.22 0 0 0 0 0.16 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--bright-green); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ==========================================================
   Layout shell
   ========================================================== */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

/* ==========================================================
   Top navigation (full-width)
   ========================================================== */
.topnav {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--deep-forest);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  flex-shrink: 0;
}
.wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--bright-green);
}
.wordmark-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.site-foot-logo {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.85;
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtext);
}
.topnav-links a {
  position: relative;
  transition: color var(--t-quick);
}
.topnav-links a:hover { color: var(--deep-forest); }
.topnav-links a.is-active { color: var(--deep-forest); }
.topnav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: var(--bright-green);
}
@media (max-width: 560px) {
  .topnav-links { gap: 14px; font-size: 9px; letter-spacing: 0.1em; }
  .wordmark { font-size: 19px; gap: 10px; }
  .wordmark-logo { width: 28px; height: 28px; }
}
@media (max-width: 480px) {
  .topnav-links { display: none; }
}

/* ==========================================================
   Hero overline (Mono caps + rule lines)
   ========================================================== */
.overline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtext);
}
.overline .rule { flex: 1; height: 1px; background: var(--hairline-strong); }
.overline .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--bright-green); border-radius: 50%;
}

/* ==========================================================
   Display typography
   ========================================================== */
.t-display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--deep-forest);
  letter-spacing: 0;
  line-height: 0.92;
}
.t-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--bright-green);
}
.t-headline {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--deep-forest);
  letter-spacing: 0;
  line-height: 1;
}
.t-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--bright-green);
}
.t-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--subtext);
}
.t-eyebrow-green {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--bright-green);
  letter-spacing: 0.01em;
}
.t-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.78;
}

/* ==========================================================
   Section head (numbered, with right-aligned lede)
   ========================================================== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
  scroll-margin-top: 48px;
}
.section-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  color: var(--bright-green);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--deep-forest);
  line-height: 1;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
}
.section-lede {
  font-size: 14px;
  color: var(--subtext);
  max-width: 360px;
  line-height: 1.6;
  text-align: right;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: auto 1fr; gap: 16px; }
  .section-lede { grid-column: 1 / -1; text-align: left; margin-left: 0; }
  .section-num { font-size: 28px; }
  .section-title { font-size: 26px; }
}

/* ==========================================================
   Panel (white card)
   ========================================================== */
.panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
}
.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--e-lift);
  border-color: var(--hairline-strong);
}
.panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtext);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.panel-label .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 13px;
  color: var(--bright-green);
  letter-spacing: 0;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--r-md);
  height: 44px;
  padding: 0 22px;
  transition: all var(--t-quick);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--e-2); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--deep-forest); color: #fff; box-shadow: var(--e-1); }
.btn-primary:hover { background: var(--med-forest); }
.btn-secondary { background: transparent; color: var(--deep-forest); border: 1px solid var(--hairline-strong); }
.btn-secondary:hover { background: var(--off-white); border-color: var(--deep-forest); }
.btn-ghost { background: transparent; color: var(--bright-green); padding: 0 14px; box-shadow: none; }
.btn-ghost:hover { background: var(--pale-sage); box-shadow: none; transform: none; }
.btn .arr {
  display: inline-block;
  transition: transform var(--t-hover);
}
.btn:hover .arr { transform: translateX(2px); }

/* ==========================================================
   Notes & callouts
   ========================================================== */
.note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline-strong);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtext);
}
.note::before {
  content: 'Note — ';
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bright-green);
  margin-right: 6px;
}

/* ==========================================================
   Dark slab
   ========================================================== */
.dark-slab {
  background: var(--near-black-forest);
  color: #fff;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  padding: 72px 56px;
  margin: 96px 0;
}
.dark-slab::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(155,223,177,0.10), rgba(255,255,255,0));
  pointer-events: none;
}
.dark-slab > * { position: relative; z-index: 1; }
.dark-overline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.dark-overline .rule { flex: 1; height: 1px; background: rgba(255,255,255,0.18); }
.dark-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
  max-width: 720px;
}
.dark-title em { font-style: italic; font-weight: 400; color: var(--mint-accent); }
.dark-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 44px;
}
@media (max-width: 720px) {
  .dark-slab { padding: 48px 28px; margin: 64px 0; }
}

/* ==========================================================
   Colophon
   ========================================================== */
.colophon {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}
.colophon-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bright-green);
  font-weight: 500;
}
.colophon-body {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--subtext);
  max-width: 640px;
}
.colophon-body em { color: var(--deep-forest); font-style: italic; font-weight: 500; }
@media (max-width: 720px) {
  .colophon { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-foot {
  margin-top: 56px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtext);
  flex-wrap: wrap;
}
.site-foot a { transition: color var(--t-quick); }
.site-foot a:hover { color: var(--deep-forest); }
.site-foot .copyline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================
   Entrance animation (staggered)
   ========================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.8s var(--ease-out) both; }
.rise-2 { animation-delay: 0.10s; }
.rise-3 { animation-delay: 0.20s; }
.rise-4 { animation-delay: 0.30s; }
.rise-5 { animation-delay: 0.40s; }
.rise-6 { animation-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3, .rise-4, .rise-5, .rise-6 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Long-form prose (legal pages)
   ========================================================== */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(26,31,28,0.85);
  max-width: 680px;
}
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--deep-forest);
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.prose p { color: rgba(26,31,28,0.82); }
.prose a {
  color: var(--med-forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43,92,62,0.4);
  transition: color var(--t-quick), text-decoration-color var(--t-quick);
}
.prose a:hover { color: var(--deep-forest); text-decoration-color: var(--deep-forest); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul li::marker { color: var(--bright-green); }
.prose ol li::marker { color: var(--bright-green); font-family: 'Fraunces', serif; font-style: italic; }
.prose li { padding-left: 0.25rem; margin-top: 0.25rem; }
.prose strong { font-weight: 600; color: var(--text); }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86em;
  background: var(--pale-sage);
  color: var(--med-forest);
  padding: 0.1em 0.45em;
  border-radius: var(--r-sm);
}
.prose hr {
  border: none;
  border-top: 1px dashed var(--hairline-strong);
  margin: 2.5rem 0;
}

/* Legal hero variant — taller, breath, with a corner mark */
.legal-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 56px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.legal-hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--deep-forest);
  font-size: clamp(48px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: 0;
}
.legal-hero-title em { font-style: italic; font-weight: 400; color: var(--bright-green); }
.legal-hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--subtext);
  text-align: right;
}
.legal-hero-meta b {
  display: block;
  font-weight: 500;
  color: var(--text);
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .legal-hero { grid-template-columns: 1fr; padding: 36px 0 24px; margin-bottom: 36px; }
  .legal-hero-meta { text-align: left; }
}

/* ==========================================================
   FAQ details/summary
   ========================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.faq:hover { border-color: var(--hairline-strong); box-shadow: var(--e-2); }
.faq[open] { border-color: var(--hairline-strong); box-shadow: var(--e-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex: 1;
}
.faq-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--bright-green);
  width: 22px;
  flex-shrink: 0;
  font-variation-settings: "opsz" 144;
}
.faq-q-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--deep-forest);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pale-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background var(--t-base), transform var(--t-base);
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--deep-forest);
  border-radius: 1px;
}
.faq-toggle::before { width: 12px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 12px; transition: transform var(--t-base); }
.faq[open] .faq-toggle { background: var(--deep-forest); }
.faq[open] .faq-toggle::before,
.faq[open] .faq-toggle::after { background: var(--white); }
.faq[open] .faq-toggle::after { transform: rotate(90deg); }
.faq-a {
  padding: 0 26px 24px 62px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26,31,28,0.75);
}
.faq-a p + p { margin-top: 0.75em; }
.faq-a a { color: var(--med-forest); text-decoration: underline; text-underline-offset: 2px; }
.faq-a a:hover { color: var(--deep-forest); }
@media (max-width: 560px) {
  .faq summary { padding: 18px 18px; }
  .faq-q-text { font-size: 16px; }
  .faq-a { padding: 0 18px 20px 54px; font-size: 14px; }
}
