/* v2 page styles — integrations (from 22-July design bundle) */
/* ============================================================
   Site-wide chrome for moretrees.eco
   Header, footer, buttons, eyebrows, containers, primitives.
   Pages import this after tokens.css and add their own styles.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Containers ---------- */
.wrap     { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
.wrap-tight { max-width: 960px; margin: 0 auto; padding: 0 56px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.on-navy .eyebrow { color: var(--leaf); }
.eyebrow .dot {
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.eyebrow .rule {
  display: inline-block;
  width: 32px; height: 1px;
  background: currentColor;
  margin-right: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    transform 80ms var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn .arr { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-standard); }
.btn:hover .arr { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--navy); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn--ghost:hover { color: var(--green); border-bottom-color: var(--green); }
.btn--accent { background: var(--green); color: var(--paper); }
.btn--accent:hover { background: var(--moss); }

.on-navy .btn--primary { background: var(--paper); color: var(--ink); }
.on-navy .btn--primary:hover { background: var(--leaf); }
.on-navy .btn--secondary { color: var(--paper); border-color: rgba(246,243,236,0.4); }
.on-navy .btn--secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-navy .btn--ghost { color: var(--paper); border-bottom-color: var(--paper); }
.on-navy .btn--ghost:hover { color: var(--leaf); border-bottom-color: var(--leaf); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-on-paper-soft);
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.site-header.on-navy { background: var(--navy); color: var(--paper); border-bottom-color: var(--rule-on-navy); }
.site-header__bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header__brand { display: flex; align-items: center; gap: 12px; }
.site-header__brand img { height: 26px; width: auto; }
.site-header__brand .tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  border-left: 1px solid var(--rule-on-paper);
  padding-left: 12px;
}
.site-header.on-navy .site-header__brand .tag { color: var(--leaf); border-left-color: var(--rule-on-navy); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-on-paper);
  letter-spacing: -0.005em;
  border-radius: 2px;
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard);
}
.site-header.on-navy .site-nav__link { color: var(--paper); }
.site-nav__link:hover { color: var(--green); }
.site-header.on-navy .site-nav__link:hover { color: var(--leaf); }
.site-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--green);
}
.site-header.on-navy .site-nav__link[aria-current="page"]::after { background: var(--leaf); }
.site-nav__link .caret { width: 10px; height: 10px; opacity: 0.55; }

.site-nav__dropdown {
  position: relative;
}
.site-nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--rule-on-paper);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: none;
  z-index: 60;
}
.site-header.on-navy .site-nav__panel { background: var(--bg-navy-card); border-color: var(--rule-on-navy); }
.site-nav__dropdown:hover .site-nav__panel,
.site-nav__dropdown:focus-within .site-nav__panel { display: block; }
.site-nav__panel a {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 2px;
}
.site-nav__panel a small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-on-paper-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}
.site-header.on-navy .site-nav__panel a { color: var(--paper); }
.site-header.on-navy .site-nav__panel a small { color: var(--fg-on-navy-muted); }
.site-nav__panel a:hover { background: var(--paper-200); }
.site-header.on-navy .site-nav__panel a:hover { background: rgba(255,255,255,0.06); }

.site-header__cta { display: flex; align-items: center; gap: 12px; }
.site-header__cta .phone {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg-on-paper-muted);
  letter-spacing: 0;
}
.site-header.on-navy .site-header__cta .phone { color: var(--fg-on-navy-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 0 0 48px;
}
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 40px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid var(--rule-on-navy);
}
.site-footer__brand { display: flex; flex-direction: column; }
.site-footer h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 20px;
}
.site-footer__brand img { height: 26px; width: auto; align-self: flex-start; margin-bottom: 20px; opacity: 0.95; }
.site-footer__brand p {
  font-size: 14px;
  color: var(--fg-on-navy-muted);
  line-height: 1.55;
  max-width: 38ch;
  margin: 0 0 24px;
}
.site-footer__brand .partner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-navy);
  font-size: 12px;
  color: var(--fg-on-navy-soft);
  letter-spacing: 0.04em;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-on-navy-muted);
  transition: color var(--dur-fast) var(--ease-standard);
}
.site-footer__col a:hover { color: var(--leaf); }

.site-footer__base {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-on-navy-soft);
}
.site-footer__base .links { display: flex; gap: 24px; }
.site-footer__base a:hover { color: var(--leaf); }

