/* Shared stylesheet for the buyer pages (/schools, /funds, /members): the
   homepage's design system, extracted so the generated pages match it. Edit
   the homepage's inline <style> first, then re-copy the shared part here. */

:root {
  --bg: #1a1512;
  --surface: #2a2420;
  --ink: #e9e2d3;
  --muted: #b3a894;
  --accent: #ff4a1f;
  --accent-ink: #1a1512;
  --field-1: #e9e2d3;
  --field-1-ink: #1a1512;
  --field-1-muted: #5a5047;

  --display: 'Gambarino', 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --text: 'General Sans', 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-poster: clamp(3.2rem, 9.5vw, 9.6rem);

  --m: clamp(20px, 2.2vw, 32px);
  --gap-section: clamp(120px, 14vw, 220px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.92; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* Buttons: one shape, square corners, flat */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--text); font-weight: 500; font-size: var(--step-body); text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: #ff6a45; }
.button:active { transform: translateY(1px) scale(0.985); }

/* Nav: one quiet row, takes the ink of the chapter beneath it */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--m); color: var(--ink); background: var(--bg);
  transition: color 300ms ease, background-color 300ms ease;
}
.nav.on-light { color: var(--field-1-ink); background: var(--field-1); }
.nav .mark { font-family: var(--display); font-size: var(--step-lead); text-decoration: none; letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: var(--step-body); }
.nav ul a { text-decoration: none; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: currentColor; transition: right var(--t-hover) var(--ease-out); }
.nav ul a:hover::after { right: 0; }
.nav .nav-action { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; font-weight: 500; }
@media (max-width: 767px) { .nav ul { display: none; } }

