/* ==========================================================================
   Causal Chamber® — site styles
   Black-and-white design (Inter + JetBrains Mono). Used by index.html,
   about.html and get_started.html.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #fafafa;
  --grey-900: #171717;
  --grey-800: #262626;
  --grey-700: #404040;
  --grey-600: #525252;
  --grey-500: #737373;
  --grey-400: #a3a3a3;
  --grey-300: #d4d4d4;
  --grey-200: #e5e5e5;
  --grey-dark-line: #333333;
  --green: #63d297;
  --green-soft: rgba(99, 210, 151, 0.4);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

a {
  color: var(--black);
}

a:hover {
  color: var(--grey-600);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--black);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--grey-700);
  border-color: var(--grey-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* Buttons on dark backgrounds */
.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--grey-300);
  border-color: var(--grey-300);
  color: var(--black);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--off-white);
  color: var(--off-white);
}

.btn-outline-light:hover {
  background: var(--off-white);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--grey-300);
  background: var(--white);
}

.site-header .wrap {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: 22px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
}

.site-nav .nav-link {
  padding: 12px 0;
  text-decoration: none;
}

.site-nav .nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--grey-700);
  color: var(--white);
}

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: transform 0.2s, background-color 0.2s;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.site-header.is-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 20px;
    font-size: 17px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--grey-200);
  }

  .site-nav .nav-cta {
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
  }
}

/* --------------------------------------------------------------------------
   Floating pill navbar (trial, like the previous site)
   Sticks to the top, hides when scrolling down and comes back when scrolling
   up (js/site.js toggles .is-hidden). Delete this block, and the scroll part
   of js/site.js, to go back to the flat header.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px var(--gutter) 0;
  border-bottom: 0;
  background: transparent;
  pointer-events: none; /* let clicks through the transparent strip */
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
}

.site-header .wrap {
  pointer-events: auto;
  max-width: 1040px;
  min-height: 64px;
  padding: 8px 10px 8px 28px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

@media (max-width: 719px) {
  .site-header .wrap {
    padding: 6px 14px 6px 20px;
    border-radius: 10px;
  }

  .site-nav {
    padding-bottom: 12px;
  }

  .site-nav .nav-link:first-child {
    border-top: 1px solid var(--grey-200);
  }
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.label {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--grey-500);
}

.label-dark {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-600);
}

.display {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 900px;
}

.h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.h2-sm {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--grey-700);
  max-width: 640px;
}

.body-lg {
  font-size: 19px;
  line-height: 1.6;
  color: var(--grey-900);
}

.body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-700);
}

.body-muted {
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-600);
}

.pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--black);
  border-radius: 999px;
}

.pill-link {
  color: var(--black);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.pill-link:hover {
  background: var(--black);
  color: var(--white);
}

.pill-muted {
  border-style: dashed;
  border-color: var(--grey-500);
  color: var(--grey-600);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: var(--black);
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 999px;
}

.badge-credits-lg {
  font-size: 15px;
  padding: 6px 14px;
}

/* --------------------------------------------------------------------------
   Sections & layout helpers
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 112px) 0;
  border-bottom: 1px solid var(--grey-300);
}

.section-tight {
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--grey-300);
}

.rule-strong {
  border-bottom-color: var(--grey-300);
}

.no-rule {
  border-bottom: 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }

/* Two-column split: narrow title column + wide body column */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.split-aside {
  flex: 1 1 260px;
  min-width: 0;
}

.split-main {
  flex: 2 1 480px;
  min-width: 0;
}

.split-half {
  flex: 1 1 420px;
  min-width: 0;
}

/* Page header used by About and Get started */
.page-head {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--grey-300);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-title {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 820px;
}

.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--grey-700);
  max-width: 760px;
}

.hero .btn-row {
  justify-content: center;
  margin-top: 4px;
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
}

.hero-images img {
  width: 100%;
  height: auto;
  aspect-ratio: 3577 / 1698;
  object-fit: contain;
  display: block;
}

/* On phones, show only one Chamber (the Light Tunnel) */
@media (max-width: 575px) {
  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-image-wind {
    display: none;
  }
}

.explore {
  padding: clamp(32px, 4vw, 48px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--grey-300);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 32px;
  font-family: var(--mono);
  font-size: 15.5px;
}

.explore-label {
  color: var(--grey-500);
  padding: 12px 0;
}

