/* OPEN — Brand tokens & typography
   Per OPEN brand guidelines (Snask, 2022):
   - OPEN Display for headlines, OPEN Text for body
   - Rebecca Purple #663399 is the brand colour
   - For Open Inc (parent), black is primary; purple is the signature
*/

@font-face {
  font-family: "OPEN Display";
  src: url("../assets/fonts/OPENDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Display";
  src: url("../assets/fonts/OPENDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Display";
  src: url("../assets/fonts/OPENDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Display";
  src: url("../assets/fonts/OPENDisplay-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OPEN Text";
  src: url("../assets/fonts/OPENText-Thin.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Text";
  src: url("../assets/fonts/OPENText-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Text";
  src: url("../assets/fonts/OPENText-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Text";
  src: url("../assets/fonts/OPENText-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OPEN Text";
  src: url("../assets/fonts/OPENText-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand purples (from OPEN guidelines) */
  --rebecca-purple: #663399;
  --accent-purple: #9747ff;
  --bright-purple: #e3cdff;   /* soft tint */
  --brighter-purple: #b993e4;
  --darker-purple: #4b1478;
  --dark-purple: #2e0045;

  /* Communication */
  --rich-orange: #ff3216;
  --mint-green: #b7f8c6;
  --pink: #ff98e0;
  --beige: #d7c1be;

  /* Neutrals — Open Inc leans institutional */
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #4a4a4a;
  --muted-2: #6b6b6b;
  --rule: #e8e8e8;
  --rule-2: #f0f0f0;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f5f3f0;

  /* Type */
  --font-display: "OPEN Display", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-text: "OPEN Text", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Tailwind base resets get most of this — these are brand layers on top */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

.font-display { font-family: var(--font-display); letter-spacing: -0.022em; }
.font-text { font-family: var(--font-text); }

/* Display sizing — Eternal-style, very large, bold, tight */
.h-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.6vw, 5.75rem);  /* 67–92px on desktop */
  line-height: 0.98;
  letter-spacing: -0.032em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.5rem);   /* 48–72px on desktop */
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.h-card {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-light { color: rgba(255,255,255,0.7); }
.lede {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.body-lg {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Signature purple accent — used sparingly */
.accent-rule {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--rebecca-purple);
  vertical-align: middle;
}
.purple-underline {
  background-image: linear-gradient(transparent 65%, rgba(102,51,153,0.18) 65%);
  background-repeat: no-repeat;
  padding: 0 0.05em;
}
.dot-purple { color: var(--rebecca-purple); }

/* Stat number */
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.4vw, 5rem);   /* 64–96px on desktop */
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--rebecca-purple); border-color: var(--rebecca-purple); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(10,10,10,0.18);
}
.btn-ghost:hover { border-color: var(--rebecca-purple); color: var(--rebecca-purple); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-text);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 160ms ease;
}
.btn-link:hover { color: var(--rebecca-purple); }

/* Section frame */
.section {
  padding: clamp(4rem, 10vw, 8.75rem) 0;   /* 96–140px desktop, 64+ mobile */
  border-top: 1px solid var(--rule);
}
.section.no-rule { border-top: 0; }
.section-tight { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.container-x {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

/* Anchor targets clear the sticky header */
:target,
section[id],
main > section {
  scroll-margin-top: 96px;
}
.nav-link {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-2);
  position: relative;
}
.nav-link:hover { color: var(--rebecca-purple); }

.mobile-link {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-link:last-of-type { border-bottom: 0; }

/* Business card */
.biz-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.biz-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--biz-accent, var(--rebecca-purple));
}
.biz-card:hover {
  border-color: var(--biz-accent, var(--rebecca-purple));
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -28px rgba(102,51,153,0.25);
}
.biz-card .biz-tag {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--biz-accent, var(--rebecca-purple));
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--biz-tag-bg, rgba(102,51,153,0.04));
}
.biz-card .biz-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--biz-accent, var(--rebecca-purple));
}

/* Per-business accents (Open brand world) */
.biz-money       { --biz-accent: #663399; --biz-tag-bg: rgba(102,51,153,0.05); }
.biz-zwitch      { --biz-accent: #0a0a0a; --biz-tag-bg: rgba(10,10,10,0.04); }
.biz-bankingstack{ --biz-accent: #2e0045; --biz-tag-bg: rgba(46,0,69,0.05); }

/* Dark purple section (Vision & Mission) */
.section-dark {
  background: var(--dark-purple);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark .h-section,
.section-dark .h-card { color: #fff; }
.section-dark .lede,
.section-dark .body-lg { color: rgba(255,255,255,0.78); }
.section-dark .eyebrow { color: rgba(255,255,255,0.62); }
.section-dark .accent-rule { background: var(--accent-purple); }
.section-dark::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(151,71,255,0.28), rgba(151,71,255,0) 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* Stat block */
.stat {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

/* Quote block (founder note) */
.quote-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--rebecca-purple);
  display: inline-block;
}

/* Hero ornament — subtle purple signature in the corner */
.hero-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape::after {
  content: "";
  position: absolute;
  bottom: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(151,71,255,0.16), rgba(151,71,255,0) 60%);
  border-radius: 50%;
}
.hero-shape::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(227,205,255,0.55), rgba(227,205,255,0) 65%);
  border-radius: 50%;
}

/* Investor logo grid */
.investor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 640px) { .investor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .investor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px){ .investor-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.investor-cell {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  min-height: 110px;
  transition: background-color 200ms ease;
}
.investor-cell:hover { background: #fafafa; }
.investor-cell img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.92);
  opacity: 0.78;
  transition: filter 200ms ease, opacity 200ms ease;
}
.investor-cell:hover img { filter: none; opacity: 1; }

/* Compact stat ribbon */
.stat-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stat-ribbon span strong {
  color: var(--ink);
  font-weight: 600;
}

/* Social link */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #d8d8d8;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.social-link:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }

/* Footer */
.footer {
  background: var(--ink);
  color: #d8d8d8;
}
.footer a { color: #d8d8d8; }
.footer a:hover { color: #fff; }
.footer .h-footer {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
}

/* Small utilities */
.divide-rule > * + * { border-top: 1px solid var(--rule); }
.text-muted { color: var(--muted); }
.text-rebecca { color: var(--rebecca-purple); }
.bg-paper-2 { background: var(--paper-2); }
.bg-paper-3 { background: var(--paper-3); }
.bg-ink { background: var(--ink); }

/* Hero credentials eyebrow — mono, top of hero */
.hero-cred {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.45;
}
.hero-cred .sep {
  display: inline-block;
  margin: 0 0.65em;
  color: var(--rebecca-purple);
}
.hero-cred strong {
  color: var(--rebecca-purple);
  font-weight: 600;
}

/* Hero sub emphasis (numbers, claims) */
.lede strong { color: var(--ink); font-weight: 600; }

/* Hero proof row — dedicated metric line below sub */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.hero-proof .num { color: var(--ink); }
.hero-proof .label {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.92em;
  margin-left: 0.35em;
}
.hero-proof .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rebecca-purple);
  vertical-align: middle;
  margin: 0 0.1em;
  transform: translateY(-2px);
}

/* Backed-by strip — sits at bottom of hero, small grayscale */
.backed-by {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 2vw, 1.5rem);
  border-top: 1px solid var(--rule);
}
.backed-by-label {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.backed-by-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  row-gap: 1.25rem;
}
.backed-by-row img {
  height: 22px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.55;
  transition: opacity 200ms ease, filter 200ms ease;
}
.backed-by-row img:hover {
  filter: none;
  opacity: 1;
}

/* ──  Brand blob system (per OPEN guidelines p86-95)  ──
   Soft, very blurred radial colour fields. Use sparingly to bring brand
   atmosphere to otherwise white folds. Always pointer-events: none. */
.has-blobs { position: relative; isolation: isolate; overflow: hidden; }
.has-blobs > .container-x,
.has-blobs > .container { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.blob-bright { background: #E3CDFF; opacity: 0.7; }
.blob-soft   { background: #B993E4; opacity: 0.45; }
.blob-rebecca{ background: #663399; opacity: 0.32; }
.blob-accent { background: #9747FF; opacity: 0.35; }
.blob-dark   { background: #2E0045; opacity: 0.55; }
.blob-beige  { background: #D7C1BE; opacity: 0.55; }
.blob-mint   { background: #B7F8C6; opacity: 0.40; }
.blob-tl { top: -220px; left: -200px; width: 620px; height: 620px; }
.blob-tr { top: -220px; right: -180px; width: 720px; height: 720px; }
.blob-bl { bottom: -220px; left: -180px; width: 640px; height: 640px; }
.blob-br { bottom: -240px; right: -220px; width: 760px; height: 760px; }
.blob-cl { top: 30%; left: -260px; width: 540px; height: 540px; }
.blob-cr { top: 25%; right: -260px; width: 600px; height: 600px; }

/* Cinematic team band */
.tribe {
  position: relative;
  width: 100%;
  background: var(--dark-purple);
  color: #fff;
  overflow: hidden;
}
.tribe-photo {
  position: relative;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  background: var(--dark-purple);
}
.tribe-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
}
.tribe-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.tribe-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  z-index: 2;
  color: #fff;
}
.tribe-caption .tribe-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 0.5rem;
}
.tribe-caption .tribe-meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.tribe-caption .tribe-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.tribe-caption .tribe-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* Trust rack — certifications receipts (single full-width line) */
.trust-rack {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}
.trust-rack-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}
@media (min-width: 900px) {
  .trust-rack-block {
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
  }
  .trust-rack-block .trust-rack-label { flex-shrink: 0; }
  .trust-rack-block .trust-rack-line { flex: 1; }
}
.trust-rack-label {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-rack-line {
  font-family: var(--font-text);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
}
.trust-rack-line span { white-space: nowrap; }
.trust-rack-line .sep {
  color: var(--rebecca-purple);
  font-weight: 600;
  margin: 0 0.1rem;
}
.trust-rack-line .trust-rack-em {
  color: var(--rebecca-purple);
  font-weight: 600;
}
.trust-rack-line .trust-rack-strong {
  color: var(--ink);
  font-weight: 600;
}

/* Legal pages (privacy, terms) — clean readable prose */
.legal-page {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}
.legal-page .legal-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.legal-page .legal-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rebecca-purple);
  margin-bottom: 1rem;
}
.legal-page h1.legal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.legal-page .legal-meta {
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}
.legal-page .legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-text);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal-page .legal-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 2.75rem 0 0.85rem;
}
.legal-page .legal-body h2:first-child { margin-top: 0; }
.legal-page .legal-body h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.legal-page .legal-body p { margin: 0 0 1rem; }
.legal-page .legal-body ul, .legal-page .legal-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.legal-page .legal-body li { margin: 0.35rem 0; }
.legal-page .legal-body a {
  color: var(--rebecca-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-page .legal-body a:hover { color: var(--dark-purple); }
.legal-page .legal-body strong { color: var(--ink); font-weight: 600; }
.legal-page .legal-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ──  Mobile tweaks (≤ 640px)  ── */
@media (max-width: 640px) {
  .h-hero {
    font-size: clamp(2.2rem, 9.2vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .h-section {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    line-height: 1.05;
  }
  .lede { font-size: 1.02rem; line-height: 1.55; }
  .body-lg { font-size: 0.98rem; }

  .hero-cred { font-size: 0.62rem; letter-spacing: 0.16em; line-height: 1.55; }
  .hero-cred .sep { display: inline; margin: 0 0.45em; }

  .hero-proof {
    font-size: 0.95rem;
    gap: 0.4rem 0.9rem;
  }
  .hero-proof .label { display: block; margin-left: 0; font-size: 0.84em; }
  .hero-proof > span:not(.dot) { display: inline-flex; flex-direction: column; }

  .stat-num { font-size: clamp(2.3rem, 11vw, 3rem); }
  .stat-ribbon { font-size: 0.72rem; gap: 0.4rem 1rem; }

  .biz-card { padding: 1.5rem 1.25rem 1.25rem; }

  /* Tribe band caption — stack on mobile */
  .tribe-caption {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .tribe-caption .tribe-meta { font-size: 1rem; line-height: 1.25; }
  .tribe-caption .tribe-cta { font-size: 0.85rem; padding: 0.55rem 0.85rem; }

  /* Investor cells smaller on mobile */
  .investor-cell { padding: 1.25rem 0.85rem; min-height: 92px; }
  .investor-cell img { max-height: 26px; }

  /* Backed-by row tighter */
  .backed-by-row { gap: 1.1rem 1.5rem; }
  .backed-by-row img { height: 18px; }

  /* Footer block stacks cleanly */
  .footer .h-footer { font-size: 1.65rem; line-height: 1.15; }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
