/* ──────────────────────────────────────────────────────────
   Greenlit — shared site stylesheet
   Single source of truth for tokens, reset, header, nav,
   footer, buttons, motion-button, announcement bar, and
   utility classes. Page-specific styles live in each page's
   inline <style> block.
   ────────────────────────────────────────────────────────── */

/* ──────────── Tokens ──────────── */
:root {
  --ink:        #16140C;
  --ink-soft:   #3D3A2E;
  --muted:      #6F6B5D;
  --line:       #E5E5E2;
  --surface:    #FFFFFF;
  --surface-2:  #F5F5F4;
  --green:      #2c420d;
  --green-deep: #192b11;
  --yellow:     #FFFFFF;
  --yellow-soft:#ECECEA;
  --danger:     #B0331A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(22,20,12,.04), 0 8px 24px rgba(22,20,12,.06);
  --shadow-lift: 0 4px 12px rgba(22,20,12,.08), 0 24px 60px rgba(22,20,12,.12);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Unified display-type ramp for page H1s across services/about/contact/resources/legal */
  --h1-display: clamp(40px, 6vw, 68px);
}

/* ──────────── Reset / base ──────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ──────────── Skip to content (a11y) ──────────── */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform .12s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
}

/* ──────────── Utilities ──────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ──────────── Buttons ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--surface); }
.btn--yellow { background: var(--green-deep); color: var(--surface); }
.btn--yellow:hover { background: var(--ink); }
.btn--on-dark { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--on-dark:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 18px 28px; font-size: 17px; }

/* ──────────── Motion button (expanding dot + arrow reveal) ──────────── */
.motion-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease;
}
.motion-btn__dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green-deep);
  transition: transform .55s cubic-bezier(.2,.7,.2,1), background-color .35s ease;
  transform-origin: center;
}
.motion-btn__label { position: relative; z-index: 1; white-space: nowrap; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.motion-btn__arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: width .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease .05s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.motion-btn:hover .motion-btn__dot,
.motion-btn:focus-visible .motion-btn__dot { transform: scale(40); }
.motion-btn:hover .motion-btn__label,
.motion-btn:focus-visible .motion-btn__label { transform: translateX(2px); }
.motion-btn:hover .motion-btn__arrow,
.motion-btn:focus-visible .motion-btn__arrow {
  width: 18px;
  opacity: 1;
  transform: translateX(0);
}
.motion-btn:active { transform: scale(.98); }
.motion-btn--lg { padding: 18px 28px 18px 22px; font-size: 17px; }
.motion-btn--lg .motion-btn__dot { width: 14px; height: 14px; }

.motion-btn--primary { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.motion-btn--primary .motion-btn__dot { background: var(--green-deep); }
.motion-btn--primary:hover, .motion-btn--primary:focus-visible { color: var(--surface); border-color: var(--green-deep); }

.motion-btn--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.motion-btn--ghost .motion-btn__dot { background: var(--green-deep); }
.motion-btn--ghost:hover, .motion-btn--ghost:focus-visible { color: var(--surface); border-color: var(--green-deep); }

.motion-btn--on-dark { color: var(--ink); background: var(--surface); border-color: var(--surface); }
.motion-btn--on-dark .motion-btn__dot { background: var(--yellow-soft); }
.motion-btn--on-dark:hover, .motion-btn--on-dark:focus-visible { color: var(--ink); border-color: var(--yellow-soft); }

.motion-btn--ghost-on-dark { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }
.motion-btn--ghost-on-dark .motion-btn__dot { background: var(--yellow); }
.motion-btn--ghost-on-dark:hover, .motion-btn--ghost-on-dark:focus-visible { color: var(--ink); border-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  .motion-btn, .motion-btn * { transition-duration: 0s !important; }
  .motion-btn:hover .motion-btn__dot, .motion-btn:focus-visible .motion-btn__dot { transform: none; }
  .motion-btn--primary:hover, .motion-btn--primary:focus-visible { background: var(--green-deep); color: var(--surface); }
  .motion-btn--ghost:hover, .motion-btn--ghost:focus-visible { background: var(--ink); color: var(--surface); }
  .motion-btn--on-dark:hover { background: var(--yellow-soft); color: var(--ink); }
  .motion-btn--ghost-on-dark:hover { background: #fff; color: var(--ink); }
}

/* ──────────── Announcement bar ──────────── */
.announce {
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  padding: 10px var(--gutter);
  text-align: center;
}
.announce a {
  color: var(--yellow);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ──────────── Header / Nav ──────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 56px; width: auto; display: block; }
.nav__primary { display: flex; gap: 6px; padding: 0; justify-content: center; flex: 1; }
.nav__primary > li { list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-weight: 500; font-size: 15px; color: var(--ink);
}
.nav__link:hover { background: var(--surface-2); }
.nav__cta { margin-left: auto; display: inline-flex; gap: 10px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-width: 340px;
  padding: 10px;
  display: none;
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10px;
  height: 10px;
}
.has-dropdown[aria-expanded="true"] .dropdown,
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 12px 14px; border-radius: 10px; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown__title { font-weight: 600; font-size: 15px; color: var(--ink); }
.dropdown__hint  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.chev { width: 12px; height: 12px; display: inline-block; }

.nav__toggle { display: none; background: transparent; border: 1px solid var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav__mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
  background: var(--surface);
}
.nav__mobile a { display: block; padding: 12px 4px; font-weight: 500; }
.nav__mobile.is-open { display: block; }
@media (max-width: 840px) {
  .nav__primary, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__cta { margin-left: 0; }
}

/* ──────────── Section helpers ──────────── */
section { padding-block: clamp(56px, 9vw, 112px); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.lede { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--green-deep);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ──────────── Footer ──────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 12px; overflow: hidden; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2C2818;
}
.footer__brand img { height: 64px; }
.footer__tag { margin-top: 16px; color: rgba(255,255,255,.5); font-size: 14px; max-width: 32ch; }
.footer__col h4 { color: var(--surface); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 15px; color: rgba(255,255,255,.7); }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
  margin-top: 24px;
  padding-bottom: 28px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--yellow); }
.footer__wordmark {
  margin-top: 8px;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 0;
}
.footer__wordmark img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  margin-bottom: 0;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ──────────── Long-form prose pages (Privacy, Terms, Articles) ──────────── */
.doc-hero {
  background: var(--surface);
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.doc-hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.doc-hero h1 {
  font-size: var(--h1-display);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.doc-hero h1 em { font-style: normal; color: var(--green-deep); }
.doc-hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}
.doc-hero__meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.doc-hero__meta strong { color: var(--ink); font-weight: 600; }

.prose {
  padding-block: clamp(48px, 7vw, 80px);
}
.prose__inner {
  max-width: 720px;
  margin-inline: auto;
  color: var(--ink-soft);
}
.prose__inner h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--ink);
}
.prose__inner h2:first-child { margin-top: 0; }
.prose__inner h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25;
  color: var(--ink);
}
.prose__inner p {
  margin-block: 16px;
  font-size: 17px;
  line-height: 1.65;
}
.prose__inner ul, .prose__inner ol {
  margin-block: 16px;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.65;
}
.prose__inner li { margin-block: 8px; }
.prose__inner strong { color: var(--ink); }
.prose__inner a {
  color: var(--green-deep);
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.prose__inner a:hover { color: var(--ink); }
.prose__inner blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--surface-2);
  border-left: 3px solid var(--green-deep);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 16px;
}
.prose__inner .callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-deep);
  border-radius: var(--radius-md);
}
.prose__inner .callout strong { display: block; margin-bottom: 6px; color: var(--ink); }
.prose__inner hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* End-of-article CTA */
.doc-cta {
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.doc-cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.1;
  color: #fff;
}
.doc-cta p {
  margin-top: 16px;
  color: rgba(255,255,255,.82);
  max-width: 54ch;
  margin-inline: auto;
  font-size: 17px;
}
.doc-cta__ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Related articles */
.related {
  background: var(--surface-2);
  padding-block: clamp(56px, 7vw, 88px);
}
.related h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 28px;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.related-card__cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.related-card h3 { font-size: 17px; line-height: 1.3; color: var(--ink); }
.related-card__meta { margin-top: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .related__grid { grid-template-columns: 1fr; } }
