/* ════════════════════════════════════════════
   NP shared subpage styles — brand book v4
   Used by: how-it-works.html, for-landowners.html,
   for-investors.html, about.html
   ════════════════════════════════════════════ */

/* Metric-matched fallback: scales Georgia down to EB Garamond's apparent size,
   so the web-font swap doesn't visibly shrink/reflow headings on first load. */
@font-face {
  font-family: 'EB Garamond fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 90%;
}

:root {
  --forest-deep: #0f2318;
  --forest: #1a3a2a;
  --gold: #9e8a5e;
  --gold-deep: #8a7a50;
  --mist: #e8ede6;
  --mist-light: #f2f5f0;
  --chalk: #fafbf9;
  --stone: #8a8f87;       /* OK on dark backgrounds (footer) */
  --stone-aa: #5d6259;    /* WCAG AA on light backgrounds */
  --ink: #1a1d19;
  --hairline: rgba(26, 58, 42, 0.16);
  --hairline-dark: rgba(232, 237, 230, 0.16);
  --serif: 'EB Garamond', 'EB Garamond fallback', Georgia, serif;
  --sans: 'DM Sans', 'DM Sans fallback', -apple-system, sans-serif;
  --pagepad: clamp(24px, 4vw, 72px);
  /* Site-wide content container. --gutter = page padding until the viewport
     exceeds --maxw, then it grows to keep content centred within --maxw.
     Apply --gutter as horizontal padding on full-width sections so their
     backgrounds stay full-bleed while content shares one left/right edge. */
  --maxw: 1440px;
  --gutter: max(var(--pagepad), calc((100% - var(--maxw)) / 2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

[data-rise] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
[data-rise].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1; transform: none; transition: none; }
}

.golddot { color: var(--gold); }
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ── Skip navigation ── */
.skip-nav {
  position: absolute;
  top: -48px;
  left: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--chalk);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-nav:focus { top: 0; }

/* ── Focus-visible styles ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

/* ── Nav (light, sticky) ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(250, 251, 249, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--forest);
  white-space: nowrap;
  margin-right: auto;
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); list-style: none; }
.nav__link {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.active { color: var(--forest); }
.nav__cta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}
.nav__cta:hover { color: var(--gold-deep); }
.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 7px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav__toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--forest);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--pagepad) 18px;
    background: rgba(250, 251, 249, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { width: 100%; border-top: 1px solid var(--hairline); }
  .nav__links li:first-child { border-top: none; }
  .nav.is-open .nav__link,
  .nav.is-open .nav__cta {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 0.75rem;
  }
  .nav.is-open .nav__link { color: var(--forest); }
  .nav.is-open .nav__cta { color: var(--gold-deep); border-bottom: none; }
}

/* ── Subpage hero band ── */
.subhero {
  background: var(--forest-deep);
  color: var(--mist);
  padding: clamp(72px, 10vw, 120px) var(--gutter) clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.subhero--image { min-height: 52vh; display: flex; flex-direction: column; justify-content: flex-end; }
.subhero__img { position: absolute; inset: 0; background-position: center; background-size: cover; }
.subhero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,35,24,0.5) 0%, rgba(15,35,24,0.78) 100%);
}
.subhero__inner { position: relative; z-index: 2; }
.subhero__eyebrow { color: var(--gold); margin-bottom: 20px; }
.subhero__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--chalk);
  max-width: 18ch;
  margin-bottom: 22px;
  text-wrap: balance;
}
.subhero__lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: rgba(232, 237, 230, 0.85);
  max-width: 560px;
  text-wrap: pretty;
}

/* ── Section scaffold ── */
.section { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.section--ruled { border-top: 1px solid var(--hairline); }
.section--tint { background: var(--mist-light); }
.section__head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 16px; }
.section-no { font-family: var(--serif); font-size: 0.9375rem; font-weight: 500; color: var(--gold-deep); letter-spacing: 0.04em; }
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.375rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--forest);
  text-wrap: balance;
}
.section__lede { font-size: 1.0312rem; color: var(--stone-aa); max-width: 620px; margin-bottom: clamp(36px, 4vw, 56px); }

/* ── Editorial two-column section: heading sits in a sticky left rail,
      content fills the right column (mirrors the About-page .spread).
      Opt a section out with .section--wide (lead-in prose, full-bleed bands). ── */
@media (min-width: 901px) {
  .section:not(.section--wide) {
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    column-gap: clamp(32px, 3.5vw, 72px);
    row-gap: 0;
    align-items: start;
  }
  .section:not(.section--wide) > div:first-child {
    grid-column: 1;
    grid-row: 1 / span 50;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .section:not(.section--wide) > :not(:first-child) { grid-column: 2; }
  /* Match the About-page .spread heading treatment in the rail */
  .section:not(.section--wide) .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }
  .section:not(.section--wide) .section__title {
    font-size: clamp(1.35rem, 2.2vw, 1.8125rem);
    font-weight: 500;
    line-height: 1.3;
  }
  .section:not(.section--wide) .section__lede { margin-bottom: 0; max-width: none; }
}

/* ── Prose ── */
.prose { max-width: 660px; }
.prose p { font-size: 1rem; line-height: 1.75; color: var(--ink); margin-bottom: 18px; }
.prose p.muted { color: var(--stone); }
.prose strong { font-weight: 600; }
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5625rem);
  font-weight: 500;
  font-style: italic;
  color: var(--forest);
  line-height: 1.45;
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--gold);
  margin: 30px 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ── Definition rows (instrument etc.) ── */
