:root {
  --ink: #1e2420;
  --muted: #626b61;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --soft: #edf1ea;
  --deep: #243d2f;
  --sage: #637b66;
  --clay: #b86f56;
  --blue: #496b78;
  --gold: #c5a15b;
  --line: #ddd7ca;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(30, 36, 32, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 36, 32, 0.86);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  max-width: 280px;
  font-weight: 820;
  font-size: 17px;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.portal-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 760;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 54vh;
  padding: 96px 0 54px;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("hero-home-selected.png");
  background-size: cover;
  background-position: center;
}

body[data-page="parents"] .hero {
  background-image: url("hero-parents-selected.png");
}

body[data-page="schools"] .hero {
  background-image: url("hero-schools-selected.png");
}

body[data-page="program"] .hero {
  background-image: url("hero-program-selected.png");
}

body[data-page="research"] .hero {
  background-image: url("hero-research-selected.png");
}

body[data-page="portal"] .hero {
  background-image: url("hero-portal-selected.png");
}

.hero.hero-access {
  background-image: url("hero-access-selected.png");
}

.hero.hero-privacy {
  background-image: linear-gradient(105deg, #fbf8f1 0%, #f7f4ed 54%, #edf1ea 100%);
}

body[data-page="portal"] .hero.hero-access {
  background-image: url("hero-access-selected.png");
}

body[data-page="portal"] .hero.hero-privacy {
  background-image: linear-gradient(105deg, #fbf8f1 0%, #f7f4ed 54%, #edf1ea 100%);
}

.hero.compact {
  min-height: 38vh;
}

.hero.compact h1 {
  font-size: 56px;
}

.hero.compact .hero-copy {
  margin-bottom: 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 237, 0.98), rgba(247, 244, 237, 0.88) 42%, rgba(247, 244, 237, 0.34) 62%, rgba(247, 244, 237, 0));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.22), rgba(255, 253, 248, 0));
  pointer-events: none;
}

.hero-inner,
.inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
}

body[data-page="home"] .hero-content {
  max-width: 690px;
}

.inner.narrow {
  width: min(860px, calc(100% - 40px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--sage);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
}

.hero .eyebrow,
.dark .eyebrow,
.cta .eyebrow {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(36, 61, 47, 0.24);
}

.dark .eyebrow,
.cta .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 18px 0 22px;
  font-size: 68px;
  line-height: 1;
  font-weight: 860;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 21px;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.dark .lead,
.dark p,
.cta .lead {
  color: rgba(255, 255, 255, 0.78);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--deep);
  color: var(--white);
}

.button.light {
  background: var(--white);
  color: var(--deep);
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.hero .button.light {
  background: var(--deep);
  color: var(--white);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(36, 61, 47, 0.28);
  color: var(--deep);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(30, 36, 32, 0.03);
}

.pad {
  padding: 28px;
}

.metric-row {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  max-width: 860px;
  overflow: hidden;
  border: 1px solid rgba(36, 61, 47, 0.16);
  border-radius: var(--radius);
  background: rgba(36, 61, 47, 0.14);
}

.metric {
  min-height: 104px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.metric strong,
.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.stat {
  min-height: 210px;
  padding: 28px;
}

.stat strong {
  color: var(--deep);
}

.stat p,
.card p,
.step p,
.module p,
.person p {
  margin-bottom: 0;
  color: var(--muted);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-weight: 820;
}

.dark {
  color: var(--white);
  background: var(--deep);
}

.soft {
  background: var(--soft);
}

.ecosystem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
}

.ecosystem .step {
  min-height: 330px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.13);
}

.ecosystem .step:nth-child(2) {
  background: rgba(184, 111, 86, 0.3);
}

.ecosystem .step:nth-child(3) {
  background: rgba(99, 123, 102, 0.38);
}

.ecosystem .step:nth-child(4) {
  background: rgba(73, 107, 120, 0.34);
}

.dark .ecosystem .step p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 620;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--sage);
  font-size: 13px;
  font-weight: 720;
}

.dark .pill {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.24);
}

.module {
  min-height: 230px;
  padding: 24px;
}

.module b {
  display: block;
  margin-bottom: 30px;
  color: var(--sage);
  font-size: 13px;
}

.audience-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.audience-panel .pad {
  background: var(--surface);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.roadmap .step {
  min-height: 270px;
  padding: 22px;
  background: var(--surface);
}

.roadmap .step.now {
  color: var(--white);
  background: var(--deep);
}

.roadmap small {
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 820;
  text-transform: uppercase;
}

.roadmap ul,
.check-list,
.plain-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.roadmap li,
.check-list li,
.plain-list li {
  margin: 8px 0;
}

.roadmap .now ul,
.roadmap .now small {
  color: rgba(255, 255, 255, 0.82);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.quote {
  padding: 34px;
  color: var(--white);
  background: var(--ink);
}

.quote p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow .step {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.person {
  min-height: 250px;
  padding: 24px;
}

.avatar {
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--soft);
  font-weight: 840;
  font-size: 20px;
}

.portal-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.access-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.role-grid {
  display: grid;
  gap: 10px;
}

.role-card {
  width: 100%;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.role-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.role-card span {
  color: var(--muted);
}

.role-card.active {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--white);
}

.role-card.active span {
  color: rgba(255, 255, 255, 0.76);
}

.access-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 780;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.consent-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.consent-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--deep);
}

.consent-line a {
  color: var(--deep);
  font-weight: 780;
}

.access-result {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #bdd1c0;
  border-radius: var(--radius);
  background: #edf5ed;
}

.access-result.visible {
  display: block;
}

.portal-card {
  padding: 34px;
  background: var(--surface);
}

.portal-status {
  padding: 34px;
  color: var(--white);
  background: var(--deep);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.status-line span:last-child {
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}

.cta {
  color: var(--white);
  background: var(--ink);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 52px;
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    display: none;
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(30, 36, 32, 0.98);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a,
  .portal-link {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section-head,
  .split,
  .portal-panel,
  .access-layout,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .grid.four,
  .grid.three,
  .ecosystem,
  .metric-row,
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .nav,
  .hero-inner,
  .inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 15px;
  }

  .hero,
  .hero.compact {
    min-height: 0;
    padding: 76px 0 34px;
    background-position: left center;
  }

  h1 {
    font-size: 38px;
  }

  .hero.compact h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-copy,
  .lead {
    font-size: 17px;
  }

  section {
    padding: 62px 0;
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .ecosystem,
  .flow,
  .roadmap,
  .audience-panel {
    grid-template-columns: 1fr;
  }

  .metric-row {
    display: none;
  }

  .actions .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
