/* Orchard landing page
   Product screenshots carry the page. Every image in static/screens/ is a real
   render of design/console-mock/console.html, so the data agrees across them
   (Fernhill workspace, emea-deals-over-10k collection, Brightwater AB).
   Copy stays in captions; layout stays out of the way. */

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

:root {
  --paper:      #F7F5EE;
  --paper-2:    #EFECE2;
  --card:       #FFFDF8;
  --ink:        #17160F;
  --ink-2:      #4A473D;
  --ink-3:      #7A766A;
  --rule:       rgba(23, 22, 15, 0.14);
  --rule-soft:  rgba(23, 22, 15, 0.08);
  --mark:       #FDE047;   /* highlighter, from the logo tile */
  --mark-deep:  #FACC15;
  --gap:        #B4410F;   /* a number that disagrees */
  --gap-bg:     #FBE7DC;
  --ok:         #2F6B34;   /* a number that has been matched */
  --ok-bg:      #E3EFDD;

  /* orchard palette: forest for dark surfaces, leaf/mark/apple as accents */
  --forest:     #133B2E;
  --forest-2:   #1C4D3C;
  --forest-3:   #0D2B21;
  --leaf:       #2F7A55;
  --leaf-tint:  #DDEEE3;
  --mark-tint:  #FCF3C2;
  --apple:      #D9542F;
  --apple-tint: #FADFD4;

  --display: 'Funnel Display', 'Helvetica Neue', Arial, sans-serif;
  --sans:    'Funnel Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1440px;
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }

.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;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

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

/* ── Type ─────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

mark, .hl {
  background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%);
  color: inherit;
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Buttons and the signup form ──────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 0.95rem/1 var(--sans);
  padding: 0.8rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--forest);
  background: var(--forest); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn:active { transform: translateY(1px); }
.btn--mark { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.btn--mark:hover { background: var(--mark-deep); border-color: var(--mark-deep); }
.btn--sm { padding: 0.6rem 0.9rem; font-size: 0.875rem; }

.signup { max-width: 30rem; }
.signup-row {
  display: flex; gap: 0.5rem;
  padding: 0.35rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-row:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.6); }
.signup-row input {
  flex: 1; min-width: 0;
  font: 400 1rem var(--sans); color: var(--ink);
  background: transparent; border: 0; outline: 0;
  padding: 0.55rem 0.7rem;
}
.signup-row input::placeholder { color: var(--ink-3); }
.signup-row .btn { padding: 0.75rem 1.1rem; }
.signup-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-3); }
.signup-msg { margin-top: 0.6rem; font-size: 0.9rem; color: var(--gap); min-height: 1.2em; }
.signup-msg:empty { display: none; }

.signup.is-error .signup-row { border-color: var(--gap); box-shadow: 0 0 0 3px rgba(180, 65, 15, 0.15); animation: shake 0.35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.signup-done {
  display: flex; align-items: flex-start; gap: 0.65rem;
  max-width: 30rem;
  padding: 0.95rem 1.1rem;
  background: var(--ok-bg); color: var(--ok);
  border: 1px solid rgba(47, 107, 52, 0.25);
  border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.45;
}
.signup-done svg { flex: none; margin-top: 2px; }

/* dark variant (final CTA) */
.on-ink .signup-row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.on-ink .signup-row:focus-within { border-color: var(--mark); box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.25); }
.on-ink .signup-row input { color: var(--paper); }
.on-ink .signup-row input::placeholder { color: rgba(247, 245, 238, 0.5); }
.on-ink .signup-note { color: rgba(247, 245, 238, 0.6); }
.on-ink .signup-msg { color: #F7A07A; }


/* ── Nav ──────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 245, 238, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 700 1.35rem/1 var(--display); letter-spacing: -0.035em;
  text-decoration: none; color: var(--ink);
}
.logo svg { width: 30px; height: 30px; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a:not(.btn) { font-size: 0.925rem; color: var(--ink-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ── Sections ─────────────────────────────────────────── */

section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

/* ── Hero ─────────────────────────────────────────────── */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid; gap: 2rem 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}
.hero h1 { grid-column: 1 / -1; font-size: clamp(2.6rem, 6.2vw, 6.4rem); max-width: 22ch; }
/* wide screens: "reconciled into one warehouse." holds together as line two */
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); max-width: none; }
  .hero h1 .line { display: block; white-space: nowrap; }
}
.hero .lede { margin: 0; max-width: 40rem; }
.hero .signup { max-width: none; }
.hero-side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: start; min-width: 0; }
@media (max-width: 900px) { .hero-grid, .hero-side { grid-template-columns: minmax(0, 1fr); } }

