:root {
  --paper: #f7f2e8;
  --paper-strong: #efe5d4;
  --ink: #1e2426;
  --muted: #66706d;
  --line: #d7cec0;
  --teal: #1d766f;
  --teal-dark: #15514c;
  --gold: #b3832f;
  --brick: #a84f3d;
  --green: #2e7d56;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(30, 36, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 242, 232, 0.93);
  border-bottom: 1px solid rgba(30, 36, 38, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(29, 118, 111, 0.1);
  color: var(--teal-dark);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 36px;
  padding: 7px;
  width: 40px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero {
  isolation: isolate;
  min-height: min(720px, 84vh);
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 72px) 82px;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-position: center;
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 25, 27, 0.91) 0%, rgba(18, 25, 27, 0.7) 38%, rgba(18, 25, 27, 0.25) 100%),
    linear-gradient(0deg, rgba(18, 25, 27, 0.72) 0%, rgba(18, 25, 27, 0.02) 34%);
  z-index: -2;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  padding-top: 10vh;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.login-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  max-width: 640px;
}

.hero-actions,
.cta-band {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button.primary:hover {
  background: var(--teal-dark);
}

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

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.full-width {
  width: 100%;
}

.intro-band,
.content-section,
.data-section,
.membership-section,
.taxonomy-section,
.split-section,
.process-section,
.member-roadmap,
.cta-band,
.page-hero,
.login-panel {
  padding-left: clamp(20px, 6vw, 72px);
  padding-right: clamp(20px, 6vw, 72px);
}

.intro-band {
  background: var(--ink);
  color: var(--white);
  padding-bottom: 46px;
  padding-top: 48px;
}

.section-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1160px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 12px;
}

.content-section,
.membership-section,
.taxonomy-section {
  padding-bottom: 76px;
  padding-top: 76px;
}

.section-heading {
  margin: 0 auto 30px;
  max-width: 1160px;
}

.feature-grid,
.tier-grid,
.taxonomy-grid,
.member-roadmap {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1160px;
}

.feature-card,
.tier-card,
.taxonomy-grid article,
.member-roadmap article,
.login-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(30, 36, 38, 0.11);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(30, 36, 38, 0.06);
}

.feature-card,
.tier-card,
.taxonomy-grid article,
.member-roadmap article {
  padding: 24px;
}

.feature-card p,
.tier-card p,
.taxonomy-grid p,
.member-roadmap p,
.split-copy p,
.page-hero p,
.login-copy p,
.data-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-kicker {
  color: var(--teal);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 20px;
}

.data-section {
  align-items: center;
  background: #e9efeb;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding-bottom: 72px;
  padding-top: 72px;
}

.data-copy {
  max-width: 520px;
}

.rank-table-wrap {
  background: var(--white);
  border: 1px solid rgba(30, 36, 38, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.rank-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.rank-table th,
.rank-table td {
  border-bottom: 1px solid #e5ded4;
  padding: 16px;
  text-align: left;
  white-space: nowrap;
}

.rank-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 780;
  padding: 5px 9px;
}

.status.good {
  background: rgba(46, 125, 86, 0.12);
  color: var(--green);
}

.status.neutral {
  background: rgba(179, 131, 47, 0.14);
  color: #7c5c22;
}

.status.locked-pill {
  background: rgba(30, 36, 38, 0.1);
  color: var(--ink);
}

.locked {
  color: transparent;
  position: relative;
  text-shadow: 0 0 9px rgba(30, 36, 38, 0.55);
}

.price {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 850;
  margin: 18px 0 18px;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.tier-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.tier-card li + li {
  margin-top: 9px;
}

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

.featured-tier p,
.featured-tier li {
  color: rgba(255, 255, 255, 0.78);
}

.featured-tier .price {
  color: var(--white);
}

.cta-band {
  background: var(--paper-strong);
  justify-content: space-between;
  padding-bottom: 46px;
  padding-top: 46px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 10px;
  padding: 26px clamp(20px, 6vw, 72px);
}

.site-footer p {
  margin: 0;
  max-width: 940px;
}

.site-footer a {
  color: var(--white);
  font-weight: 750;
}

.page-main {
  padding-top: 84px;
}

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding-bottom: 72px;
  padding-top: 88px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 820px;
}

.process-section {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 76px;
  padding-top: 76px;
}

.process-step {
  border-left: 3px solid var(--teal);
  padding: 0 18px 0 22px;
}

.process-step span {
  color: var(--gold);
  display: block;
  font-weight: 850;
  margin-bottom: 14px;
}

.process-step h2,
.member-roadmap h2 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.process-step p {
  color: var(--muted);
}

.split-section {
  align-items: start;
  background: #e7e0d3;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  padding-bottom: 72px;
  padding-top: 72px;
}

.split-copy {
  max-width: 780px;
}

.login-main {
  padding-top: 84px;
}

.login-panel {
  align-items: center;
  background: linear-gradient(90deg, #1e2426 0%, #2f3f3b 100%);
  color: var(--white);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  min-height: 620px;
  padding-bottom: 72px;
  padding-top: 86px;
}

.login-copy {
  max-width: 760px;
}

.login-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.portal-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 560px;
}

.portal-preview div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
}