.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
}

.explore a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
}

.explore a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Home: partners (static logo row)
   -------------------------------------------------------------------------- */

.partners {
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--grey-300);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 24px 32px;
}

.logo-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.logo-row img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 991px) {
  .logo-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
  }

  .logo-row img {
    height: 28px;
  }
}

/* --------------------------------------------------------------------------
   Home: Remote Lab + code card
   -------------------------------------------------------------------------- */

.remote-lab {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: center;
}

.remote-lab-text {
  flex: 1 1 380px;
  min-width: 0;
}

/* The code column gets more room so the longest line fits */
.remote-lab-code {
  flex: 1 1 480px;
  min-width: 0;
}

.code-card {
  background: var(--black);
  color: var(--off-white);
  border-radius: 10px;
  overflow: hidden;
}

.code-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 20px;
  min-height: 48px;
  border-bottom: 1px solid var(--grey-800);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grey-400);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--grey-dark-line);
  border-radius: 6px;
  background: transparent;
  color: var(--grey-400);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy-btn:hover {
  color: var(--off-white);
  border-color: var(--grey-500);
}

.copy-btn:focus-visible {
  outline-color: var(--off-white);
}

.code-card pre {
  margin: 0;
  padding: 24px 20px 28px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
}

.code-card code {
  font-family: inherit;
}

.code-card code {
  color: var(--grey-300);
}

/* Syntax highlighting for the code card (hand-tagged spans) */
.tok-comment { color: var(--grey-500); font-style: italic; }
.tok-kw      { color: #c4a7ff; }
.tok-fn      { color: var(--white); font-weight: 500; }
.tok-arg     { color: #8ec5ff; }
.tok-str     { color: var(--green); }
.tok-num     { color: #f5c26b; }

@media (max-width: 479px) {
  .code-card pre {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   Home: access options grid
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.section-head .h2 {
  max-width: 640px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--grey-300);
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  overflow: hidden;
}

.option-card {
  background: var(--white);
  text-decoration: none;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  transition: background-color 0.15s;
}

.option-card:hover {
  background: var(--off-white);
  color: var(--black);
}

.option-card-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-500);
}

.option-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.option-card-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey-600);
}

/* --------------------------------------------------------------------------
   Get in touch (+ Tally form)
   -------------------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
}

.contact-text {
  flex: 7 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-text .body {
  max-width: 620px;
}

.contact-text .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.contact-form {
  flex: 5 1 340px;
  min-width: 0;
}

.contact-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Supported by
   -------------------------------------------------------------------------- */

.supported {
  padding: clamp(40px, 5vw, 64px) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
}

.supported-label {
  flex: 0 0 auto;
}

.supported-logos {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 44px;
}

.supported-logos div {
  height: 64px;
  display: flex;
  align-items: center;
}

.supported-logos img {
  height: 44px;
  width: auto;
  max-width: 100%;
  display: block;
  opacity: 0.8;
}

/* The ETH SVGs include their own padding, so they're drawn taller */
.supported-logos .logo-eth-svg {
  height: 56px;
}

.supported-logos .logo-spinoff {
  height: 56px;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  color: var(--off-white);
}

.site-footer .wrap {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.site-footer a {
  color: var(--off-white);
}

.site-footer a:hover {
  color: var(--grey-400);
}

.site-footer a:focus-visible {
  outline-color: var(--off-white);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}

.footer-brand {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand .brand {
  margin-bottom: 4px;
}

.footer-brand .brand img {
  height: 24px;
}

.footer-brand span {
  font-size: 14px;
  color: var(--grey-400);
}

.footer-email {
  font-family: var(--mono);
  font-size: 14px;
}

.footer-nav {
  flex: 2 1 560px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col a {
  text-decoration: none;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--grey-dark-line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--grey-400);
}

.footer-bottom address {
  font-style: normal;
}

@media (max-width: 599px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    flex-basis: 100%;
  }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-head {
  padding-bottom: clamp(32px, 4vw, 48px);
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: stretch;
}

.about-intro-img {
  flex: 1 1 400px;
  min-width: 0;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 1681 / 1072;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.about-intro-text {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.about-intro-text p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--grey-900);
}

.about-intro-text p + p {
  color: var(--grey-700);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.team-member .team-photo-left {
  object-position: left center;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
}

.team-role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-600);
}

@media (max-width: 479px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .team-name {
    font-size: 16px;
  }

  .team-role {
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   Get started
   -------------------------------------------------------------------------- */

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 14px;
}

.toc a {
  text-decoration: none;
  display: flex;
  gap: 10px;
  padding: 10px 0;
}



/* Section numbers (01, 02, 03) in Chambers green */
.num {
  color: var(--green);
  font-weight: 500;
}

.toc a:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gs-section {
  scroll-margin-top: 16px;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.plan {
  flex: 1 1 420px;
  min-width: 0;
  border: 1px solid var(--black);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.plan-dark {
  background: var(--black);
  color: var(--off-white);
}

.plan-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.plan-dark .plan-kicker {
  color: var(--grey-400);
}

.plan-title {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.plan-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey-700);
}

.plan-dark .plan-desc {
  color: var(--grey-300);
}

.plan-dark .plan-specs a,
.plan-dark .plan-desc a {
  color: var(--white);
}

.plan-specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-200);
}

.plan-specs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-200);
}

