/* ─────────────────────────────────────────────────────────────
   Shared page styles — used by sub-pages
   ───────────────────────────────────────────────────────────── */

.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 var(--space-8);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  letter-spacing: -.035em;
  margin-top: 16px;
  text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--red-500); }
.page-hero .lede { margin-top: 20px; }
.page-hero .hero-1-cta { margin-top: 28px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.page-hero-narrow { max-width: 880px; }
@media (max-width: 980px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Module cards (solution page) */
.module {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.module:last-child { border-bottom: none; }
.module-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-500);
  font-weight: 500;
  letter-spacing: .04em;
}
.module h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.025em;
  margin-top: 12px;
}
.module-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.module-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.module-bullets li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-500);
  margin-top: 9px;
  flex-shrink: 0;
}
.module-visual {
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.module-visual-dark {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: #fff;
}
@media (max-width: 980px) {
  .module { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .module-visual { min-height: 280px; }
}

/* Pill row */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}
.section-dark .pill {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
}

/* Form */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row + .form-row { margin-top: 18px; }
.form-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-row input,
.form-row textarea,
.form-row select {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 15px;
  color: var(--fg);
  outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-row textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(190,3,22,.1);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-grid-2 .form-row + .form-row { margin-top: 0; }
.form-card button[type="submit"],
button[type="submit"] { margin-top: 16px; }
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* Segmented selector */
.segmented {
  display: inline-flex;
  background: var(--ink-100);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.segmented label {
  cursor: pointer;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.segmented input { display: none; }
.segmented input:checked + label {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

/* Institution picker — rich button-group cards */
.institution-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.institution-picker-4 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 16px;
}
.institution-picker input { position: absolute; opacity: 0; pointer-events: none; }
.institution-picker > label {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  margin: 0;
}
.institution-picker > label:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
}
.institution-picker .ip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink-100);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.institution-picker .ip-icon svg { width: 22px; height: 22px; display: block; }
.institution-picker .ip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.institution-picker .ip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -.005em;
}
.institution-picker .ip-sub {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.institution-picker .ip-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.institution-picker .ip-check svg { width: 12px; height: 12px; }

.institution-picker input:checked + label {
  border-color: var(--red-500);
  background: var(--red-tint);
  box-shadow: 0 0 0 3px rgba(190,3,22,.08), var(--shadow-sm);
}
.institution-picker input:checked + label .ip-icon {
  background: var(--red-500);
  color: #fff;
}
.institution-picker input:checked + label .ip-check {
  background: var(--red-500);
  border-color: var(--red-500);
  color: #fff;
}
.institution-picker input:focus-visible + label {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
}
/* Press links list */
.press-link {
  display: grid;
  grid-template-columns: 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color .15s, background .15s, transform .15s;
}
.press-link:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
  transform: translateY(-1px);
}
.press-link > span:first-of-type,
.press-link .press-source { grid-column: 1; }
.press-source {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-500);
  line-height: 1.2;
  display: block;
}
.press-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -.005em;
  display: block;
  margin-top: 4px;
  grid-column: 1;
}
.press-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  color: var(--fg-subtle);
  align-self: center;
  transition: transform .15s, color .15s;
}
.press-link:hover .press-arrow {
  color: var(--red-500);
  transform: translateX(2px);
}