/* ============ HERO: the sentence is the layout, across two fields ============ */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr 1fr; }
.hero .field-top { background: var(--field-1); }
.hero .field-bottom { background: var(--bg); }
.hero .sentence-wrap { position: absolute; left: var(--m); right: var(--m); top: 50%; transform: translateY(calc(-50% - 0.12em)); font-size: var(--step-poster); }
.hero .sentence {
  font-family: var(--display); font-size: var(--step-poster); line-height: 0.92; letter-spacing: -0.02em;
  font-weight: 400; text-wrap: balance;
}
.hero .l1 { display: block; color: var(--field-1-ink); padding-bottom: 0.06em; }
.hero .l2 { display: block; color: var(--ink); padding-top: 0.06em; }
.hero .photo {
  position: absolute; right: var(--m); top: calc(50% + 0.95em); bottom: 48px; width: 42vw;
  overflow: hidden; background: var(--surface); font-size: var(--step-poster);
}
.hero .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0; }
.hero .photo img:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .photo img { animation: cycle 10s linear infinite; }
  .js .hero .photo img:nth-child(1) { animation-delay: 0s; }
  .js .hero .photo img:nth-child(2) { animation-delay: 2.5s; }
  .js .hero .photo img:nth-child(3) { animation-delay: 5s; }
  .js .hero .photo img:nth-child(4) { animation-delay: 7.5s; }
  @keyframes cycle { 0% { opacity: 0; } 8% { opacity: 1; } 25% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 0; } }
}
.hero .support {
  position: absolute; left: var(--m); bottom: 124px; max-width: 40ch;
  color: var(--ink); font-size: var(--step-body); line-height: 1.4; text-wrap: pretty;
}
.hero .action { position: absolute; left: var(--m); bottom: 48px; }
@media (max-width: 767px) {
  .hero { grid-template-rows: 38svh 62svh; }
  .hero .sentence-wrap { top: 38svh; }
  .hero .sentence { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .hero .photo { left: var(--m); right: var(--m); width: auto; top: calc(38svh + 2.3em); bottom: auto; height: 16svh; font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .hero .support { bottom: 96px; font-size: 16px; max-width: 30ch; }
  .hero .action { left: var(--m); right: var(--m); bottom: 24px; }
  .hero .action .button { width: 100%; }
}

/* ============ INTRO: pinned statement, photographs pass ============ */
.intro { position: relative; height: 230svh; }
.intro .pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; z-index: 2; pointer-events: none; }
.intro .pin p {
  margin-left: var(--m); width: min(44vw, 46ch);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; color: var(--ink); text-wrap: pretty;
}
.intro .photos { position: absolute; inset: 0; z-index: 1; }
.intro .photos figure { position: absolute; margin: 0; }
.intro .photos img { width: 100%; height: 100%; object-fit: cover; }
.intro .p1 { right: 5vw; top: 6svh; width: 26vw; aspect-ratio: 4 / 5; }
.intro .p2 { right: var(--m); top: 86svh; width: 50vw; aspect-ratio: 16 / 10; }
.intro .p3 { left: 56vw; top: 176svh; width: 15vw; aspect-ratio: 1 / 1; }
.intro .p3 img { object-position: 50% 30%; }
@media (max-width: 767px) {
  .intro { height: auto; padding: 120px 0 0; }
  .intro .pin { position: static; height: auto; display: block; pointer-events: auto; }
  .intro .pin p { width: calc(100% - 2 * var(--m)); font-size: clamp(1.25rem, 6vw, 1.5rem); }
  .intro .photos { position: static; display: flex; flex-direction: column; gap: 40px; margin-top: 64px; }
  .intro .photos figure { position: static; }
  .intro .p1 { width: 64%; margin-left: var(--m); }
  .intro .p2 { width: 78%; margin-left: auto; margin-right: var(--m); }
  .intro .p3 { width: 52%; margin-left: var(--m); }
}

/* ============ SHOWCASE: object in front of type ============ */
.showcase { position: relative; overflow: hidden; padding: var(--gap-section) 0 0; }
.showcase .stack { position: relative; z-index: 3; padding-inline: var(--m); white-space: nowrap; }
.showcase .stack > * { display: block; font-family: var(--display); font-weight: 400; font-size: var(--step-poster); line-height: 0.88; letter-spacing: -0.02em; margin: 0; }
.showcase .stack .soft { color: var(--muted); }
.showcase .stack .cap { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0 0.06em; margin-right: 0.08em; line-height: 0.82; }
.showcase .object {
  position: absolute; right: 4vw; top: calc(var(--gap-section) + 0.95 * var(--step-poster)); width: min(44vw, 560px);
  transform: rotate(-4deg); z-index: 1;
}
.showcase .facts { padding: 48px var(--m) 0; }
.showcase .facts > * { grid-column: 1 / span 6; }
@media (max-width: 1023px) { .showcase .facts > * { grid-column: 1 / span 12; } .showcase .object { position: relative; right: auto; top: auto; width: min(82vw, 560px); margin: 24px 0 0 auto; } }
@media (max-width: 767px) {
  .showcase .stack > * { font-size: 15vw; }
  .showcase .object { position: relative; right: auto; top: auto; width: 82vw; margin: 24px 0 0 auto; transform: rotate(-3deg); }
}

/* The thread: a real interface fragment */
[data-ui].thread {
  background: var(--field-1); color: var(--field-1-ink); padding: 22px 22px 18px; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  font-size: var(--step-small); line-height: 1.4;
}
[data-ui].thread .who { font-size: var(--step-small); color: var(--field-1-muted); margin-bottom: 14px; }
[data-ui].thread .msgs { display: flex; flex-direction: column; gap: 10px; }
[data-ui].thread .m { max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #d9d1c0; }
[data-ui].thread .m.me { align-self: flex-end; background: var(--bg); color: var(--ink); border-radius: 16px 16px 4px 16px; }
[data-ui].thread .note { font-size: var(--step-small); color: var(--field-1-muted); margin-top: 14px; }

/* The live thing: the district scan */
.scan { margin-top: 32px; }
.scan .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.scan .pick { position: relative; margin-top: 20px; }
.scan input[type=search] {
  width: 100%; min-height: 56px; padding: 0 16px; font: inherit; color: var(--ink); background: var(--surface);
  border: 0; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.scan input[type=search]::placeholder { color: var(--muted); }
.scan input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.scan input[type=search]:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.scan .matches { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 0; padding: 0; list-style: none; background: var(--surface); max-height: 320px; overflow: auto; }
.scan .matches:empty { display: none; }
.scan .matches li { padding: 12px 16px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.scan .matches li small { color: var(--muted); white-space: nowrap; }
.scan .matches li:hover, .scan .matches li[aria-selected=true] { background: var(--bg); }
.scan .quick { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.scan .quick button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.scan .quick button:hover { color: var(--ink); }
.scan .figure { font-family: var(--display); font-size: var(--step-head); line-height: 1; margin-top: 8px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scan .figure small { display: block; font-family: var(--text); font-size: var(--step-body); color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.scan .lines { margin-top: 20px; display: grid; gap: 10px; font-size: var(--step-body); }
.scan .lines div { display: flex; justify-content: space-between; gap: 16px; }
.scan .lines b { font-weight: 500; font-variant-numeric: tabular-nums; }
.scan .assume { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }

/* ============ FOR THE PERSON: statement, then what they get ============ */
.theirs { padding: var(--gap-section) var(--m) 0; }
.theirs h2 { font-size: var(--step-poster); line-height: 0.9; max-width: 10ch; }
.theirs .body { margin-top: 56px; row-gap: 48px; }
.theirs .photo { grid-column: 1 / span 5; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.theirs .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.theirs .list { grid-column: 7 / span 6; display: grid; gap: 36px; }
.theirs .item h3 { font-family: var(--text); font-weight: 500; font-size: var(--step-lead); line-height: 1.2; letter-spacing: 0; }
.theirs .item p { margin-top: 8px; max-width: 40ch; color: var(--ink); }
.theirs .why { grid-column: 1 / span 7; font-size: var(--step-body); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.theirs .facts { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.theirs .facts li { color: var(--ink); padding-left: 1.2em; text-indent: -1.2em; }
.theirs .facts li::before { content: "→"; display: inline-block; width: 1.2em; text-indent: 0; color: var(--accent); }
.theirs .facts a { color: inherit; text-decoration: none; }
.theirs .facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.theirs .why > p + p { margin-top: 0; }
@media (max-width: 1023px) { .theirs .photo, .theirs .list, .theirs .why { grid-column: 1 / span 12; } .theirs .photo { aspect-ratio: 3 / 2; } }

/* ============ HOW IT WORKS: lines that step across ============ */
.how { padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.how .stage { grid-column-end: span 12; }
.how .stage:nth-child(1) { grid-column-start: 1; }
.how .stage:nth-child(2) { grid-column-start: 3; grid-column-end: 13; }
.how .stage:nth-child(3) { grid-column-start: 5; grid-column-end: 13; }
.how .stage:nth-child(4) { grid-column-start: 7; grid-column-end: 13; }
.how .stage h2, .how .stage .line { font-family: var(--display); font-weight: 400; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.how .stage:nth-child(4) .line { color: var(--accent); }
.how .stage p { margin: 12px 0 0; max-width: 34ch; font-size: var(--step-body); color: var(--muted); }
@media (max-width: 767px) {
  .how { row-gap: 40px; }
  .how .stage, .how .stage:nth-child(2), .how .stage:nth-child(3), .how .stage:nth-child(4) { grid-column: 1 / span 12; }
  .how .stage:nth-child(2) { padding-left: 6vw; }
  .how .stage:nth-child(3) { padding-left: 12vw; }
  .how .stage:nth-child(4) { padding-left: 18vw; }
  .how .stage h2, .how .stage .line { font-size: 8.4vw; }
  .how .stage p { font-size: 16px; }
}

/* Tinted pictures: the accent as ground, the dendrite multiplied through it */
.tint { background: var(--accent); }
.tint img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); }

/* ============ BANDS: one picture, nothing on it ============ */
.band { position: relative; height: 78svh; overflow: clip; margin: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band.tall { height: 100svh; }
@media (max-width: 767px) { .band { height: 56svh; } .band.tall { height: 70svh; } }

/* ============ FEATURES: statements on colour fields ============ */
.fields .field { position: relative; min-height: 76svh; padding: 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.fields .field.light { background: var(--field-1); color: var(--field-1-ink); }
.fields .field.dark { background: var(--bg); color: var(--ink); }
.fields .field.mid { background: var(--surface); color: var(--ink); }
.fields .field .why { grid-column: 8 / span 4; align-self: start; max-width: 30ch; font-size: var(--step-body); line-height: 1.5; }
.fields .field .field-photo { grid-column: 8 / span 5; grid-row: 1; margin: 0 0 28px; aspect-ratio: 4 / 5; }
.fields .field .field-photo img { width: 100%; height: 100%; object-fit: cover; }
.fields .field .field-photo + .why { grid-row: 2; }
.fields .field .field-photo ~ h2 { grid-row: 3; }
.fields .field h2 { grid-column: 1 / span 10; align-self: end; font-size: var(--step-poster); line-height: 0.9; }
.fields .field.mirror .why { grid-column: 2 / span 4; }
.fields .field.mirror h2 { grid-column: 3 / span 10; text-align: right; }
@media (max-width: 767px) {
  .fields .field { min-height: 64svh; padding: 20px 16px; }
  .fields .field .why, .fields .field.mirror .why { grid-column: 1 / span 10; font-size: 16px; }
  .fields .field.mirror .why { grid-column: 3 / span 10; text-align: right; }
  .fields .field h2, .fields .field.mirror h2 { grid-column: 1 / span 12; text-align: left; font-size: 13vw; }
  .fields .field .field-photo { grid-column: 3 / span 10; }
  .fields .field .field-photo ~ h2 { margin-top: 40px; }
}

/* ============ LIST: statement, table pushed right ============ */
.where { padding: var(--gap-section) var(--m) calc(var(--gap-section) * 0.5); }
.where h2 { font-size: var(--step-head); line-height: 0.98; text-indent: 3vw; max-width: 24ch; }
.where .lede { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.where .body { margin-top: 64px; }
.where .name { grid-column: 7 / span 1; font-size: var(--step-small); color: var(--muted); padding-top: 2px; }
.where .table { grid-column: 7 / span 6; display: grid; gap: 26px; align-content: start; font-size: var(--step-body); }
.where .row { display: grid; grid-template-columns: 34% 1fr auto; gap: 20px; align-items: baseline; }
.where .row .k { color: var(--muted); }
.where .row .v { text-align: right; white-space: nowrap; }
.where .row.group { margin-top: 18px; }
@media (max-width: 1023px) {
  .where .name { display: none; }
  .where .table { grid-column: 1 / span 12; }
}
@media (max-width: 767px) {
  .where h2 { font-size: 9.5vw; text-indent: 0; }
  .where .body { margin-top: 48px; }
  .where .row { grid-template-columns: 1fr auto; }
  .where .row .k { grid-column: 1 / span 2; }
}

/* ============ CTA: the idea again, inverted ============ */
.close { position: relative; min-height: 90svh; background: var(--field-1); color: var(--field-1-ink); padding: var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: space-between; }
.close h2 { grid-column: 1 / span 12; font-size: var(--step-poster); line-height: 0.9; margin-top: 10vh; max-width: 10ch; }
.close .foot { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 16px; }
.close .foot p { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.35; }
.close .foot .button { grid-column: 10 / span 3; justify-self: end; }
@media (max-width: 767px) {
  .close { min-height: 80svh; padding: 20px; }
  .close h2 { font-size: 15vw; }
  .close .foot p { grid-column: 1 / span 12; font-size: 17px; }
  .close .foot .button { grid-column: 1 / span 12; width: 100%; justify-self: stretch; }
}

/* ============ FOOTER: invitation over a cropped name ============ */
.footer { position: relative; overflow: hidden; min-height: 100svh; background: var(--bg); color: var(--ink); padding: 160px var(--m) 0; display: flex; flex-direction: column; }
.footer .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.footer .invite { grid-column: 1 / span 7; }
.footer .invite h2 { font-size: var(--step-head); line-height: 0.95; max-width: 14ch; }
.footer .invite .button { margin-top: 28px; }
.footer .links { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 10px; font-size: var(--step-body); }
.footer .links a { text-decoration: none; }
.footer .links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .legal { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--step-small); color: var(--muted); padding-top: 120px; }
.footer .legal a { color: inherit; }
.footer .name { font-family: var(--display); font-size: 28vw; line-height: 0.8; white-space: nowrap; transform: translateY(30%); letter-spacing: -0.03em; margin-top: 8px; }
@media (max-width: 767px) {
  .footer { padding-top: 96px; }
  .footer .invite { grid-column: 1 / span 12; }
  .footer .invite h2 { font-size: 11vw; }
  .footer .invite .button { width: 100%; }
  .footer .links { grid-column: 1 / span 12; flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
  .footer .name { font-size: 34vw; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(22px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .js .intro .photos figure { transition: transform 1.2s var(--ease-soft); transform: scale(0.96); }
  .js .intro .photos figure.in { transform: none; }
}

.hero .action { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.hero .action .door { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; font: inherit; font-weight: 500; color: var(--ink); background: var(--surface); text-decoration: none; }
.hero .action .door:hover { background: #352e29; }
.wedge { padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.wedge h2 { grid-column: 1 / span 12; font-size: var(--step-poster); line-height: 0.9; letter-spacing: -0.02em; }
.wedge .text { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.wedge .text p + p { margin-top: 16px; }
.wedge .text a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.wedge .obj { grid-column: 7 / span 6; }
.wedge .figure { font-family: var(--display); font-size: var(--step-head); line-height: 1; margin-top: 28px; letter-spacing: -0.02em; }
.wedge .figure-sub { font-size: var(--step-body); color: var(--muted); margin-top: 8px; max-width: 40ch; }
@media (max-width: 1023px) { .wedge .text, .wedge .obj { grid-column: 1 / span 12; } }
.theirs .facts li small { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.founders { padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.founders h2 { grid-column: 1 / span 12; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.founders p { grid-column: 1 / span 7; margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; }
@media (max-width: 1023px) { .founders p { grid-column: 1 / span 12; } }
@media (max-width: 767px) { .where h2 { font-size: 2rem; } .hero .action .door { width: 100%; justify-content: center; } .hero .photo { height: 11svh; } .hero .support { bottom: 150px; } .hero .action { bottom: 24px; } }

/* ============ Buyer pages: pieces the homepage doesn't have ============ */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.scan-section { padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.scan-section h2 { grid-column: 1 / span 12; font-size: var(--step-poster); line-height: 0.9; letter-spacing: -0.02em; }
.scan-section .lede { grid-column: 1 / span 6; margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); max-width: 40ch; }
.scan-section .scan { grid-column: 1 / span 6; }
@media (max-width: 1023px) { .scan-section .lede, .scan-section .scan { grid-column: 1 / span 12; } }
.theirs .item-lede { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; margin-bottom: 8px; }
.theirs .item p { max-width: 44ch; }
.where > .lede { margin-top: 40px; }
.where .table .row .k { color: var(--ink); }
.close .ask { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 760px; }
.close .ask .field { display: grid; gap: 8px; }
.close .ask .field.wide { grid-column: 1 / span 2; }
.close .ask label { font-size: var(--step-small); color: var(--muted); }
.close .ask label .hint { color: var(--muted); }
.close .ask input, .close .ask textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--field-1-ink); background: rgba(26, 21, 18, 0.06); border: 0; border-radius: 0; }
.close .ask textarea { min-height: 96px; resize: vertical; }
.close .ask input:focus, .close .ask textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.close .ask .button { margin-top: 4px; }
.close .form-note, .close .form-error { margin-top: 12px; font-size: var(--step-small); color: var(--muted); max-width: 56ch; }
.close .form-error { color: var(--accent); }
.close .form-success { margin-top: 24px; font-size: var(--step-lead); }
@media (max-width: 767px) { .close .ask { grid-template-columns: 1fr; } .close .ask .field.wide { grid-column: auto; } }
.founders p a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
#more .table .row { grid-template-columns: 3fr 5fr 4fr; align-items: start; }
#more .table .row span { white-space: normal; }
#more .table .row .v { text-align: left; color: var(--muted); }
.close .ask { grid-column: 1 / span 7; }
.close .form-success { grid-column: 1 / span 7; }
@media (max-width: 1023px) { .close .ask, .close .form-success { grid-column: 1 / span 12; } #more .table .row { grid-template-columns: 1fr; gap: 4px; } }
#more .table { grid-column: 1 / span 12; gap: 22px; }
#more .table .row { grid-template-columns: 3fr 5fr 4fr; }
#trial h2 { max-width: 14ch; }

/* ---- /funds pieces ---- */
.scan-section .scan .lines small, .scan-section .who-table small { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.who-table { grid-column: 1 / span 12; margin-top: 48px; display: grid; gap: 18px; font-size: var(--step-body); }
.who-table .row { display: grid; grid-template-columns: 4fr 3fr 3fr 4fr; gap: 24px; align-items: start; }
.who-table .row.head { color: var(--muted); font-size: var(--step-small); }
.who-table .row .k { color: var(--ink); }
.who-table .row .v { color: var(--muted); }
.scan-section > .assume { grid-column: 1 / span 12; margin-top: 18px; font-size: var(--step-small); color: var(--muted); max-width: 70ch; }
@media (max-width: 1023px) { .who-table .row { grid-template-columns: 1fr; gap: 4px; } .who-table .row.head { display: none; } .who-table { gap: 24px; } }
.calc-section .scan { grid-column: 1 / span 7; }
.calc-section .inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 24px; margin: 24px 0 8px; }
.calc-section .field { display: grid; gap: 8px; }
.calc-section label { font-size: var(--step-small); color: var(--muted); }
.calc-section input, .calc-section select { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--surface); border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; }
.calc-section select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23e9e2d3' stroke-width='2'/%3E%3C/svg%3E"); background-position: calc(100% - 14px) 50%; background-repeat: no-repeat; padding-right: 36px; }
.calc-section input:focus, .calc-section select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.calc-section .hint { grid-column: 1 / span 3; font-size: var(--step-small); color: var(--muted); max-width: 70ch; }
.calc-section .figure { margin-top: 28px; }
.calc-section .methods { grid-column: 1 / span 7; margin-top: 28px; font-size: var(--step-small); color: var(--muted); }
.calc-section .methods summary { cursor: pointer; color: var(--ink); }
.calc-section .methods ul { padding-left: 1.2em; margin-top: 12px; display: grid; gap: 8px; max-width: 70ch; }
@media (max-width: 1023px) { .calc-section .scan, .calc-section .methods { grid-column: 1 / span 12; } }
@media (max-width: 767px) { .calc-section .inputs { grid-template-columns: 1fr; } .calc-section .hint { grid-column: auto; } }
.how .stage h2 + .line { margin-top: 24px; }
.calc-section .hint { margin: 0 0 8px; }
#fees .table { grid-column: 1 / span 12; }
#fees .table .row { grid-template-columns: 1fr 1fr; align-items: start; }
#fees .table .row .v { text-align: left; white-space: normal; color: var(--ink); }
#fees .table .row.group .v { color: var(--muted); }
.calc-section h2, #rule h2 { font-size: var(--step-head); line-height: 1; }
#never h2, #close h2 { max-width: 14ch; }
.scan-section small, .scan-section > .assume, .scan .assume, .calc-section .methods, .calc-section label, .calc-section .hint, .who-table .row.head, .theirs .facts li small { font-size: 1rem; }
.how { row-gap: 40px; }
#rule { padding-bottom: calc(var(--gap-section) * 0.5); }
#fees { padding-top: calc(var(--gap-section) * 0.6); }
#fees .body { margin-top: 40px; }

/* ---- /members pieces ---- */
.calc-section .inputs.two { grid-template-columns: 1fr 1fr; }
.calc-section .inputs .field .hint { font-size: var(--step-small); color: var(--muted); max-width: 44ch; }
.calc-section .result { margin-top: 32px; display: grid; gap: 12px; max-width: 56ch; }
.calc-section .result .headline { font-family: var(--display); font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.02em; }
.calc-section .result p[hidden] { display: none; }
.calc-section .result .button { justify-self: start; margin-top: 8px; }
.close .ask.join { grid-column: 1 / span 7; margin-top: 40px; display: block; }
.close .ask.join .pill-field { display: flex; gap: 12px; flex-wrap: wrap; }
.close .ask.join input { flex: 1 1 260px; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--field-1-ink); background: rgba(26, 21, 18, 0.06); border: 0; border-radius: 0; }
.close .ask.join input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.close .ask.join .button { min-height: 52px; }
@media (max-width: 1023px) { .close .ask.join { grid-column: 1 / span 12; } }
@media (max-width: 767px) { .calc-section .inputs.two { grid-template-columns: 1fr; } }
.calc-section .result .headline { font-family: var(--text); font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: 0; }
#help h2, #close h2 { max-width: 16ch; }
.close .ask.join input::placeholder, .close .ask input::placeholder { color: #5f5648; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.close .form-note, .close .form-error, .close .ask label, .close .ask label .hint, .close .form-success { color: #5f5648; } .close .form-error { color: var(--accent); }
.calc-section .field { grid-template-columns: 1fr; }
#more .table .row.head span, #more .table .row.head .k { color: var(--muted); font-size: 1rem; }
@media (max-width: 1023px) { #more .table .row.head { display: none; } }
.scan .lines b { white-space: nowrap; }

/* A dark section set on paper: same cream and ink as the close, tokens swapped locally so every child follows. */
.paper { background: var(--field-1); color: var(--field-1-ink); --ink: var(--field-1-ink); --muted: #463e33; --surface: #ddd4c2; }
.theirs.paper { padding-bottom: var(--gap-section); }
.where.paper { padding-bottom: var(--gap-section); }