/* ── Interfaces stage (SQL / MCP / API) ───────────────── */

.stage { background: var(--forest); color: var(--paper); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.stage-bar h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--paper); max-width: none; }
.tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border: 1px solid rgba(247, 245, 238, 0.16); border-radius: 10px; }
.tabs button {
  font: 500 0.85rem/1 var(--mono); color: rgba(247, 245, 238, 0.6);
  background: none; border: 0; border-radius: 7px;
  padding: 0.6rem 0.9rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tabs button:hover { color: var(--paper); }
.tabs { position: relative; }
.tab-ind { display: none; }
.tabs button[aria-selected="true"] { background: var(--mark); color: var(--ink); }
.tabs button:focus-visible { outline-color: var(--mark); }
.panel figure { display: grid; gap: 1rem; }
.panel img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(247, 245, 238, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.panel .frame { min-width: 0; }
@media (max-width: 720px) {
  .panel .frame { overflow: hidden; border-radius: 10px; }
  .panel .frame img { width: 175%; max-width: none; }
}
.panel figcaption { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; color: rgba(247, 245, 238, 0.72); font-size: 1rem; }
.panel figcaption code { font: 500 0.8rem/1 var(--mono); color: var(--mark); }

/* ── Steps ────────────────────────────────────────────── */

.steps { display: grid; gap: clamp(4.5rem, 9vw, 7rem); }
.step { display: grid; gap: 2rem; }
.step-copy {
  display: grid; gap: 0.9rem 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}
.step-copy .num { grid-column: 1 / -1; font: 500 0.85rem/1 var(--mono); color: var(--ink-3); display: flex; align-items: center; gap: 0.6rem; }
.step-copy .num { color: var(--accent, var(--leaf)); }
.step-copy .num::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent, var(--leaf)); }
.step--leaf  { --accent: var(--leaf);  --tint: var(--leaf-tint); }
.step--mark  { --accent: #A16207;      --tint: var(--mark-tint); }
.step--apple { --accent: var(--apple); --tint: var(--apple-tint); }
.step-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.step-copy p { color: var(--ink-2); max-width: 30rem; }
/* the screenshot sits centered on a tinted panel the width of the page column */
.shot {
  min-width: 0;
  background: var(--tint, var(--paper-2));
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  border-radius: 18px;
}
.shot img {
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -36px rgba(23, 22, 15, 0.35);
}
@media (max-width: 900px) {
  .step-copy { grid-template-columns: minmax(0, 1fr); }
  /* on phones the screenshot is cropped and runs off the right edge so its text stays readable */
  .shot { margin-right: calc(-1 * var(--pad)); padding-right: 0; overflow: hidden; border-radius: 14px 0 0 14px; }
  .shot img { width: 170%; max-width: none; border-right: 0; border-radius: 10px 0 0 10px; }
  .shot--right img { margin-left: -70%; }
}

/* beats: the points each screenshot illustrates; static bullets until the story pins */
.beats { grid-column: 2; list-style: none; padding: 0; margin: 0.25rem 0 0; display: grid; gap: 0.5rem; }
.beats li { position: relative; padding-left: 1.4rem; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.beats li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); box-sizing: border-box; }
@media (max-width: 900px) { .beats { grid-column: 1; } }
.story-rail, .spot { display: none; }
.zoom-in { position: relative; }
.story-stage { display: grid; gap: clamp(4.5rem, 9vw, 7rem); }

/* ── Pinned story (JS adds .is-pinned; off for reduced motion) ── */

.is-pinned { position: relative; height: calc(var(--beats) * 70vh + 100vh); padding: 0; }
.is-pinned > .wrap {
  position: sticky; top: 64px;
  height: calc(100vh - 64px); height: calc(100svh - 64px);
}

