/* CPS Lab — visual identity
 * Primary dark marine #0F172A · Graphite #1F2937
 * Technical blue #2563EB · Precision turquoise #14B8A6
 * Steel gray #94A3B8 · Light bg #F8FAFC · Warning amber #F59E0B
 */

:root {
  --c-bg: #0F172A;
  --c-bg-2: #0B1220;
  --c-bg-3: #1E293B;
  --c-graphite: #1F2937;
  --c-line: #243144;
  --c-line-soft: #182234;
  --c-blue: #2563EB;
  --c-blue-soft: #3B82F6;
  --c-turq: #14B8A6;
  --c-steel: #94A3B8;
  --c-steel-2: #CBD5E1;
  --c-light: #F8FAFC;
  --c-amber: #F59E0B;

  --font-sans: "Inter", "Suisse Int'l", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1200px;
}

@supports (font-variation-settings: normal) {
  :root { --font-sans: "Inter var", "Suisse Int'l", ui-sans-serif, -apple-system, sans-serif; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-bg);
  color: var(--c-steel-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;  /* containing block for the floating .partners post-it */
}
a { color: var(--c-blue-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-turq); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--c-light); font-weight: 500; letter-spacing: -0.01em; margin: 0; }

/* --- Top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line-soft);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar__brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--c-light);
  text-decoration: none;
}
.topbar__brand:hover { color: var(--c-light); }
.topbar__sep {
  color: var(--c-line);
  font-size: 18px;
  font-weight: 300;
  user-select: none;
}
.topbar__partner {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--c-steel);
  transition: color .15s ease;
}
.topbar__partner-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-steel);
  white-space: nowrap;
}
.topbar__partner img {
  height: 22px;
  width: auto;
  max-width: none;
  opacity: 0.85;
  transition: opacity .15s ease;
}
.topbar__partner:hover img { opacity: 1; }

/* Hide the institutional caption on narrow screens; keep the logo */
@media (max-width: 880px) {
  .topbar__sep,
  .topbar__partner-label { display: none; }
}
@media (max-width: 500px) {
  .topbar__partner { display: none; }
}
.topbar__nav { display: flex; gap: 24px; }
.topbar__nav a {
  color: var(--c-steel);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.topbar__nav a:hover { color: var(--c-light); }

/* hamburger button */
.topbar__burger {
  display: none;
  width: 36px; height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
}
.topbar__burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--c-light);
  transition: transform .15s ease, opacity .15s ease;
}
.topbar.is-open .topbar__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.topbar.is-open .topbar__burger span:nth-child(2) { opacity: 0; }
.topbar.is-open .topbar__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .topbar__burger { display: flex; }
  .topbar__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-line-soft);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .topbar.is-open .topbar__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topbar__nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--c-line-soft);
    font-size: 15px;
  }
  .topbar__nav a:last-child { border-bottom: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line-soft);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 2.6vw, 36px) var(--gutter) clamp(20px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.hero__logo {
  height: clamp(96px, 13vw, 160px);
  width: auto;
  margin: 0;
  display: block;
  flex-shrink: 0;
}
.hero__text { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
}
.hero__title {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--c-light);
  margin: 0 0 10px;
  max-width: 16ch;
}
.hero__lede {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--c-steel-2);
  max-width: 60ch;
  line-height: 1.5;
  margin: 0;
}

/* --- Section base --- */
.section {
  padding: clamp(20px, 2.4vw, 36px) 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.section--alt { background: var(--c-bg-2); }
.section--cta {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(37, 99, 235, 0.16), transparent 70%),
    var(--c-bg);
}
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}
.section__head h2 { font-size: clamp(22px, 2.8vw, 30px); }
.section__intro {
  max-width: 70ch;
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--c-steel-2);
  line-height: 1.55;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-blue-soft);
  letter-spacing: 0.16em;
}
.section__head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--c-light);
  font-weight: 400;
}
.muted { color: var(--c-steel); }
.small { font-size: 13.5px; }