/* ---------- Universal primitives ---------- */
.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--loose { padding: 160px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head__title { font-size: 56px; font-weight: 800; letter-spacing: -0.028em; line-height: 1.02; margin: 0; }
.section-head__sub { font-size: 18px; color: var(--fg-on-paper-muted); line-height: 1.55; max-width: 52ch; margin: 0; }
.on-navy .section-head__sub { color: var(--fg-on-navy-muted); }

.divider-rule {
  height: 1px;
  background: var(--rule-on-paper);
  margin: 0;
}
.on-navy .divider-rule { background: var(--rule-on-navy); }

/* ---------- Section heading w/ number ---------- */
.numhead { display: flex; align-items: baseline; gap: 24px; margin-bottom: 16px; }
.numhead .num {
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0;
}
.on-navy .numhead .num { color: var(--leaf); }
.numhead .lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.on-navy .numhead .lbl { color: var(--paper); }

/* ---------- Card primitive ---------- */
.card {
  background: var(--bg-paper-card);
  border: 1px solid var(--rule-on-paper);
  padding: 32px;
  transition: border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.card:hover { border-color: var(--ink); }
.card--link { cursor: pointer; }
.card--link:hover { transform: translateY(-2px); }
.on-navy .card { background: var(--bg-navy-card); border-color: var(--rule-on-navy); }
.on-navy .card:hover { border-color: var(--leaf); }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 64px; font-weight: 900; letter-spacing: -0.035em; line-height: 0.95; color: var(--ink); }
.kpi .v .u { font-size: 36px; color: var(--green); font-weight: 800; margin-left: 4px; }
.kpi .l { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-paper-soft); margin-top: 12px; }
.kpi .d { font-size: 13px; color: var(--fg-on-paper-muted); margin-top: 4px; line-height: 1.5; }
.on-navy .kpi .v { color: var(--paper); }
.on-navy .kpi .v .u { color: var(--leaf); }
.on-navy .kpi .l { color: var(--fg-on-navy-soft); }
.on-navy .kpi .d { color: var(--fg-on-navy-muted); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-200);
  color: var(--ink);
}
.chip--leaf { background: var(--leaf-100); color: var(--leaf-800); }
.chip--navy { background: var(--navy); color: var(--paper); }
.chip--ghost { background: transparent; border: 1px solid var(--rule-on-paper); color: var(--fg-on-paper-muted); }
.on-navy .chip--ghost { border-color: var(--rule-on-navy); color: var(--fg-on-navy-muted); }

/* ---------- Tag w/ tick ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tick-list li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-on-paper-muted);
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 8px;
  border-bottom: 1.5px solid var(--green);
  border-left: 1.5px solid var(--green);
  transform: rotate(-45deg);
  transform-origin: left;
}
.on-navy .tick-list li { color: var(--fg-on-navy-muted); }
.on-navy .tick-list li::before { border-color: var(--leaf); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.05s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.2s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.36s; }

/* ---------- Image slot styling base ---------- */
image-slot {
  display: block;
  background: var(--bg-navy-card);
  border: 1px solid var(--rule-on-navy);
  position: relative;
  overflow: hidden;
}
image-slot::part(placeholder) { color: var(--paper); }

/* ---------- Fillable photo overlay ----------
   Laid over an existing CSS photo by js/photo-slots.js (opt-in via
   data-slot). Empty → fully transparent, so the container's background
   photo shows through, with a subtle drop affordance on hover only.
   Filled → the user's dropped image covers the stock photo. */
image-slot.photo-fill {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  border: 0;
  z-index: 0;
}
image-slot.photo-fill::part(frame) { background: transparent; }
image-slot.photo-fill::part(ring) { display: none; }
image-slot.photo-fill::part(empty) {
  opacity: 0;
  transition: opacity 180ms var(--ease-standard);
  background: linear-gradient(0deg, rgba(6,24,46,0.62), rgba(6,24,46,0.34));
  color: var(--paper);
  gap: 8px;
}
image-slot.photo-fill[data-editable]:hover::part(empty) { opacity: 1; }

/* ---------- New photo band ----------
   A self-contained, fillable image zone for photo-light pages. Unlike an
   overlay slot, there's no stock photo behind it, so the empty state shows a
   visible "add a photo" affordance until the user drops an image. */