.story.is-pinned .steps { display: grid; grid-template-rows: auto auto; align-content: center; gap: clamp(1.5rem, 4vh, 3rem); padding-block: clamp(1rem, 3vh, 2.25rem); }
.story.is-pinned .story-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.story-rail button {
  position: relative; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 0 0 0.7rem; font: 500 0.85rem/1 var(--mono); color: var(--ink-3);
  transition: color 0.3s;
}
.story-rail button span { margin-right: 0.35rem; }
.story-rail button::after, .story-rail i { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; }
.story-rail button::after { right: 0; background: var(--rule); }
.story-rail i { z-index: 1; width: calc(var(--fill, 0) * 100%); background: var(--c); }
.story-rail button:nth-child(1) { --c: var(--leaf); }
.story-rail button:nth-child(2) { --c: #A16207; }
.story-rail button:nth-child(3) { --c: var(--apple); }
.story-rail button.is-on { color: var(--c); }

.story.is-pinned .story-stage { display: grid; gap: 0; min-height: 0; }
.story.is-pinned .step {
  grid-area: 1 / 1; min-height: 0;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.7fr); align-items: center; gap: clamp(2rem, 4vw, 4rem);
}
/* the steps are stacked; scroll position sets which copy and screen show, each frame */
.story.is-pinned .step-copy, .story.is-pinned .zoom { opacity: 0; visibility: hidden; }
/* one tinted panel (the first step's) sits under every screen and shifts colour between steps */
.story.is-pinned .step:first-child .shot { background: var(--panel, var(--tint)); }
.story.is-pinned .step + .step .shot { background: transparent; }
.story.is-pinned .step-copy { grid-template-columns: minmax(0, 1fr); align-items: start; }
.story.is-pinned .step-copy .num { display: none; }
.story.is-pinned .step-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.story.is-pinned .beats { grid-column: 1; gap: 0.75rem; margin-top: 0.75rem; }
.story.is-pinned .beats li { color: var(--ink-3); transition: color 0.4s; }
.story.is-pinned .beats li::before { transition: background 0.4s, transform 0.4s var(--ease); }
.story.is-pinned .beats li.is-on { color: var(--ink); }
.story.is-pinned .beats li.is-on::before { background: var(--accent); transform: scale(1.25); }
.story.is-pinned .beats li.is-done::before { background: var(--accent); }

