/* ------------------------------------------------------------------
   TalkMoney — marketing site
   Tokens, logo and wordmark lifted from web/src/styles.css so the site and
   the product are one brand, not two.
   ------------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink:    #172521;
  --green:  #1f4d3e;
  --lime:   #ddeb6a;
  --cream:  #f5f3ee;
  --line:   #deddd6;
  --muted:  #718079;
  --sage:   #6d8474;
  --olive:  #628117;
  --leaf:   #cfe08a;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .display { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type scale ---------- */
.display-xl { font-size: clamp(42px, 6.4vw, 92px);  line-height: 1.0;  letter-spacing: -.045em; font-weight: 700; }
.display-l  { font-size: clamp(38px, 5.4vw, 76px);  line-height: 1.02; letter-spacing: -.042em; font-weight: 700; }
.display-m  { font-size: clamp(30px, 3.4vw, 48px);  line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.h3         { font-size: clamp(20px, 1.9vw, 26px);  line-height: 1.2;  letter-spacing: -.02em;  font-weight: 700; }
.lede       { font-size: clamp(17px, 1.3vw, 20px);  line-height: 1.65; }
.body       { font-size: 15.5px; line-height: 1.72; }
.small      { font-size: 13px; line-height: 1.6; }

.eyebrow {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 11px; letter-spacing: 1.7px; text-transform: uppercase;
}

.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 11px;
  font: 700 15px/1 'DM Sans', sans-serif; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(23,62,48,.28); }