.metric-label {
  color: rgba(255, 255, 255, 0.6);
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.portal-preview strong {
  font-size: 1.45rem;
}

.login-card {
  background: var(--paper);
  color: var(--ink);
  display: grid;
  padding: 26px;
}

.login-card h2 {
  font-size: 1.7rem;
  margin-bottom: 22px;
}

.login-card label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  margin-bottom: 7px;
}

.login-card input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  margin-bottom: 16px;
  min-height: 46px;
  padding: 10px 12px;
}

.login-card input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(29, 118, 111, 0.18);
}

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

.text-link {
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.member-roadmap {
  padding-bottom: 76px;
  padding-top: 76px;
}

.archive-summary {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 56px clamp(20px, 6vw, 72px);
}

.archive-summary article,
.post-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(30, 36, 38, 0.11);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(30, 36, 38, 0.06);
  padding: 24px;
}

.archive-summary strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.archive-summary p,
.archive-post p,
.archive-note {
  color: var(--muted);
}

.metric-label.dark {
  color: var(--muted);
}

.archive-section,
.archive-post {
  padding: 72px clamp(20px, 6vw, 72px);
}

.archive-section {
  background: #e9efeb;
}

.archive-table-wrap {
  background: var(--white);
  border: 1px solid rgba(30, 36, 38, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1160px;
  overflow-x: auto;
}

.archive-table {
  min-width: 760px;
}

.archive-post {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.post-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 750;
  gap: 10px;
  margin-bottom: 18px;
}

.post-meta span {
  background: rgba(29, 118, 111, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
}

.public-results {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.public-results div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.public-results strong {
  display: block;
  font-size: 1.3rem;
}

.archive-note {
  border-left: 3px solid var(--gold);
  margin-top: 22px;
  padding-left: 14px;
}

.archive-run-hero h1 {
  max-width: 980px;
}

.run-ledger {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 42px clamp(20px, 6vw, 72px);
}

.run-ledger article {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(30, 36, 38, 0.11);
  border-radius: 8px;
  padding: 18px;
}

.run-ledger strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.run-overview {
  padding-top: 44px;
}

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

.run-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1320px;
}

.run-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(30, 36, 38, 0.11);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(30, 36, 38, 0.06);
  padding: 20px;
}

.run-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.white-band {
  background: var(--paper);
}

.compact-wrap {
  max-width: 680px;
}

.compact-table {
  min-width: 480px;
}

.full-run-details {
  margin: 0 auto;
  max-width: 1320px;
}

.full-run-details summary {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-weight: 760;
  list-style-position: inside;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.full-run-table-wrap {
  max-height: 720px;
  max-width: 1320px;
  overflow: auto;
}

.full-run-table {
  min-width: 1120px;
}

.full-run-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.full-run-table td:nth-child(5) {
  min-width: 420px;
  white-space: normal;
}

.full-run-table td:nth-child(4) {
  min-width: 170px;
  white-space: normal;
}

.model-table {
  min-width: 960px;
}

.model-table-wrap {
  max-width: 1160px;
}

.table-note {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 1160px;
}

.data-status {
  color: var(--muted);
  font-weight: 700;
  margin-top: 14px;
}

.top-note-list {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1160px;
}

.top-note {
  align-items: start;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(30, 36, 38, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 18px;
}

.top-note h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.top-note p {
  color: var(--muted);
  margin: 0;
}

.plain-ledger {
  border-collapse: collapse;
  width: 100%;
}

.plain-ledger th,
.plain-ledger td {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
}

.plain-ledger th {
  color: var(--muted);
  font-size: 0.82rem;
  padding-right: 18px;
  text-transform: uppercase;
  width: 180px;
}

.plain-ledger code {
  overflow-wrap: anywhere;
}

.notes-table td:nth-child(2) {
  white-space: normal;
}

.policy-section {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 72px clamp(20px, 6vw, 72px);
}

.policy-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(30, 36, 38, 0.11);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(30, 36, 38, 0.06);
  padding: 24px;
}

.policy-card h2 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.policy-card p {
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(30, 36, 38, 0.08);
    display: none;
    left: 0;
    padding: 10px 20px 18px;
    position: absolute;
    right: 0;
    top: 67px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .section-grid,
  .data-section,
  .split-section,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .tier-grid,
  .taxonomy-grid,
  .process-section,
  .member-roadmap,
  .archive-summary,
  .archive-post,
  .policy-section,
  .run-ledger,
  .run-card-grid,
  .top-note,
  .four-up {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 14vh;
  }

  .hero-image {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(18, 25, 27, 0.88), rgba(18, 25, 27, 0.58)),
      linear-gradient(0deg, rgba(18, 25, 27, 0.76), rgba(18, 25, 27, 0.08));
  }

  .portal-preview {
    grid-template-columns: 1fr;
  }

  .public-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 210px;
  }

  .hero,
  .page-hero,
  .login-panel {
    padding-top: 110px;
  }

  .hero h1,
  .page-hero h1,
  .login-copy h1 {
    font-size: 2.58rem;
  }

  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .rank-table th,
  .rank-table td {
    padding: 13px;
  }
}