/* Backed-by partner logos */
.backed-by-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.backed-by-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 110px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.backed-by-tile:hover {
  border-color: var(--ink-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.backed-by-tile img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 560px) {
  .backed-by-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .institution-picker { grid-template-columns: 1fr; }
}

/* Page-specific small */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg);
}
.kpi-row > div {
  padding: 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-row > div:last-child { border-right: none; }
.kpi-row .v { font-size: 36px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi-row .l { font-size: 13px; color: var(--fg-muted); }
.kpi-row .s { font-size: 12px; color: var(--fg-subtle); margin-top: 4px; }
@media (max-width: 860px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-row > div:nth-child(2) { border-right: none; }
  .kpi-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* Section dark variant alt */
.section-dark .module-visual {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: #fff;
}

/* Office locations */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.office {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.office h4 { font-size: 16px; }
.office p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }
.office-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red-500);
  font-weight: 600;
}
@media (max-width: 860px) {
  .office-grid { grid-template-columns: 1fr; }
}

/* Architecture diagram */
.arch {
  background: var(--ink-950);
  border-radius: var(--r-xl);
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Architecture v2 — bold, legible, layered */
.arch-v2 {
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  padding: 36px 40px;
}
.arch-v2::before {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.arch-v2::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(closest-side, rgba(190,3,22,.22), rgba(190,3,22,0) 70%);
  pointer-events: none;
}
.arch-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 32px 28px;
  z-index: 2;
}
.arch-grid > .arch-node[data-pos="tl"] { grid-area: 1 / 1; }
.arch-grid > .arch-node[data-pos="tc"] { grid-area: 1 / 2; }
.arch-grid > .arch-node[data-pos="tr"] { grid-area: 1 / 3; }
.arch-grid > .arch-core            { grid-area: 2 / 1 / 3 / 4; justify-self: center; align-self: center; }
.arch-grid > .arch-node[data-pos="bl"] { grid-area: 3 / 1; }
.arch-grid > .arch-node[data-pos="bc"] { grid-area: 3 / 2; }
.arch-grid > .arch-node[data-pos="br"] { grid-area: 3 / 3; }
.arch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.arch-node {
  position: relative;
  padding: 16px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, transform .2s;
  z-index: 3;
}
.arch-node:hover {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}
.arch-node-tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.arch-node-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.arch-node-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  margin-top: 4px;
  line-height: 1.4;
}
.arch-node-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.12);
}
.arch-node-accent .arch-node-tag { color: #ff7383; }

/* Core */
.arch-core {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-core-inner {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #e21629 0%, #be0316 50%, #7a0210 100%);
  box-shadow:
    0 20px 60px -10px rgba(190,3,22,.55),
    0 0 0 1px rgba(255,255,255,.1) inset,
    0 0 0 8px rgba(190,3,22,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  z-index: 4;
}
.arch-core-pulse {
  position: absolute;
  inset: 50% 50%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border-radius: 50%;
  border: 1px solid rgba(190,3,22,.5);
  animation: archPulse 2.8s ease-out infinite;
  z-index: 2;
}
.arch-core-pulse-2 { animation-delay: 1.4s; }
@keyframes archPulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.6); opacity: 0;  }
}
.arch-core-eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(255,255,255,.7);
}
.arch-core-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  margin-top: 2px;
  line-height: 1;
}
.arch-core-sub {
  font-size: 11px;
  color: rgba(255,255,255,.88);
  margin-top: 6px;
  line-height: 1.4;
}
.arch-core-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 9.5px;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* Flow rail */
.arch-flow {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}
.arch-flow-cell {
  background: rgba(0,0,0,.4);
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.arch-flow-arrow {
  font-size: 18px;
  color: #ff7383;
  width: 16px;
  font-weight: 700;
  line-height: 1;
}
.arch-flow-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.005em;
}
.arch-flow-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-left: auto;
}

@media (max-width: 880px) {
  .arch-v2 { padding: 28px; }
  .arch-grid { grid-template-columns: 1fr; gap: 16px; }
  .arch-grid > .arch-node[data-pos] { grid-area: auto !important; }
  .arch-grid > .arch-core { grid-area: auto !important; width: 100%; aspect-ratio: auto; padding: 32px 0; }
  .arch-lines { display: none; }
  .arch-flow { grid-template-columns: 1fr; }
  .arch-flow-meta { display: none; }
}

/* Donor page — app showcase */
.app-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.app-screen-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-screen-wrap h4 { font-size: 18px; }
.app-screen-wrap p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.app-screen {
  background: #0a0a0a;
  border-radius: 28px;
  padding: 6px;
  margin: 0 auto;
  width: 220px;
  height: 460px;
}
.app-screen-inner {
  background: #fff;
  border-radius: 22px;
  height: 100%;
  overflow: hidden;
  position: relative;
}
@media (max-width: 880px) {
  .app-showcase { grid-template-columns: 1fr; gap: 40px; }
}

/* Investor traction grid */
.traction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.traction-cell {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.traction-cell .v {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--red-500);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.traction-cell .l { font-size: 14px; font-weight: 500; }
.traction-cell .s { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin-top: 6px; }
@media (max-width: 880px) {
  .traction-grid { grid-template-columns: 1fr; }
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-avatar {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  background: var(--ink-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.team-card h4 { font-size: 16px; }
.team-card .role { font-size: 13px; color: var(--fg-muted); }
.team-card .bio { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin-top: 4px; }
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}