.photo-band { background: var(--paper); padding: 8px 0 40px; }
.photo-band--navy { background: var(--navy); }
.photo-band__inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.photo-band__frame {
  position: relative;
  aspect-ratio: 21 / 8;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-paper-card);
  border: 1px solid var(--rule-on-paper);
}
.photo-band--navy .photo-band__frame { background: var(--bg-navy-card); border-color: var(--rule-on-navy); }
.photo-band__frame .caption { position: absolute; left: 22px; bottom: 18px; z-index: 2; }
.photo-band__frame image-slot.photo-fill::part(empty) {
  opacity: 1;
  background: transparent;
  color: var(--fg-on-paper-soft);
}
.photo-band__frame image-slot.photo-fill::part(ring) {
  display: block;
  border: 1.5px dashed var(--rule-on-paper);
}
.photo-band--navy .photo-band__frame image-slot.photo-fill::part(empty) { color: var(--fg-on-navy-soft); }
.photo-band--navy .photo-band__frame image-slot.photo-fill::part(ring) { border-color: var(--rule-on-navy); }
.photo-band__frame image-slot.photo-fill[data-editable]:hover::part(empty) {
  background: linear-gradient(0deg, rgba(6,24,46,0.45), rgba(6,24,46,0.25));
  color: var(--paper);
}

/* ---------- Caption (cartographic) ---------- */
.caption {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-on-paper-soft);
}
.on-navy .caption { color: var(--leaf); }

/* ---------- Tabs (used on Integrations & Home) ---------- */
.tabs__strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule-on-paper);
  margin-bottom: 48px;
}
.on-navy .tabs__strip { border-bottom-color: var(--rule-on-navy); }
.tabs__tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-on-paper-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard);
}
.tabs__tab .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-on-paper-soft);
  margin-right: 8px;
  font-weight: 500;
}
.on-navy .tabs__tab { color: var(--fg-on-navy-muted); }
.on-navy .tabs__tab .num { color: var(--leaf); }
.tabs__tab:hover { color: var(--ink); }
.on-navy .tabs__tab:hover { color: var(--paper); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.on-navy .tabs__tab[aria-selected="true"] { color: var(--paper); }
.tabs__tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--green);
}
.on-navy .tabs__tab[aria-selected="true"]::after { background: var(--leaf); }

.tabs__panel { display: none; }
.tabs__panel[aria-hidden="false"] { display: block; animation: fadein 320ms var(--ease-out); }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--rule-on-paper); }
.on-navy .accordion { border-top-color: var(--rule-on-navy); }
.acc-item { border-bottom: 1px solid var(--rule-on-paper); }
.on-navy .acc-item { border-bottom-color: var(--rule-on-navy); }
.acc-item__head {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font: inherit;
}
.acc-item__num { font-family: var(--font-mono); font-size: 12px; color: var(--green); font-weight: 600; }
.on-navy .acc-item__num { color: var(--leaf); }
.acc-item__title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.on-navy .acc-item__title { color: var(--paper); }
.acc-item__plus {
  width: 24px; height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: background var(--dur-fast) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.on-navy .acc-item__plus { border-color: var(--paper); }
.acc-item__plus::before,
.acc-item__plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: opacity var(--dur-base) var(--ease-standard);
}
.on-navy .acc-item__plus::before,
.on-navy .acc-item__plus::after { background: var(--paper); }
.acc-item__plus::before { width: 10px; height: 1.5px; }
.acc-item__plus::after  { width: 1.5px; height: 10px; }
.acc-item[data-open="true"] .acc-item__plus::after { opacity: 0; }
.acc-item[data-open="true"] .acc-item__plus { transform: rotate(180deg); }
.acc-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-standard);
}
.acc-item[data-open="true"] .acc-item__body { grid-template-rows: 1fr; }
.acc-item__body > div {
  overflow: hidden;
  padding: 0 0 0 80px;
}
.acc-item[data-open="true"] .acc-item__body > div { padding-bottom: 32px; }
.acc-item__body p {
  font-size: 16px;
  color: var(--fg-on-paper-muted);
  line-height: 1.6;
  max-width: 64ch;
}
.on-navy .acc-item__body p { color: var(--fg-on-navy-muted); }