.plan-dark .plan-specs,
.plan-dark .plan-specs > div {
  border-color: var(--grey-dark-line);
}

.plan-specs dt {
  flex: 0 0 150px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-500);
  padding-top: 2px;
}

.plan-dark .plan-specs dt {
  color: var(--grey-400);
}

.plan-specs dd {
  flex: 1 1 200px;
  font-size: 16px;
  line-height: 1.5;
}

/* Small muted line under a spec value */
.dd-note {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--grey-500);
}

.dd-note a {
  color: inherit;
}

.dd-note a:hover {
  color: var(--black);
}

.plan .btn-row {
  margin-top: auto;
}

.solidarity-note strong {
  font-weight: 600;
  color: var(--black);
}

.solidarity-note {
  margin-top: -24px; /* sit closer to the two plan cards */
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-600);
  max-width: 820px;
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.institution-grid a {
  height: 80px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.institution-grid img {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.closing {
  padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 128px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.closing-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 479px) {
  .plan-specs dt {
    flex-basis: 100%;
  }
}

.partners-title {
  font-weight: 400;
}

.gap-4 { gap: 4px; }
.gap-48 { gap: 48px; }
.mt-12 { margin-top: 12px; }
.mt-8 { margin-top: 8px; }

.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   404 page ("Out of distribution.")
   -------------------------------------------------------------------------- */

.notfound {
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
}

.ood {
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  background: var(--off-white);
  padding: 28px 8px 18px;
}

.ood .hist {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ood .hist.narrow {
  display: none;
}

.ood .bar {
  fill: var(--grey-300);
  transform-box: fill-box;
  transform-origin: bottom;
}

.ood .curve {
  fill: none;
  stroke: var(--black);
  stroke-width: 1.6;
}

.ood .axis {
  fill: none;
  stroke: var(--black);
  stroke-width: 1.2;
}

.ood .tick,
.ood .note {
  font-family: var(--mono);
  fill: var(--grey-500);
}

.ood .tag {
  font-family: var(--mono);
  font-weight: 500;
  fill: var(--black);
}

.ood .drop {
  stroke: var(--black);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

/* The outlier (this URL) in Chambers green */
.ood .dot {
  fill: var(--green);
}

.ood .ring,
.ood .pulse {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.4;
}

.ood .pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .ood .bar { animation: ood-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .ood .curve { animation: ood-fade 0.6s ease 1s both; }
  .ood .out { animation: ood-fade 0.5s ease 1.4s both; }
  .ood .pulse { animation: ood-pulse 2.4s ease-out 1.9s infinite; }
}

@keyframes ood-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ood-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ood-pulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

@media (max-width: 859px) {
  .ood .hist.wide { display: none; }
  .ood .hist.narrow { display: block; }
  .ood { padding: 22px 10px 12px; }
}

/* --------------------------------------------------------------------------
   Phone tweaks
   -------------------------------------------------------------------------- */

@media (max-width: 575px) {
  /* More room between the hero buttons and the Chamber image */
  .hero {
    padding-bottom: 64px;
  }

  /* Explore: label on the left, the two links stacked and left-aligned on the right */
  .explore {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
  }

  .explore-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .explore-label,
  .explore a {
    padding: 8px 0;
  }

  /* Get started: top-level links stacked, left-aligned */
  .toc {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}