/* screenshot sized by whichever runs out first: column width or viewport height */
.story.is-pinned .shot {
  justify-self: end; width: 100%;
  max-width: calc((100svh - 64px - 9rem) * 1.846 + 2 * clamp(1rem, 2.5vw, 2rem));
  padding: clamp(1rem, 2.5vw, 2rem);
  margin: 0; overflow: visible; border-radius: 18px;
}
.story.is-pinned .zoom { overflow: hidden; border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 30px 60px -36px rgba(23, 22, 15, 0.35); background: #fff; }
.story.is-pinned .zoom img { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.story.is-pinned .zoom-in {
  --s: 1; transform-origin: 50% 50%;
  transform: scale(var(--s)) translate(var(--tx, 0%), var(--ty, 0%));
  will-change: transform;
}
.story.is-pinned .spot {
  display: block; position: absolute; pointer-events: none;
  left: var(--x, 0%); top: var(--y, 0%); width: var(--w, 100%); height: var(--h, 100%);
  border: calc(2px / var(--s)) solid var(--accent); border-radius: calc(8px / var(--s));
  box-shadow: 0 0 0 9999px rgba(247, 245, 238, 0.55);
}

@media (max-width: 900px) {
  .story.is-pinned .step { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 1.25rem; }
  .story.is-pinned .shot { order: -1; justify-self: stretch; max-width: none; padding: 0.75rem; border-radius: 14px; }
  .story.is-pinned .step-copy { gap: 0.6rem; }
  .story.is-pinned .step-copy p { display: none; }
  .story.is-pinned .step-copy h2 { font-size: 1.5rem; }
  .story.is-pinned .beats { margin-top: 0.25rem; gap: 0.5rem; }
  .story.is-pinned .beats li { font-size: 0.95rem; }
  .story-rail button { font-size: 0.75rem; }
  .story-rail button span { display: none; }
}

/* interfaces: tabs advance as the section scrolls */
.stage.is-pinned .stage-pin { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1rem, 3vh, 2rem); }
.stage.is-pinned .panel figure { justify-items: center; }
.stage.is-pinned .panel .frame { width: 100%; max-width: calc((100svh - 64px - 12rem) * 1.75); }
.stage.is-pinned .panel figcaption { width: 100%; max-width: calc((100svh - 64px - 12rem) * 1.75); }
/* the three screens sit on one track that scroll slides sideways */
.stage.is-pinned { overflow-x: clip; }   /* screens slide out past the page edge */
.stage.is-pinned .panels { display: grid; }
.stage.is-pinned .panel { grid-area: 1 / 1; will-change: transform, opacity; }
.stage.is-pinned .tab-ind { display: block; position: absolute; top: 0.25rem; bottom: 0.25rem; left: 0; border-radius: 7px; background: var(--mark); }
.stage.is-pinned .tabs button { position: relative; background: none; }
.stage.is-pinned .tabs button[aria-selected="true"] { color: var(--ink); }

/* ── Plug in ──────────────────────────────────────────── */

.plug { background: var(--leaf-tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.plug-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem 4rem; align-items: start; }
.plug h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 1.5rem; }
.specs { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(19, 59, 46, 0.18); }
.specs li span:first-child { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.specs li span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--dot, var(--leaf)); }
.specs li:nth-child(3n+2) { --dot: #CA8A04; }
.specs li:nth-child(3n+3) { --dot: var(--apple); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(19, 59, 46, 0.18); font-size: 0.95rem; }
.specs li span:last-child { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); text-align: right; }
.snippets { display: grid; gap: 0.75rem; }
.snippet { background: var(--forest-3); border-radius: 12px; overflow: hidden; }
.snippet-head { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0.6rem 0.55rem 1rem; border-bottom: 1px solid rgba(247, 245, 238, 0.1); font: 500 0.78rem/1 var(--mono); color: rgba(247, 245, 238, 0.6); }
.copy {
  font: 500 0.75rem/1 var(--mono); color: rgba(247, 245, 238, 0.75);
  background: rgba(247, 245, 238, 0.08); border: 1px solid rgba(247, 245, 238, 0.14); border-radius: 6px;
  padding: 0.4rem 0.6rem; cursor: pointer;
}
.copy:hover { color: var(--paper); }
.copy:focus-visible { outline-color: var(--mark); }
.snippet pre { margin: 0; padding: 1rem; overflow-x: auto; font: 400 0.84rem/1.7 var(--mono); color: rgba(247, 245, 238, 0.88); }
.snippet pre b { color: var(--mark); font-weight: 500; }
@media (max-width: 900px) { .plug-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Final CTA ────────────────────────────────────────── */

.final { background: var(--forest); color: var(--paper); }
.final h2 { color: var(--paper); font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 14ch; }
.final .lede { color: rgba(247, 245, 238, 0.72); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.final-side { display: grid; gap: 1.5rem; }
@media (max-width: 900px) { .final-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
  .signup-row .btn { width: 100%; }
}

/* ── Legal pages ──────────────────────────────────────── */

.legal { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2.5rem 4rem; }
.legal-head { grid-column: 1 / -1; display: grid; gap: 1rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.legal-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.legal-kicker { font: 500 0.85rem/1 var(--mono); color: var(--leaf); display: flex; align-items: center; gap: 0.6rem; }
.legal-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--leaf); }
.legal-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 0.15rem; padding-left: 0.9rem; border-left: 2px solid var(--leaf-tint); }
.legal-toc a { font-size: 0.9rem; color: var(--ink-2); text-decoration: none; padding: 0.3rem 0; }
.legal-toc a:hover { color: var(--forest); }
.legal-body { max-width: 44rem; display: grid; gap: 2.25rem; }
.legal-body h2 { font-size: 1.45rem; margin-bottom: 0.6rem; max-width: none; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 0.75rem; }
.legal-body ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal-body li::marker { color: var(--leaf); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--leaf); text-underline-offset: 2px; }
.legal-body section { padding: 0; scroll-margin-top: 90px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1rem; }
}

/* ── Footer ───────────────────────────────────────────── */

footer { background: var(--forest-3); color: rgba(247, 245, 238, 0.6); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.75rem; padding-bottom: 2.25rem; border-top: 1px solid rgba(247, 245, 238, 0.12); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }

/* ── Scroll reveal (progressive enhancement) ──────────── */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