/* ---------- Marquee / logo strip ---------- */
.logo-strip {
  overflow: hidden;
  position: relative;
  padding: 32px 0;
}
.logo-strip::before,
.logo-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logo-strip::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(246,243,236,0)); }
.logo-strip::after { right: 0; background: linear-gradient(-90deg, var(--paper), rgba(246,243,236,0)); }
.on-navy .logo-strip::before { background: linear-gradient(90deg, var(--navy), rgba(11,37,69,0)); }
.on-navy .logo-strip::after { background: linear-gradient(-90deg, var(--navy), rgba(11,37,69,0)); }

.logo-strip__track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: marquee 50s linear infinite;
  width: max-content;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.logo-strip__item {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-on-paper-soft);
  font-style: italic;
  white-space: nowrap;
  opacity: 0.7;
}
.on-navy .logo-strip__item { color: var(--fg-on-navy-muted); }


/* ---------- Footer · newsletter band + socials (pass 6) ---------- */
.site-footer__news {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-on-navy);
  position: relative;
  overflow: hidden;
}
.site-footer__news::before {
  /* subtle eyebrow rule across the band */
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: rgba(124,196,153,0.18);
}
.site-footer__news-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.site-footer__news-art {
  display: none; /* removed — was unbalancing the band */
}
.site-footer__news-copy .eyb {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px;
}
.site-footer__news-copy .eyb::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--leaf);
  display: inline-block;
}
.site-footer__news-copy h3 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 0.98;
  color: var(--white);
  margin: 0 0 14px;
  text-wrap: balance;
}
.site-footer__news-copy h3 em {
  font-style: italic; font-family: var(--font-display);
  font-weight: 400; color: var(--leaf);
}
.site-footer__news-copy p {
  font-size: 15px;
  color: var(--fg-on-navy-muted);
  line-height: 1.55;
  margin: 0; max-width: 48ch;
}
.site-footer__news-form {
  display: grid;
  gap: 12px;
}
.site-footer__news-form label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leaf);
}
.site-footer__news-form .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  background: var(--bg-navy-card);
  border: 1px solid rgba(124,196,153,0.25);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 180ms var(--ease-standard);
}
.site-footer__news-form .row:focus-within { border-color: var(--leaf); }
.site-footer__news-form input {
  background: transparent; border: 0;
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 14px;
  width: 100%;
}
.site-footer__news-form input::placeholder { color: var(--fg-on-navy-soft); }
.site-footer__news-form input:focus { outline: none; }
.site-footer__news-form button {
  background: var(--leaf);
  color: var(--ink);
  border: 0; cursor: pointer;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 180ms var(--ease-standard);
}
.site-footer__news-form button:hover { background: var(--white); }
.site-footer__news-form small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-on-navy-soft);
}

.site-footer__socials {
  display: flex; gap: 10px;
  margin-top: 24px;
}
.site-footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule-on-navy);
  background: transparent;
  color: var(--fg-on-navy-muted);
  display: grid; place-items: center;
  transition: border-color 180ms, color 180ms, background 180ms;
}
.site-footer__socials a:hover {
  border-color: var(--leaf);
  color: var(--leaf);
  background: rgba(124,196,153,0.08);
}
.site-footer__socials svg { width: 16px; height: 16px; }

/* Mobile CTA clone injected by JS — hidden on desktop, only visible
   inside the mobile drawer (see css/mobile.css for the open-state styles). */
.site-nav__cta-mobile { display: none; }