/* --- Use cases --- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
@media (max-width: 900px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cases { grid-template-columns: 1fr; } }
.case {
  background: var(--c-bg-2);
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s ease;
}
.case__tag { margin-bottom: 4px; }
.case h3 { font-size: 17px; }
.case p { font-size: 14.5px; }
.case:hover { background: var(--c-bg-3); }
.case__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-turq);
  display: inline-block;
  margin-bottom: 14px;
}
.case h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-light);
}
.case p {
  color: var(--c-steel-2);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}

/* --- Matrix / amplified table --- */
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--c-steel-2);
}
.matrix th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-turq);
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-line);
}
.matrix td {
  padding: 22px 18px;
  border-bottom: 1px solid var(--c-line-soft);
  vertical-align: top;
  line-height: 1.5;
}
.matrix td:first-child {
  color: var(--c-light);
  font-weight: 500;
  width: 14%;
  white-space: nowrap;
}
.matrix td:nth-child(2) {
  color: var(--c-steel);
  width: 36%;
}
.matrix tbody tr:last-child td { border-bottom: none; }
@media (max-width: 760px) {
  .matrix, .matrix thead, .matrix tbody, .matrix tr, .matrix td, .matrix th { display: block; }
  .matrix thead { display: none; }
  .matrix td { padding: 8px 0; border: none; width: auto !important; white-space: normal !important; }
  .matrix tr { padding: 20px 0; border-bottom: 1px solid var(--c-line-soft); }
  .matrix td:first-child {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--c-turq); font-weight: 500;
    margin-bottom: 6px;
  }
}

.max-60 { max-width: 60ch; margin-bottom: 48px; }
em { font-style: italic; color: var(--c-light); }

/* --- Partners post-it (floating, top-right) --- */
.partners {
  flex: 0 0 clamp(220px, 24vw, 300px);
  align-self: center;
  margin-left: auto;
}
.partners__inner {
  background: var(--c-bg-2);
  border: 1px solid var(--c-line-soft);
  border-left: 2px solid var(--c-turq);
  padding: 16px 18px 18px;
}
.partners__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-turq);
  margin-bottom: 8px;
}
.partners p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-steel-2);
}
.partners a {
  color: var(--c-blue-soft);
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.partners a:hover { color: var(--c-turq); border-color: currentColor; }
.partners strong { color: var(--c-light); font-weight: 500; }
.partners__ltu {
  display: block;
  margin: 14px auto 4px;
  width: max-content;
  border-bottom: none !important;
  line-height: 0;
}
.partners__ltu img {
  width: 150px !important;
  height: 76px !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}
.partners__ltu:hover img { opacity: 1; }

/* Mobile: stack below the hero text, no rotation */
@media (max-width: 720px) {
  .partners {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 18px;
    max-width: 480px;
    align-self: flex-start;
  }
  .partners__inner { transform: none; }
  .partners__inner:hover { transform: none; }
  .partners__inner::before { display: none; }
}

/* --- Stack figure (SVG architecture diagram) --- */
.stack-fig {
  margin: 0;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-soft);
}
.stack-fig svg {
  width: 100%;
  height: auto;
  display: block;
}
.stack-fig svg .layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--c-steel);
}
.stack-fig svg .layer-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  fill: var(--c-light);
}
.stack-fig svg .layer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  fill: var(--c-steel);
}
.stack-fig svg .chip-t {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--c-steel-2);
}
.stack-fig svg .chip-t--hi {
  fill: var(--c-light);
  font-weight: 500;
}
.stack-fig figcaption {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
  text-align: center;
}