.btn-primary:hover { background: #28614e; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #e6f189; }
.btn-ghost-light { border: 1px solid rgba(245,243,238,.42); color: #f5f3ee; }
.btn-ghost-light:hover { border-color: rgba(245,243,238,.8); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: #9ca59f; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 78px;
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(245,243,238,.86); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo-accent { color: #cfe08a; }
.nav.solid .logo-accent,
[data-stage="light"] .logo-accent { color: #76941f; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.7px; color: #f5f3ee; }
.nav.solid .logo { color: var(--ink); }
.nav.solid .logo span span { color: #76941f; }
.brand-mark {
  width: 37px; height: 37px; border-radius: 11px; flex: none;
  display: inline-grid; place-items: center; background: var(--green);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 13.5px; color: rgba(245,243,238,.88); }
.nav.solid .nav-links { color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav.solid .nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ==================================================================
   THE STAGE — three scroll beats over one fixed WebGL canvas
   ================================================================== */

#backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* high sun, off to the right — the same light the coins reflect */
    radial-gradient(34% 26% at 78% 2%, rgba(255,250,224,.75) 0%, rgba(255,250,224,0) 70%),
    /* summer sky, bleaching toward the horizon */
    radial-gradient(90% 58% at 64% -6%, rgba(126,186,222,.95) 0%, rgba(126,186,222,0) 66%),
    /* haze sitting on the treeline */
    radial-gradient(110% 26% at 50% 40%, rgba(230,238,229,.26) 0%, rgba(230,238,229,0) 72%),
    linear-gradient(172deg,
      #4f9bcb 0%, #7ab4cf 14%, #a8c8c9 29%,
      #93aa93 45%, #718d7a 62%, #55705e 81%, #3a4e44 100%);
}
/* vignette keeps the eye on the coins and the copy */
#backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(78% 68% at 50% 46%, rgba(0,0,0,0) 40%, rgba(21,33,28,.30) 100%);
}
/* Fine grain over the whole stage. A large flat gradient bands badly on
   8-bit displays; a little noise hides it and gives the sky some tooth. */
#grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.sheet { background: var(--cream); }   /* covers the grain once content starts */
#gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none;
      /* The sorter's lanes run in from the top of the frame. Faded under the
         nav, they emerge from beneath it instead of rolling across the logo. */
      -webkit-mask-image: linear-gradient(to bottom, transparent 96px, #000 196px);
              mask-image: linear-gradient(to bottom, transparent 96px, #000 196px); }

#stage { position: relative; z-index: 3; }
/* Each beat is TALLER than the viewport and pins its content to the middle
   of the screen while you scroll through it. Without the pin you catch two
   headlines crossing over mid-transition, or a dead gap where neither is
   readable — the copy needs dwell time, the way Oryzo and Jeton give it. */
.beat { position: relative; }
.beat-hero  { min-height: 116vh; }
.beat-glow  { min-height: 168vh; }

.beat-inner {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center;
  padding-top: 78px;   /* clear the fixed nav */
}

.beat-copy { max-width: 640px; position: relative; z-index: 1; }

/* The hero headline runs bigger than every other display size on the page,
   and it gets its own column width to do it in. 640px is right for a beat you
   scroll past; the first screen is the one thing a visitor is guaranteed to
   read, and at the shared size it was sitting in the left third looking like a
   caption for the jar rather than the point of the page. The ceiling is set so
   the longest line still stops short of where the jar starts. */
.beat-hero .beat-copy { max-width: 960px; }
.beat-hero .display-xl { font-size: clamp(46px, 7.8vw, 118px); letter-spacing: -.05em; }
.beat-hero .lede { font-size: clamp(18px, 1.45vw, 22px); }
.beat-centre { text-align: center; margin-inline: auto; max-width: 820px; }
/* Beats 1 and 2 sit to one side, alternating, so the copy is always opposite
   what the camera is looking at: right while it looks left at the accounts
   merging, left while it follows the rail down to the stacks on the right. */
.beat-side  { max-width: 520px; }
.beat-right { margin-left: auto; text-align: right; }

/* ---------- the sorter's labels ----------
   Words only, never figures. Small and set in the eyebrow's voice: the
   drawing carries the weight and the type just names the parts, the way
   Depot labels its diagrams. They sit between the canvas and the copy. */
.cs-labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.cs-lane, .cs-tube {
  position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity;
  font: 700 10.5px/1 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: #56786a; opacity: 0;
}
/* The account names sit ON their lanes, as small tags the coins roll behind —
   a station sign rather than a caption. Beside a lane they collided with every
   coin that passed, because a coin stands taller than the gap between lanes. */
.cs-lane {
  padding: 6px 10px 5px; border-radius: 999px;
  background: rgba(247, 245, 238, .88); border: 1px solid rgba(86, 120, 106, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -10px rgba(23, 37, 33, .35);
}
.cs-tube { padding-top: 4px; color: #4b6a5d; }
.cs-tube.cs-spend { color: #5d7a17; }

/* A soft scrim so the headline always wins against whatever the coins are
   doing behind it. Painted on the full-bleed SECTION rather than on the copy:
   an oversized pseudo-element on a padded child widens the page's scroll box
   and gives you a horizontal scrollbar on a phone. */
.beat-glow .beat-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 34% at 50% 50%, rgba(46,62,54,.60) 0%, rgba(46,62,54,.30) 48%, rgba(46,62,54,0) 76%);
}
.beat-hero .beat-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(44% 44% at 28% 54%, rgba(40,56,48,.52) 0%, rgba(40,56,48,0) 76%);
}
.beat-inner > .wrap { position: relative; z-index: 1; width: 100%; }

.on-dark { color: #f7f6f1; }
.on-dark .lede, .on-dark .body { color: rgba(240,243,232,.82); }

.scroll-cue {
  position: absolute; left: var(--pad); bottom: 38px;
  display: flex; align-items: center; gap: 9px;
  font: 800 10px/1 'Manrope', sans-serif; letter-spacing: 1.8px;
  color: rgba(240,243,232,.55);
}
.scroll-cue svg { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

.trust-line {
  margin-top: 30px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(240,243,232,.66);
}

/* ==================================================================
   CONTENT — scrolls up over the canvas
   ================================================================== */

.sheet { position: relative; z-index: 4; }
section.band { padding-block: clamp(72px, 9vw, 132px); }
.band-cream { background: var(--cream); }
.band-bone  { background: #eceae3; }
.band-ink   { background: var(--ink); color: var(--cream); }
.band-ink .muted { color: rgba(240,243,232,.58); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { color: var(--olive); margin-bottom: 18px; }
.band-ink .section-head .eyebrow { color: var(--leaf); }
.section-head p { margin-top: 18px; }

/* ---------- the misattribution proof ---------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.proof-card {
  border-radius: 22px; padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 260px;
}
.proof-wrong { background: #efe7e3; border: 1px solid #e0cfc7; }
.proof-right { background: var(--green); color: var(--cream); }
.proof-num { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.045em;
             font-size: clamp(38px, 5.2vw, 72px); line-height: 1; margin-block: 14px 10px; }
.proof-wrong .proof-num { color: #8d5a48; text-decoration: line-through; text-decoration-thickness: 3px; }
.proof-right .proof-num { color: var(--lime); }
.proof-label { font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.proof-note { font-size: 14.5px; line-height: 1.65; }
.proof-wrong .proof-note { color: #6f5a52; }
.proof-right .proof-note { color: rgba(240,243,232,.8); }

.proof-verdict {
  margin-top: 34px; font-size: clamp(19px, 2vw, 27px); line-height: 1.45;
  font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -.02em; max-width: 760px;
}
.proof-verdict em { font-style: normal; color: var(--olive); }

/* ---------- ask-it cards ---------- */
.asks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.ask {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 28px; display: flex; gap: 16px; align-items: flex-start;
}
.ask-q { font-size: 16.5px; line-height: 1.5; font-weight: 600; }
.ask-a { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.ask-mark {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #eef2dc; border: 1px solid #cfdb9f; color: #55722c;
  font: 800 13px/1 'Manrope', sans-serif;
}

/* ---------- brief signals ---------- */
.signals { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.signal {
  border: 1px solid rgba(245,243,238,.14); background: rgba(245,243,238,.05);
  border-radius: 18px; padding: 24px 24px 26px;
}
.signal h4 { font-size: 16.5px; letter-spacing: -.015em; margin-bottom: 8px; }
.signal p { font-size: 14px; line-height: 1.6; color: rgba(240,243,232,.62); }
.signal-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
               background: rgba(214,229,154,.13); border: 1px solid rgba(214,229,154,.25); margin-bottom: 18px; }

/* ---------- working / explainability ---------- */
.working { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.chat {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(39,69,54,.10), 0 2px 7px rgba(39,69,54,.05);
}
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
             font-size: 12.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8fbf4a; }
.chat-body { padding: 22px 22px 24px; display: grid; gap: 16px; }
.msg-you { justify-self: end; max-width: 78%; background: #eef2dc; border: 1px solid #dde6bb;
           border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.msg-it { max-width: 92%; font-size: 14.5px; line-height: 1.7; }
.msg-it strong { font-weight: 700; }
.used {
  margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px;
  font-size: 12px; color: var(--muted);
}
.used-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 6px 0 0;
  background: #f4f6ea; border: 1px solid #dfe6c6; border-radius: 999px;
  padding: 5px 11px; font-size: 11.5px; color: #55722c; font-weight: 600;
}

/* ---------- security ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.fact { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 26px; }
.fact h4 { font-size: 16.5px; margin-bottom: 9px; letter-spacing: -.015em; }
.fact p { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- final CTA ---------- */
.cta { text-align: center; }
.cta .btn { min-height: 54px; padding: 0 30px; font-size: 16px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: rgba(240,243,232,.52); padding-block: 44px; font-size: 12.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a:hover { color: var(--cream); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- no-WebGL fallback: keep the page beautiful without the canvas ---------- */
.no-webgl #gl { display: none; }
.no-webgl #backdrop {
  background:
    radial-gradient(60% 44% at 78% 16%, rgba(255,222,150,.5) 0%, rgba(255,222,150,0) 60%),
    radial-gradient(78% 56% at 72% 6%, rgba(160,205,226,.85) 0%, rgba(160,205,226,0) 62%),
    linear-gradient(170deg, #8fb6c9 0%, #7f9c99 24%, #6f8a79 46%, #5c7463 68%, #46594e 100%);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */

@media (max-width: 1040px) {
  .proof { grid-template-columns: 1fr; }
  .asks { grid-template-columns: 1fr; }
  .signals { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .working { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links .hide-sm { display: none; }
  .signals { grid-template-columns: 1fr; }

  /* Nav has to fit a long wordmark AND a CTA on a 390px screen */
  .nav { height: 66px; }
  .logo { font-size: 17px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .nav .btn { min-height: 38px; padding: 0 13px; font-size: 13px; }

  /* On a phone there is no "beside the copy" — the coins go underneath it,
     so the hero text is top-aligned and the lower third is left to them. */
  .beat-inner { height: 100svh; }
  .beat-hero { min-height: 110vh; }
  .beat-glow { min-height: 150vh; }
  .beat-hero .beat-inner { align-items: flex-start; padding-top: 96px; }
  .beat-hero .beat-copy { padding-bottom: 40vh; }
  .beat-right { margin-left: 0; text-align: left; }
  .beat-right .lede { margin-left: 0 !important; }
  .beat-hero .beat-inner::before { background: radial-gradient(60% 30% at 50% 26%, rgba(40,56,48,.46) 0%, rgba(40,56,48,0) 78%); }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }

  .proof-card { min-height: 0; }
  .ask { flex-direction: column; gap: 12px; }
}

/* ==================================================================
   SOFT-3D / TOON STAGE

   The eucalypt sky: a light, warm ground with a blue top. This flips the
   whole page — backdrop, copy, scrims and nav all assume dark otherwise.

   Note this is keyed on `data-stage`, not `data-style`. The stage (how
   light the page and the reflected environment are) and the render style
   (metal / soft-3D / toon) are independent: metal on the light stage is
   the shipping look, and ?stage=dark still gives the studio-on-black
   treatment for comparison.
   ================================================================== */

[data-stage="light"] #backdrop {
  background:
    radial-gradient(38% 30% at 76% 4%, rgba(255,250,228,.9) 0%, rgba(255,250,228,0) 70%),
    linear-gradient(176deg,
      #a9d3e8 0%, #c7e0ea 18%, #e4ebe3 40%,
      #f2ede0 62%, #f6f1e6 82%, #f7f3ea 100%);
}
/* no vignette: it is a darkening device and this stage is light */
[data-stage="light"] #backdrop::after { background: none; }
[data-stage="light"] #grain { opacity: .10; mix-blend-mode: multiply; }

/* copy flips to ink */
[data-stage="light"] .on-dark { color: var(--ink); }
[data-stage="light"] .on-dark .lede,
[data-stage="light"] .on-dark .body { color: #5c6b64; }
[data-stage="light"] .beat-hero .eyebrow { color: #5d7a17 !important; }
[data-stage="light"] .beat-hero .eyebrow svg { stroke: #5d7a17 !important; }
[data-stage="light"] .trust-line { color: #6d7c75; }
[data-stage="light"] .trust-line svg { stroke: #6d7c75; }
[data-stage="light"] .scroll-cue { color: #7b8a83; }
[data-stage="light"] .scroll-cue svg { stroke: currentColor; }

/* scrims lighten instead of darken */
[data-stage="light"] .beat-glow .beat-inner::before {
  background: radial-gradient(46% 34% at 50% 50%, rgba(250,248,240,.82) 0%, rgba(250,248,240,.42) 48%, rgba(250,248,240,0) 76%);
}
[data-stage="light"] .beat-hero .beat-inner::before {
  background: radial-gradient(44% 44% at 28% 54%, rgba(250,248,240,.78) 0%, rgba(250,248,240,0) 76%);
}

/* nav and buttons */
[data-stage="light"] .nav .logo { color: var(--ink); }

[data-stage="light"] .nav-links { color: #6d7c75; }
[data-stage="light"] .nav-links a:hover { color: var(--ink); }
[data-stage="light"] .btn-ghost-light { border-color: rgba(23,37,33,.24); color: var(--ink); }
[data-stage="light"] .btn-ghost-light:hover { border-color: rgba(23,37,33,.5); }

@media (max-width: 760px) {
  [data-stage="light"] .beat-hero .beat-inner::before {
    background: radial-gradient(60% 30% at 50% 26%, rgba(250,248,240,.8) 0%, rgba(250,248,240,0) 78%);
  }
}

/* ==================================================================
   DARK STAGE — a studio on black. ?stage=dark

   Polished metal is nothing but the reflection of its surroundings, so a
   dark backdrop is what lets a bright reeded edge register at all. Kept
   as an alternative rather than the default: it reads as more dramatic,
   but it abandons the blue-sky brief. Keeps the eucalypt hue rather than
   going to pure black.
   ================================================================== */

[data-stage="dark"] #backdrop {
  background:
    radial-gradient(42% 34% at 74% 6%, rgba(120,170,190,.20) 0%, rgba(120,170,190,0) 70%),
    radial-gradient(60% 46% at 30% 92%, rgba(255,122,42,.10) 0%, rgba(255,122,42,0) 70%),
    linear-gradient(172deg, #16242a 0%, #14201f 34%, #101a19 64%, #0a1211 100%);
}
[data-stage="dark"] #backdrop::after {
  background: radial-gradient(74% 64% at 50% 44%, rgba(0,0,0,0) 34%, rgba(0,0,0,.5) 100%);
}
[data-stage="dark"] #grain { opacity: .12; }

/* ==================================================================
   LEGAL PAGES — privacy, CDR policy, terms, complaints

   Plain reading pages: no canvas, the nav always solid, one measure-wide
   column. Placeholders Ken has to fill are marked .ph so they cannot be
   missed in review; there should be none left at launch.
   ================================================================== */

.page-legal { background: var(--cream); }
.page-legal .nav { background: rgba(245,243,238,.92); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.page-legal .nav .logo { color: var(--ink); }
.page-legal .logo-accent { color: #76941f; }
.page-legal .nav-links { color: var(--muted); }
.page-legal .nav-links a:hover { color: var(--ink); }
.page-legal .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.legal { padding: 140px 0 110px; }
.legal .wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 5vw, 80px); }
.legal-toc { position: sticky; top: 110px; align-self: start; font-size: 13px; line-height: 1.5; }
.legal-toc p { font: 800 11px/1 'Manrope', sans-serif; letter-spacing: 1.7px; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.legal-toc a { display: block; padding: 5px 0; color: var(--muted); }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.legal article { font-size: 16px; line-height: 1.72; color: #33433d; }
.legal article .eyebrow { color: var(--olive); margin-bottom: 16px; }
.legal article h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.04em; color: var(--ink); }
.legal article .updated { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.legal article .summary {
  margin: 34px 0 10px; padding: 22px 24px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
}
.legal article .summary h2 { margin: 0 0 8px; font-size: 16px; border: 0; padding: 0; }
.legal article .summary ul { margin: 0; }
.legal article h2 {
  font-size: 23px; letter-spacing: -.02em; color: var(--ink);
  margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal article h3 { font-size: 17px; color: var(--ink); margin: 28px 0 8px; }
.legal article p, .legal article ul, .legal article ol, .legal article table { margin: 0 0 14px; }
.legal article ul, .legal article ol { padding-left: 22px; }
.legal article li { margin-bottom: 6px; }
.legal article a { color: #4f6d1a; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(79,109,26,.35); }
.legal article a:hover { text-decoration-color: currentColor; }
.legal article strong { color: var(--ink); }
.legal article table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.legal article th, .legal article td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.legal article th { font: 700 12px/1.3 'Manrope', sans-serif; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.legal article .callout {
  padding: 18px 20px; border-radius: 14px; background: #eef2dc; border: 1px solid #dde6bb; color: #3d4f2a;
}
.legal article address { font-style: normal; }

/* Something only Ken can supply. Loud on purpose. */
.ph {
  background: #fff1b8; color: #6b4b00; border: 1px dashed #d4a21a; border-radius: 5px;
  padding: 0 5px; font-weight: 600; font-size: .94em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* the fuller footer the legal pages need: entity, ABN, CDR statement */
footer .footer-legal { flex-basis: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(240,243,232,.12);
  font-size: 12px; line-height: 1.65; color: rgba(240,243,232,.46); max-width: 980px; }
footer .footer-legal p + p { margin-top: 8px; }
footer .footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
footer .ph { background: rgba(255,241,184,.14); color: #f3d57a; border-color: rgba(243,213,122,.5); }

@media (max-width: 900px) {
  .legal { padding-top: 110px; }
  .legal .wrap { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .legal-toc p { flex-basis: 100%; margin-bottom: 4px; }
  .legal article table { display: block; overflow-x: auto; }
}