@media (max-width: 960px) {
  .site-footer__news-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 32px;
  }
  .site-footer__news-copy h3 { font-size: 32px; }
}
/* =========================================================
     INTEGRATIONS PAGE
     Mirrors deck MODULE15 (intro) + MODULES 16-20 (each
     integration is a 3-step Trigger / Allocate / Confirm flow
     on a navy slide). On the web we keep the same pattern but
     thread it through one continuous scroll, with a sticky
     anchor strip so visitors can skim to the one that fits
     their business model.
     ========================================================= */

  .site-header__brand img { height: 28px; }
  .site-header__brand .tag { display: none; }

  /* ---------- Announce bar ---------- */
  .announce {
    background: var(--ink); color: var(--paper);
    font-size: 12px; letter-spacing: 0.04em;
  }
  .announce__inner {
    max-width: 1440px; margin: 0 auto; padding: 10px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .announce__left { display: flex; align-items: center; gap: 16px; }
  .announce .pill {
    font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--leaf);
    padding: 3px 8px; border: 1px solid rgba(124,196,153,0.4); border-radius: 999px;
  }
  .announce a { color: var(--leaf); border-bottom: 1px solid rgba(124,196,153,0.35); padding-bottom: 1px; }
  .announce a:hover { color: var(--paper); border-bottom-color: var(--paper); }

  /* ---------- Crumbs ---------- */
  .crumbs { background: var(--paper); border-bottom: 1px solid var(--rule-on-paper-soft); }
  .crumbs__inner {
    max-width: 1440px; margin: 0 auto; padding: 14px 40px;
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--fg-on-paper-soft); letter-spacing: 0.02em;
  }
  .crumbs__inner a { color: var(--fg-on-paper-muted); }
  .crumbs__inner a:hover { color: var(--ink); }
  .crumbs__inner .sep { color: var(--paper-500); }
  .crumbs__inner .cur { color: var(--ink); font-weight: 700; }
  .crumbs__inner .right {
    margin-left: auto; font-family: var(--font-mono);
    font-size: 11px; color: var(--fg-on-paper-soft); letter-spacing: 0;
  }

  /* =========================================================
     HERO — modelled on MODULE15:
     "Five ways moretrees connects to your business."
     Below the headline we render the FIVE integration tiles
     used as scrollspy / quick navigation.
     ========================================================= */
  .hero {
    background: var(--navy);
    color: var(--paper);
    position: relative;
    padding: 88px 0 64px;
    position: relative;
    overflow: hidden;
  }
  .hero__bg {
    position: absolute; inset: 0;
    background: url("/assets/9a863ae83d76acf0.jpg") center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
  }
  .hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(6,24,46,0.92) 0%, rgba(11,37,69,0.78) 48%, rgba(11,37,69,0.42) 100%);
  }
    .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 90% 0%, rgba(124,196,153,0.08), transparent 50%),
      radial-gradient(circle at 10% 110%, rgba(124,196,153,0.05), transparent 50%);
  }
  .hero__inner {
    position: relative;
    max-width: 1440px; margin: 0 auto; padding: 0 40px;
  }
  .hero__eyb {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--leaf); margin-bottom: 40px;
  }
  .hero__eyb .rule { width: 56px; height: 2px; background: var(--leaf); display: inline-block; }
  .hero h1 {
    font-size: 84px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.92;
    color: var(--white);
    margin: 0 0 36px;
    max-width: 18ch;
    text-wrap: balance;
  }
  .hero h1 em {
    font-style: italic; font-family: var(--font-display);
    font-weight: 400; color: var(--leaf);
  }
  .hero__lede {
    font-size: 18px;
    line-height: 1.5;
    color: var(--fg-on-navy-muted);
    max-width: 58ch;
    margin: 0 0 44px;
    font-weight: 300;
  }
  .hero__lede strong { color: var(--white); font-weight: 500; }

  /* 5 integration tiles — clickable nav, deck-style cards */
  .hero__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .htile {
    background: var(--paper);
    border: 1px solid var(--rule-on-paper);
    border-radius: 16px;
    padding: 32px 28px 28px;
    display: flex; flex-direction: column; gap: 16px;
    text-decoration: none; color: inherit;
    transition: border-color 220ms var(--ease-standard),
                background 220ms var(--ease-standard),
                transform 220ms var(--ease-standard);
    min-height: 240px;
  }
  .htile:hover {
    border-color: var(--green);
    background: var(--paper-200);
    transform: translateY(-3px);
  }
  .htile .num {
    font-family: var(--font-mono);
    font-size: 28px; font-weight: 500;
    color: var(--green);
    line-height: 1;
  }
  .htile h3 {
    font-size: 20px; font-weight: 700;
    color: var(--ink); margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .htile p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-on-paper-muted);
    margin: 0 0 8px;
  }
  .htile .go {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.06em;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .htile .go::after {
    content: '↓';
    font-family: var(--font-sans);
    font-weight: 700;
  }

  /* =========================================================
     ANCHOR STRIP — sticky on scroll, lets visitors jump
     between integrations
     ========================================================= */
  .anchors {
    background: var(--ink);
    color: var(--paper);
    position: sticky; top: 0;
    z-index: 40;
    border-top: 1px solid var(--rule-on-navy);
    border-bottom: 1px solid var(--rule-on-navy);
  }
  .anchors__inner {
    max-width: 1440px; margin: 0 auto;
    padding: 0 40px;
    display: flex; align-items: center; gap: 0;
    overflow-x: auto;
  }
  .anchors a {
    flex: 1;
    padding: 18px 16px;
    font-size: 13px; font-weight: 600;
    color: var(--fg-on-navy-muted);
    text-align: center;
    border-right: 1px solid var(--rule-on-navy-soft);
    transition: color 200ms var(--ease-standard),
                background 200ms var(--ease-standard);
    position: relative;
    letter-spacing: -0.005em;
  }
  .anchors a:last-child { border-right: 0; }
  .anchors a:hover { color: var(--leaf); background: rgba(124,196,153,0.05); }
  .anchors a .n {
    font-family: var(--font-mono);
    color: var(--leaf);
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
  }

  /* =========================================================
     INTEGRATION SECTION — the deck's core pattern.
     Every section: eyebrow, big head, rule, lede, IDEAL FOR
     callout, then 3-step Trigger/Allocate/Confirm rail.
     ========================================================= */
  .iflow {
    background: var(--navy);
    color: var(--paper);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--rule-on-navy-soft);
  }
  .iflow::before {
    content: '';
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
  }
  .iflow::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,37,69,0.55) 0%, rgba(11,37,69,0.4) 50%, rgba(11,37,69,0.85) 100%);
    z-index: 0;
  }
  .iflow.is-gifting::before  { background-image: url("/assets/a123e7631c8dc469.jpg"); }
  .iflow.is-sales::before    { background-image: url("/assets/83ac3b861e97339a.jpg"); }
  .iflow.is-delivery::before { background-image: url("/assets/7443b783bbbbff95.jpg"); }
  .iflow.is-checkout::before { background-image: url("/assets/8f1913a0fddc4a8c.jpg"); }
  .iflow.is-esg::before      { background-image: url("/assets/cb83426ee1e26570.jpg"); }

  /* PAPER LIGHT VARIANT — breaks the navy monotony */
  .iflow.is-gifting::before, .iflow.is-gifting::after { display: none; }
  .iflow.is-gifting { background: var(--navy); }
  .iflow.is-light { background: var(--paper-200); color: var(--ink); border-top: 1px solid var(--rule-on-paper); }
  .iflow.is-light::before { opacity: 0.22; }
  .iflow.is-light::after { background: linear-gradient(180deg, rgba(246,243,236,0.85) 0%, rgba(246,243,236,0.75) 50%, rgba(246,243,236,0.95) 100%); }
  .iflow.is-light .iflow__eyb { color: var(--green); }
  .iflow.is-light h2 { color: var(--ink); }
  .iflow.is-light h2 em { color: var(--green); }
  .iflow.is-light .iflow__rule { background: var(--green); }
  .iflow.is-light .iflow__lede { color: var(--fg-on-paper-muted); }
  .iflow.is-light .iflow__lede strong { color: var(--ink); }
  .iflow.is-light .iflow__ideal { background: rgba(59,138,90,0.05); border-color: rgba(59,138,90,0.25); }
  .iflow.is-light .iflow__ideal .lbl { color: var(--green); }
  .iflow.is-light .iflow__ideal p { color: var(--fg-on-paper-muted); }
  .iflow.is-light .istep { background: var(--paper); border-color: var(--rule-on-paper); color: var(--ink); }
  .iflow.is-light .istep h3 { color: var(--ink); }
  .iflow.is-light .istep .istep__desc { color: var(--fg-on-paper-muted); }
  .iflow.is-light .istep .istep__n { background: var(--green); color: var(--white); }
  .iflow.is-light .istep .istep__icon { color: var(--green); }
  .iflow.is-light .istep .istep__list li { color: var(--ink); }
  .iflow.is-light .istep .istep__list li::before { color: var(--green); }
  .iflow.is-light .istep__list { border-top: 0; }
  .iflow.is-light .iflow__arrow { color: var(--green); }
  .iflow.is-light .iflow__pg { background: rgba(59,138,90,0.1); color: var(--green); border-color: rgba(59,138,90,0.3); }
  .iflow.is-light .iflow__pg b { color: var(--green); }
  .iflow.is-light .iflow__foot { border-color: var(--rule-on-paper); }
  .iflow.is-light .iflow__foot .lhs { color: var(--fg-on-paper-muted); }
  .iflow.is-light .iflow__foot .lhs b { color: var(--ink); }
  .iflow.is-light .iflow__foot .cta { color: var(--green); border-bottom-color: var(--green); }
  .iflow.is-light .iflow__foot .cta:hover { color: var(--ink); border-bottom-color: var(--ink); }


  .iflow__inner {
    position: relative; z-index: 1;
    max-width: 1440px; margin: 0 auto; padding: 0 40px;
  }
  .iflow__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    margin-bottom: 56px;
  }
  .iflow__eyb {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--leaf);
    margin-bottom: 28px;
    display: block;
  }
  .iflow h2 {
    font-size: 88px;
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 0.95;
    color: var(--white);
    margin: 0 0 32px;
    text-wrap: balance;
  }
  .iflow h2 em { font-style: italic; font-family: var(--font-display); font-weight: 400; color: var(--leaf); }
  .iflow__rule { width: 96px; height: 3px; background: var(--leaf); margin-bottom: 32px; }
  .iflow__lede {
    font-size: 20px;
    line-height: 1.5;
    color: var(--fg-on-navy-muted);
    margin: 0;
    max-width: 52ch;
    font-weight: 300;
  }

  /* IDEAL FOR callout — rounded rect with green left border */
  .iflow__ideal {
    background: rgba(124,196,153,0.05);
    border: 1px solid rgba(124,196,153,0.25);
    border-left: 4px solid var(--leaf);
    border-radius: 16px;
    padding: 24px 28px;
    align-self: start;
  }
  .iflow__ideal .lbl {
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--leaf);
    margin-bottom: 12px;
  }
  .iflow__ideal p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--white);
    margin: 0;
    font-weight: 400;
  }

  /* 3-step rail — green dashed line behind, 3 navy cards */
  .iflow__rail {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 56px 1fr 56px 1fr;
    gap: 0;
    align-items: stretch;
  }
  .iflow__rail::before {
    content: '';
    position: absolute;
    left: -40px; right: -40px;
    top: 50%;
    height: 1.5px;
    background: repeating-linear-gradient(
      to right,
      rgba(124,196,153,0.45) 0 8px,
      transparent 8px 16px
    );
    z-index: 0;
  }
  .istep {
    position: relative;
    z-index: 1;
    background: var(--navy);
    border: 1px solid rgba(124,196,153,0.35);
    border-radius: 28px;
    padding: 40px 36px 36px;
    display: flex; flex-direction: column; gap: 20px;
    min-height: 360px;
  }
  .istep__top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 4px;
  }
  .istep__n {
    width: 56px; height: 56px;
    background: var(--leaf);
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-sans);
    font-size: 22px; font-weight: 700;
    color: var(--ink);
  }
  .istep__icon {
    width: 56px; height: 56px;
    color: var(--leaf);
    display: grid; place-items: center;
  }
  .istep__icon svg { width: 100%; height: 100%; }
  .istep h3 {
    font-size: 36px; font-weight: 700;
    color: var(--white); margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .istep__desc {
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg-on-navy-muted);
    margin: 0;
    font-weight: 400;
  }
  .istep__list {
    list-style: none;
    padding: 0; margin: auto 0 0;
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--rule-on-navy-soft);
  }
  .istep__list li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 14px;
    color: var(--fg-on-navy-muted);
    line-height: 1.45;
  }
  .istep__list li::before {
    content: '';
    width: 14px; height: 8px;
    border-bottom: 1.5px solid var(--leaf);
    border-left: 1.5px solid var(--leaf);
    transform: rotate(-45deg);
    transform-origin: left;
    margin-top: 6px;
  }

  .iflow__arrow {
    position: relative;
    z-index: 1;
    display: grid; place-items: center;
    color: var(--leaf);
  }
  .iflow__arrow svg { width: 32px; height: 32px; }

  /* Optional footer per integration */
  .iflow__foot {
    margin-top: 40px;
    padding-top: 0;
    border-top: 0;
    display: grid; grid-template-columns: 1fr auto; gap: 32px;
    align-items: center;
  }
  .iflow__foot .lhs {
    font-size: 16px;
    color: var(--fg-on-navy-muted);
    line-height: 1.5;
    max-width: 64ch;
    margin: 0;
  }
  .iflow__foot .lhs b { color: var(--white); font-weight: 600; }
  .iflow__foot .cta {
    justify-self: start;
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--leaf); font-weight: 700; font-size: 14px;
    border-bottom: 1px solid var(--leaf); padding: 4px 0;
    white-space: nowrap;
  }
  .iflow__foot .cta:hover { color: var(--white); border-bottom-color: var(--white); }
  .iflow__foot .cta.is-btn { background: var(--leaf); color: var(--ink); border: 0; border-radius: 999px; padding: 16px 28px; font-size: 15px; }
  .iflow__foot .cta.is-btn:hover { background: var(--white); color: var(--ink); }

  /* Page counter / step badge for each integration */
  .iflow__pg {
    position: absolute;
    top: 40px; right: 40px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--leaf);
    letter-spacing: 0.08em;
  }
  .iflow__pg b { color: var(--white); font-weight: 700; }
  #esg .istep { min-height: 0; }
  #esg .istep__list { margin-top: 24px; }

  /* =========================================================
     CONNECT TO STACK — small paper relief between sections.
     Lists common platforms moretrees connects with.
     ========================================================= */
  .stack {
    background: var(--paper);
    padding: 160px 0;
  }
  .stack__inner {
    max-width: 1440px; margin: 0 auto; padding: 0 40px;
  }
  .stack__head {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 80px; align-items: end;
    margin-bottom: 80px;
  }
  .stack__eyb {
    font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--green);
    margin-bottom: 24px; display: block;
  }
  .stack__rule { width: 96px; height: 3px; background: var(--green); margin-bottom: 32px; }
  .stack h2 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 0.96;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
  }
  .stack h2 em {
    font-style: italic; font-family: var(--font-display);
    font-weight: 400; color: var(--green);
  }
  .stack__lede {
    font-size: 19px;
    color: var(--fg-on-paper-muted);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0;
  }
  .stack__lede strong { color: var(--ink); font-weight: 600; }
  .stack__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule-on-paper);
    border: 1px solid var(--rule-on-paper);
  }
  .stack__group {
    background: var(--paper);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 16px;
    min-height: 240px;
  }
  .stack__group h4 {
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--green); margin: 0 0 8px;
  }
  .stack__group h5 {
    font-size: 22px; font-weight: 700;
    color: var(--ink); margin: 0;
    letter-spacing: -0.015em;
  }
  .stack__group p {
    font-size: 13px;
    color: var(--fg-on-paper-muted);
    line-height: 1.5;
    margin: 0;
  }
  .stack__group .list {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rule-on-paper-soft);
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .stack__group .list span {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    background: var(--paper-200);
    color: var(--ink);
    border-radius: 2px;
  }

  /* =========================================================
     FINAL CTA — full-bleed photo, centered
     ========================================================= */
  .final {
    position: relative;
    color: var(--paper);
    padding: 180px 0;
    overflow: hidden;
  }
  .final__bg {
    position: absolute; inset: 0;
    background: url("/assets/37f499bd7dc22a71.jpg") center/cover no-repeat;
    z-index: 0;
  }
  .final__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
      rgba(6,24,46,0.88) 0%,
      rgba(11,37,69,0.82) 50%,
      rgba(6,24,46,0.92) 100%);
  }
  .final__inner {
    position: relative; z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
  }
  .final__eyb {
    font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--leaf);
    margin-bottom: 32px; display: inline-flex; align-items: center; gap: 14px;
  }
  .final__eyb .rule { width: 56px; height: 2px; background: var(--leaf); }
  .final h2 {
    font-size: 88px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--white);
    margin: 0 0 32px;
    text-wrap: balance;
  }
  .final h2 em {
    font-style: italic; font-family: var(--font-display);
    font-weight: 400; color: var(--leaf);
  }
  .final__lede {
    font-size: 20px;
    color: var(--fg-on-navy-muted);
    line-height: 1.5;
    max-width: 56ch;
    margin: 0 auto 56px;
    font-weight: 300;
  }
  .final__cta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
  .final__cta .btn--primary {
    background: var(--leaf); color: var(--ink);
    padding: 18px 32px; font-size: 15px;
  }
  .final__cta .btn--primary:hover { background: var(--white); }
  .final__cta .btn--ghost-light {
    background: transparent; color: var(--paper);
    padding: 18px 0; font-size: 15px; font-weight: 700;
    border-bottom: 1px solid var(--paper);
    display: inline-flex; align-items: center; gap: 10px;
  }
  .final__cta .btn--ghost-light:hover { color: var(--leaf); border-bottom-color: var(--leaf); }
  .final { padding: 120px 0; }
  .final + .site-footer { padding-top: 0; }
  .site-footer__news-inner { max-width: 1440px; padding: 64px 40px; }
  .site-footer__inner { padding-top: 36px; }