/* --- (legacy) Stack list layers — kept for compat --- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
}
.stack__layer {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--c-line-soft);
  position: relative;
  transition: background .2s ease;
}
.stack__layer:last-child { border-bottom: none; }
.stack__layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-line);
  transition: background .2s ease;
}
.stack__layer:hover { background: var(--c-bg-3); }
.stack__layer:hover::before { background: var(--c-blue); }

.stack__layer--users::before    { background: var(--c-turq); }
.stack__layer--agents::before   { background: var(--c-blue); }
.stack__layer--meta::before     { background: var(--c-blue-soft); }
.stack__layer--infra::before    { background: var(--c-steel); }
.stack__layer--sensing::before  { background: var(--c-graphite); }

.stack__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.stack__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stack__body strong {
  color: var(--c-light);
  font-weight: 500;
  font-size: 17px;
}
.stack__body span:not(.chip) {
  color: var(--c-steel-2);
  font-size: 14.5px;
}
.stack__body--chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--c-bg-3);
  border: 1px solid var(--c-line);
  color: var(--c-steel-2);
  font-size: 13px;
  border-radius: 2px;
  letter-spacing: 0.005em;
}
.chip--accent {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--c-light);
  font-weight: 500;
}
.stack__note {
  margin-top: 28px;
  max-width: 80ch;
  line-height: 1.55;
}
.stack__note strong { color: var(--c-light); }

@media (max-width: 640px) {
  .stack__layer { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px 18px 22px; }
  .stack__label { margin-bottom: 2px; }
}

/* --- Apps (screenshot grid) --- */
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .apps { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; gap: 14px; } }
.app {
  margin: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.app:hover { border-color: var(--c-blue); transform: translateY(-2px); }
.app__shot {
  display: block;
  overflow: hidden;
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-line);
}
.app__shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .25s ease;
}
.app:hover .app__shot img { transform: scale(1.015); }
.app figcaption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-turq);
  margin-bottom: 4px;
}
.app h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-light);
  margin: 0;
}
.app p {
  font-size: 13.5px;
  color: var(--c-steel);
  margin: 0;
  line-height: 1.5;
}

/* --- Features --- */
.features {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.features li {
  background: var(--c-bg);
  padding: 14px 18px 16px;
  position: relative;
}
.features h3 { margin-bottom: 6px; font-size: 15px; }
.features p { font-size: 13.5px; }
.features li::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--c-blue);
}
.features h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--c-light);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.features p {
  margin: 0;
  color: var(--c-steel);
  font-size: 14.5px;
  line-height: 1.55;
}

/* --- CTA --- */
.section--cta h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section--cta .lede {
  max-width: 50ch;
  margin: 0 auto 36px;
}
.cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--c-blue);
  color: var(--c-light);
  font-weight: 500;
  border-radius: 2px;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  transition: background .15s ease;
}
.cta:hover { background: var(--c-blue-soft); color: var(--c-light); }

/* --- Footer --- */
.footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-steel);
}
.footer__logos {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  text-decoration: none;
}
.footer__wordmark {
  /* match colonyos.io wordmark: Exo Bold */
  font-family: "Exo", var(--font-sans);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.005em;
  color: var(--c-light);
  transition: color .15s ease;
}
.footer__logo-link--wordmark:hover .footer__wordmark { color: var(--c-turq); }
.footer__logo {
  display: block;
  height: clamp(48px, 8vw, 88px);
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity .15s ease;
}
.footer__logo-link:hover .footer__logo { opacity: 1; }

.footer__contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 16px;
  display: flex;
  justify-content: center;
}
.footer__contact-label { font-size: 14px; color: var(--c-steel); }
.footer__email { font-size: 14px; color: var(--c-steel-2); }
.footer__email:hover { color: var(--c-turq); }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter) 14px;
  border-top: 1px solid var(--c-line-soft);
  display: flex; justify-content: space-between; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .footer__logos {
    justify-content: space-around;
    gap: 16px;
  }
  .footer__contact { justify-content: center; padding-bottom: 18px; }
}

.footer__legal { display: flex; gap: 16px; align-items: center; }
.footer__legal a,
.footer__legal-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.footer__legal a:hover,
.footer__legal-btn:hover { color: var(--c-turq); }