.def-rows { border-top: 1px solid var(--hairline); }
.def-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.def-row__term { font-family: var(--serif); font-size: 1.1875rem; font-weight: 500; color: var(--forest); line-height: 1.35; }
.def-row__def { font-size: 0.9375rem; line-height: 1.7; color: var(--ink); }
@media (max-width: 720px) { .def-row { grid-template-columns: 1fr; gap: 6px; } }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.35;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--forest); }
.faq-item__icon {
  flex: 0 0 auto;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.faq-item__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-item__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-item__icon::after { opacity: 0; transform: scaleY(0); }
.faq-item__def {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(26, 29, 25, 0.78);
  margin: 0;
  padding: 8px 42px 24px 0;
  max-width: 100ch;
}

/* FAQ audience switch (sits in the sticky left rail) */
.faq-rail .eyebrow { margin-bottom: 20px; }
.faq-rail__hint {
  margin-top: 22px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--stone-aa);
  max-width: 24ch;
}

.faq-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.faq-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 9px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-switch__btn:hover { background: var(--mist, #f3f1ea); }
.faq-switch__btn.is-active {
  background: var(--forest);
  color: #fff;
}
.faq-switch__btn.is-active:hover { background: var(--forest); }
.faq-panel[hidden] { display: none; }

/* ── Numbered step rows ── */
.steps { border-top: 1px solid var(--hairline); }
.step-row {
  display: grid;
  grid-template-columns: 72px minmax(140px, 200px) 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.step-row__no { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.step-row__label { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--forest); }
.step-row__detail { font-size: 0.9375rem; line-height: 1.7; color: var(--ink); }
.steps__note { margin-top: 24px; font-size: 0.875rem; font-style: italic; color: var(--stone-aa); max-width: 560px; }
@media (max-width: 640px) {
  .step-row { grid-template-columns: 48px 1fr; }
  .step-row__detail { grid-column: 2; }
}

/* ── Receive / commit lists ── */
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.rc-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 4px;
}
.rc-list { list-style: none; }
.rc-list li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  gap: 14px;
}
.rc-list li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.rc-commit { font-size: 0.9375rem; color: var(--ink); padding-top: 12px; }
@media (max-width: 820px) { .rc-grid { grid-template-columns: 1fr; } }

/* ── Fact strip ── */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); margin-top: 8px; }
.fact { padding: 22px clamp(14px, 2vw, 28px) 4px 0; }
.fact + .fact { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--hairline); }
.fact__num { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; color: var(--forest); line-height: 1.15; }
.fact__label { font-size: 0.75rem; color: var(--stone-aa); letter-spacing: 0.04em; margin-top: 4px; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: none; border-top: 1px solid var(--hairline); margin-top: 16px; }
}

/* ── Platform shot ── */
.platform__shot { border: 1px solid var(--hairline); background: white; padding: 8px; }
.platform__shot img { width: 100%; }
.platform__caption { font-size: 0.75rem; color: var(--stone-aa); letter-spacing: 0.04em; margin-top: 12px; max-width: 64ch; }
.feature-list { border-top: 1px solid var(--hairline); max-width: 560px; }
.feature-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.feature-row span { font-size: 0.9375rem; color: var(--ink); }
.feature-row em {
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}
.feature-row em.next { color: var(--stone-aa); }

/* ── Quote band ── */
.quote-band { position: relative; min-height: 54vh; display: flex; align-items: center; overflow: hidden; }
.quote-band__img { position: absolute; inset: 0; background-position: center; background-size: cover; }
.quote-band__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,35,24,0.78) 0%, rgba(15,35,24,0.45) 60%, rgba(15,35,24,0.25) 100%);
}
.quote-band__inner { position: relative; z-index: 2; padding: clamp(64px, 8vw, 104px) var(--pagepad); max-width: 880px; }
.quote-band__rule { width: 48px; height: 1px; background: var(--gold); margin-bottom: 30px; }
.quote-band__text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.8125rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--chalk);
  margin-bottom: 26px;
  text-wrap: pretty;
}
.quote-band__cite { font-style: normal; font-size: 0.8125rem; letter-spacing: 0.06em; color: rgba(232, 237, 230, 0.78); }
.quote-band__cite strong { color: var(--chalk); font-weight: 600; }
.placeholder-flag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(158, 138, 94, 0.5);
  padding: 4px 10px;
  margin-bottom: 18px;
}

/* ── CTA band ── */
.cta-band {
  background: var(--forest-deep);
  color: var(--mist);
  padding: clamp(64px, 9vw, 104px) var(--gutter);
  text-align: center;
}
.cta-band__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.375rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--mist);
  margin: 12px 0 14px;
  text-wrap: balance;
}
.cta-band__sub { font-size: 0.9375rem; color: rgba(232,237,230,0.72); max-width: 460px; margin: 0 auto 36px; }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--mist);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}
.btn-quiet:hover { background: var(--gold); color: var(--forest-deep); }
.btn-quiet:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Footer ── */
.footer {
  background: var(--forest-deep);
  border-top: 1px solid var(--hairline-dark);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  color: var(--stone);
}
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__wordmark { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: 0.06em; color: var(--mist); }
.footer__tagline { font-size: 0.8125rem; color: var(--stone); }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px 32px; list-style: none; }
.footer__links a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); transition: color 0.2s; }
.footer__links a:hover { color: var(--mist); }
.footer__legal { font-size: 0.75rem; line-height: 1.7; color: rgba(138, 143, 135, 0.8); max-width: 760px; }
.footer__legal + .footer__legal { margin-top: 12px; }
.footer__legal a { color: var(--mist); border-bottom: 1px solid var(--hairline-dark); transition: color 0.2s; }
.footer__legal a:hover { color: var(--gold); }