/* --- GDPR consent dialog --- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; justify-content: center;
  padding: var(--gutter);
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent__card {
  pointer-events: auto;
  max-width: 560px; width: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(16px); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.consent.is-open .consent__card { transform: translateY(0); opacity: 1; }
.consent__title {
  font-size: 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.consent__title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-turq); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}
.consent__body { font-size: 14px; line-height: 1.6; color: var(--c-steel-2); margin: 0 0 18px; }
.consent__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.consent__btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--c-line); transition: all .15s ease;
}
/* Decline is given equal visual weight to Accept (GDPR requirement). */
.consent__btn--ghost { background: transparent; color: var(--c-steel-2); }
.consent__btn--ghost:hover { border-color: var(--c-steel); color: var(--c-light); }
.consent__btn--primary {
  background: var(--c-blue); border-color: var(--c-blue); color: #fff;
}
.consent__btn--primary:hover { background: var(--c-blue-soft); border-color: var(--c-blue-soft); }
@media (max-width: 640px) {
  .consent__actions { justify-content: stretch; }
  .consent__btn { flex: 1; }
}

/* --- Document pages (privacy) --- */
.doc { max-width: 760px; }
.doc__updated {
  font-family: var(--font-mono); font-size: 12px; color: var(--c-steel);
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 24px;
}
.doc h3 { font-size: 18px; margin: 32px 0 10px; color: var(--c-light); }
.doc p { margin: 0 0 14px; }
.doc code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--c-bg-3); border: 1px solid var(--c-line);
  border-radius: 4px; padding: 1px 5px; color: var(--c-steel-2);
}
.doc__list { margin: 0 0 14px; padding-left: 20px; }
.doc__list li { margin-bottom: 10px; }
.doc__table {
  width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px;
}
.doc__table th, .doc__table td {
  text-align: left; padding: 8px 12px; border: 1px solid var(--c-line);
}
.doc__table th { background: var(--c-bg-3); color: var(--c-light); font-weight: 500; }
.doc__attr { font-size: 12px; color: var(--c-steel); margin-top: 28px; }

/* legacy compat */
.label { display: none; }

/* ─────────  CPS Lab additions (appended)  ───────── */

/* Hero: brand eyebrow + action buttons */
.hero__brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-turq);
  margin-bottom: 10px;
}
.hero__title { max-width: 22ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.cta--sm { padding: 11px 24px; font-size: 14.5px; }
.cta--ghost {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-steel-2);
}
.cta--ghost:hover {
  background: var(--c-bg-3);
  border-color: var(--c-blue);
  color: var(--c-light);
}

/* Card grid variant: four compact cards */
.cases--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .cases--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cases--four { grid-template-columns: 1fr; } }

/* "Selected result" line pinned to the bottom of a card */
.case p.case__result {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--c-steel);
}
.case__result span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue-soft);
  margin-bottom: 5px;
}

/* Emphasis inside a section intro */
.section__intro strong { color: var(--c-light); font-weight: 500; }

/* Closing note with an inline call to action */
.section__note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0 4px;
  font-size: 16px;
  color: var(--c-light);
}

/* Footer disclosure + funding acknowledgement */
.footer__notes {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 14px;
  text-align: center;
}
.footer__note {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-steel);
}
.footer__note:last-child { margin-bottom: 0; }

/* Three-card grids at the two-column breakpoint: let the lone last card
   span both columns instead of leaving an empty cell. */
@media (min-width: 521px) and (max-width: 900px) {
  .cases > .case:nth-child(3):last-child { grid-column: span 2; }
}

/* Research grid: four full-length cards, 2×2 at wide widths.
   (.cases--four packs four compact cards on one row; these cards carry more
   text, so they read better in two columns.) */
.cases--2up { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cases--2up { grid-template-columns: 1fr; } }
