:root {
  background: #fff;
  --navy: #062b4f;
  --navy-2: #0f4e78;
  --red: #b21f3d;
  --red-dark: #7f1029;
  --cream: #fff;
  --paper: #fff;
  --sand: #d5a63d;
  --line: #7d91a1;
  --pale: #eef5fa;
  --ink: #142a3b;
  --muted: #425668;
  --green: #17633d;
  --amber: #7a5200;
  --violet: #5f3680;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", monospace;
  font-size: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body.content-site {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.68 var(--sans);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--navy);
  color: white;
  padding: 13px 17px;
  z-index: 100;
}

.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c49438;
  outline-offset: 4px;
}

.site-wrap {
  width: min(1220px, calc(100% - 80px));
  margin-inline: auto;
}

/* Header and navigation */

.utility-bar {
  background: var(--navy);
  color: white;
  border-top: 5px solid var(--red);
}

.utility-bar > .site-wrap {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-size: 12px;
  letter-spacing: 1.2px;
}

.utility-bar nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.utility-bar a {
  text-decoration: none;
  letter-spacing: 0;
  font-size: 13px;
}

.utility-bar a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.main-header {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.wordmark {
  font: normal 47px/1 var(--serif);
  letter-spacing: -2px;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
}

.wordmark > span { color: var(--red); }

.wordmark small {
  display: block;
  font: 700 12px/1.5 var(--sans);
  letter-spacing: 2.1px;
  margin: 8px 0 0 2px;
}

.primary-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.primary-nav > a,
.primary-nav > button {
  border: 0;
  background: none;
  color: var(--navy);
  padding: 8px 0 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .8px;
  white-space: nowrap;
}

.primary-nav > a:hover,
.primary-nav > button:hover,
.primary-nav > [aria-current=page] {
  border-bottom: 3px solid var(--red);
  padding-bottom: 3px;
  color: var(--red);
}

.primary-nav .pilot-nav {
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  padding: 11px 15px;
}

.primary-nav .pilot-nav:hover {
  border-bottom: 1px solid var(--red);
  padding-bottom: 11px;
  background: var(--red-dark);
  color: white;
}

.menu-toggle { display: none; }

.lab-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

/* Footer */

.lab-footer {
  background: var(--navy);
  color: white;
  padding: 55px 0 20px;
  border-top: 6px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr 1fr;
  gap: 50px;
}

.footer-mark { color: white; font-size: 42px; }
.footer-mark > span { color: #f0c75e; }

.footer-grid > div:first-child p {
  font: 18px/1.5 var(--serif);
  color: #d9e1e8;
  max-width: 260px;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid strong {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c7d4df;
  margin-bottom: 5px;
}

.footer-grid nav a,
.footer-pilot a {
  font-size: 14px;
  text-decoration: none;
}

.footer-grid nav a:hover,
.footer-pilot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-pilot p {
  font-size: 14px;
  color: #d2dce4;
  margin: 5px 0 14px;
}

.footer-pilot a { color: #f3d582; }

.footer-base {
  border-top: 1px solid #4e667c;
  margin-top: 40px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #c9d4dd;
  font-size: 12px;
}

/* Shared typography and controls */

.kicker {
  margin: 0 0 13px;
  color: var(--red);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.7px;
  line-height: 1.6;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--navy);
}

h1 {
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -1.7px;
  margin: 0;
}

h2 {
  font-size: clamp(34px, 3.5vw, 47px);
  line-height: 1.16;
  letter-spacing: -.8px;
  margin: 0;
}

h3 { font-size: 27px; line-height: 1.25; margin: 0; }
.lead { font: 24px/1.45 var(--serif); color: var(--navy); }

.fine-print {
  font-size: 13px !important;
  line-height: 1.6;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
  border: 1px solid var(--navy);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .5px;
  line-height: 1.3;
  cursor: pointer;
}

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

.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover { background: var(--navy); color: white; }

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

.button.light:hover { background: #e6eff6; }

.text-link {
  display: inline-block;
  color: var(--navy);
  font-size: 14px;
  font-weight: bold;
  text-underline-offset: 6px;
}

.text-link:hover { color: var(--red); }

.status-label {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 4px 7px;
  border: 1px solid;
  text-transform: uppercase;
  line-height: 1.4;
}

.status-label.live {
  color: var(--green);
  border-color: #7fa991;
  background: #edf4ed;
}

.status-label.developing {
  color: var(--amber);
  border-color: #c6ac72;
  background: #f8f0df;
}

.status-label.planned {
  color: var(--violet);
  border-color: #b2a0bc;
  background: #f2edf4;
}

.section { padding-block: 78px; }
.section-intro { max-width: 730px; margin-bottom: 38px; }

.section-intro > p:last-child {
  color: var(--muted);
  max-width: 650px;
  margin: 16px 0 0;
}

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

/* Homepage */

.home-hero {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  min-height: 0;
  padding: 64px 0 58px;
}

.hero-copy { padding: 0; align-self: center; }
.hero-copy h1 em { font-style: normal; color: var(--red); }

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 470px;
  margin: 25px 0 29px;
}

.hero-stage {
  font-size: 12px;
  color: var(--muted);
  margin: 19px 0 0;
  border-top: 1px solid #c7c7c0;
  padding-top: 12px;
}

.hero-grid figure {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 420px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  background: var(--cream);
}

.hero-grid figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: white;
  background: #102f4fe8;
  padding: 14px 18px;
  font: 15px/1.5 var(--serif);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero-grid figcaption span {
  font: 12px var(--sans);
  color: #ced9e1;
  white-space: nowrap;
}

.evidence-band {
  background: var(--navy);
  color: white;
  border-block: 1px solid var(--navy);
}

.evidence-band > .site-wrap {
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding-block: 30px;
}

.evidence-band strong {
  font: 65px/1 var(--serif);
  color: #f0c75e;
}

.evidence-band p {
  font: 20px/1.45 var(--serif);
  color: white;
  max-width: 560px;
  margin: 0;
}

.evidence-band a {
  color: #f3d582;
  font-size: 13px;
  max-width: 180px;
}

.feature-ledger {
  border-top: 4px solid var(--navy);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-ledger article {
  padding: 25px 27px 5px;
  border-right: 1px solid var(--line);
}

.feature-ledger article:first-child { padding-left: 0; }

.feature-ledger article:last-child {
  border-right: 0;
  padding-right: 0;
}

.feature-ledger article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.feature-index { font: 26px var(--serif); color: var(--red); }
.feature-ledger h3 { margin: 25px 0 13px; }
.feature-ledger p { color: var(--muted); margin: 0 0 22px; }

.feature-ledger a {
  font-size: 14px;
  font-weight: bold;
  color: var(--navy);
}

.problem-section {
  padding: 75px 0;
  background: var(--pale);
  border-block: 1px solid #d8dcda;
}

.problem-section .lead { margin-top: 0; }

.problem-section p:not(.kicker):not(.lead) {
  color: var(--muted);
}

.solutions-preview {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.solutions-preview .section-intro { margin: 0; }
.audience-explorer { min-width: 0; }

.explorer-prompt {
  font-size: 13px;
  margin: 0 0 10px;
  color: var(--muted);
}

.audience-tabs {
  display: flex;
  border-bottom: 3px solid var(--navy);
}

.audience-tabs button {
  flex: 1;
  border: 0;
  background: var(--pale);
  color: var(--navy);
  padding: 13px 10px;
  font-size: 14px;
  cursor: pointer;
}

.audience-tabs button[aria-selected=true] {
  background: var(--navy);
  color: white;
}

.audience-tabs button:hover {
  background: #dce2e3;
  color: var(--navy);
}

.audience-panel { padding: 27px 0 0; min-height: 250px; }
.audience-panel h3 { margin: 13px 0 14px; }
.audience-panel p { color: var(--muted); max-width: 600px; }

.offline-section {
  background: white;
  color: var(--ink);
  padding: 65px 0;
  border-block: 1px solid var(--line);
}

.offline-section .split { align-items: center; }
.offline-section .kicker { color: var(--red); }
.offline-section h2 { color: var(--navy); }
.offline-section p { color: var(--muted); max-width: 570px; }

.offline-mark {
  font: 50px/.95 var(--serif);
  letter-spacing: -2px;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  padding: 30px;
  width: 290px;
}

.offline-section .button.light {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.offline-section .button.light:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Interactive sample walkthrough */

.product-tour {
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  padding: 31px;
  background: white;
}

.tour-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.tour-heading > div > p:last-child {
  color: var(--muted);
  margin: 12px 0 0;
}

.sample-choice {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 19px 0 0;
  margin: 25px 0;
}

.sample-choice legend {
  font-size: 14px;
  font-weight: bold;
  padding: 0 10px 0 0;
}

.sample-choice label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.sample-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.tour-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--navy);
}

.tour-steps button {
  width: 100%;
  border: 0;
  border-bottom: 4px solid transparent;
  background: var(--pale);
  color: var(--navy);
  padding: 13px 8px;
  font-size: 14px;
  cursor: pointer;
}

.tour-steps button span {
  font: 18px var(--serif);
  color: var(--red);
  margin-right: 7px;
}

.tour-steps button[aria-current=step] {
  background: #dfe7eb;
  border-bottom-color: var(--red);
  font-weight: bold;
}

.tour-panel { min-height: 285px; padding: 27px 0 10px; }
.tour-panel h4 { font-size: 29px; margin: 11px 0 17px; }

.tour-panel p {
  max-width: 800px;
  color: var(--muted);
  margin: 0 0 16px;
}

.tour-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.note-label {
  font-size: 11px;
  color: var(--red);
  font-weight: bold;
  letter-spacing: 1.2px;
}

.record-preview {
  background: var(--cream);
  border-left: 4px solid var(--navy);
  padding: 20px;
  align-self: center;
  min-width: 0;
}

.record-preview pre {
  font: 14px/1.75 var(--mono);
  overflow: auto;
  color: var(--navy);
}

.record-preview small { font-size: 12px; color: var(--muted); }
.validation-list { list-style: none; padding: 0; max-width: 700px; }

.validation-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
}

.validation-list strong { color: var(--green); font-weight: normal; }
.tour-metrics { display: flex; gap: 35px; }
.tour-metrics dt { font-size: 13px; color: var(--muted); }

.tour-metrics dd {
  font: 35px var(--serif);
  color: var(--navy);
  margin: 3px 0;
}

.tour-metrics small { font: 13px var(--sans); }
.tour-chart svg { width: 100%; display: block; }
.tour-chart h5 { font-size: 14px; margin: 0; }
.tour-chart text { font: 13px Arial, sans-serif; fill: #53616c; }

.tour-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 21px;
}

.tour-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.tour-controls button,
.tour-final-actions button {
  border: 1px solid var(--navy);
  background: white;
  color: var(--navy);
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
}

.tour-controls #tour-next,
.tour-final-actions button {
  background: var(--navy);
  color: white;
}

.tour-controls button:disabled { opacity: .4; cursor: default; }
.tour-controls > span { font-size: 12px; color: var(--muted); }

.tour-final-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* Roadmap and shared page introductions */

.roadmap-preview {
  padding: 72px 0;
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.roadmap-table {
  border-top: 4px solid var(--navy);
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.roadmap-table > div {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.roadmap-table > div:first-child { padding-left: 0; }
.roadmap-table > div:last-child { border: 0; }

.roadmap-table span {
  font-size: 11px;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 1px;
}

.roadmap-table strong {
  display: block;
  font: 20px/1.3 var(--serif);
  color: var(--navy);
  margin: 12px 0 8px;
}

.roadmap-table p { font-size: 13px; color: var(--muted); margin: 0; }
.pilot-cta { padding: 60px 0; border-top: 1px solid var(--line); }
.pilot-cta .split { align-items: center; }
.pilot-cta p:not(.kicker) { color: var(--muted); margin-top: 0; }

.page-hero {
  padding: 64px 0 50px;
  border-top: 1px solid var(--line);
}

.page-hero h1 { max-width: 950px; }

.page-hero > p:last-child {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
  margin: 23px 0 0;
}

.status-key {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}

.live-dot { background: var(--green); }
.dev-dot { background: var(--amber); }
.plan-dot { background: var(--violet); }
.ruled-section { border-top: 1px solid var(--line); }

/* Platform */

.number-title {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 35px;
}

.number-title > span {
  font: 42px var(--serif);
  color: var(--red);
  line-height: 1;
}

.number-title h2 { margin-top: 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.detail-grid p:not(.lead) { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 22px 0; }

.check-list li {
  border-bottom: 1px solid var(--line);
  padding: 9px 0 9px 27px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

.terminal {
  margin: 0;
  background: #17232d;
  color: #e9eef1;
  border-left: 6px solid var(--red);
  padding: 22px 25px;
  overflow: auto;
  font: 14px/1.8 var(--mono);
  white-space: pre;
}

.terminal span { color: #f0c75e; }

.paper-report {
  border: 1px solid var(--navy);
  border-top: 5px solid var(--navy);
  padding: 22px;
  background: var(--cream);
}

.paper-report > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.paper-report dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}

.paper-report dl > div {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.paper-report dt { font-size: 12px; color: var(--muted); }

.paper-report dd {
  font: 27px var(--serif);
  color: var(--navy);
  margin: 4px 0;
}

.paper-report > p {
  font-size: 14px !important;
  color: var(--navy) !important;
  border-top: 3px double var(--navy);
  padding-top: 15px;
}

.visual-model {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 55px;
  align-items: start;
}

.visual-model > div > p:last-child { color: var(--muted); }

.visual-model figure,
.pricing-visual figure {
  margin: 0;
  border: 1px solid var(--line);
  background: white;
}

.visual-model img,
.pricing-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-model figcaption,
.pricing-visual figcaption {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 10px 13px;
}

.roadmap-page { background: var(--cream); padding: 70px 0; }

.roadmap-page table,
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.roadmap-page th,
.roadmap-page td,
.docs-content th,
.docs-content td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  vertical-align: top;
}

.roadmap-page th,
.docs-content th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  border-top: 3px solid var(--navy);
}

/* Solutions */

.persona-section { padding: 70px 0; border-top: 1px solid var(--line); }
.persona-section.alt { background: var(--cream); }

.persona-grid {
  display: grid;
  grid-template-columns: .3fr 1.7fr;
  gap: 55px;
}

.persona-aside span { font: 50px var(--serif); color: var(--red); }

.persona-aside p {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.2px;
  color: var(--navy);
}

.persona-grid > div:last-child > h2 { max-width: 850px; }
.persona-grid .lead { max-width: 800px; }

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--navy);
  margin: 30px 0;
}

.need-grid article { padding: 22px; border-right: 1px solid var(--line); }
.need-grid article:first-child { padding-left: 0; }
.need-grid article:last-child { border: 0; }
.need-grid h3 { font-size: 22px; }
.need-grid p { font-size: 15px; color: var(--muted); }

.comparison-strip {
  background: var(--cream);
  color: var(--ink);
  padding: 55px 0;
  border-block: 1px solid var(--line);
}

.comparison-strip h2 { color: var(--navy); }
.comparison-strip .kicker { color: var(--red); }
.comparison-strip p { color: var(--muted); max-width: 700px; }

/* Research */

.research-stat {
  background: var(--cream);
  color: var(--ink);
  padding: 60px 0;
  border-block: 1px solid var(--line);
}

.research-stat > .site-wrap {
  display: grid;
  grid-template-columns: .5fr 1.5fr;
  gap: 60px;
}

.research-stat > div > strong {
  font: 63px/1.05 var(--serif);
  color: var(--red);
}

.research-stat h2 { color: var(--navy); font-size: 35px; }
.research-stat p { color: var(--muted); max-width: 780px; }
.research-stat a { color: var(--navy); }

.evidence-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 4px solid var(--navy);
}

.evidence-ledger article {
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-ledger article:nth-child(odd) { padding-left: 0; }
.evidence-ledger article:nth-child(even) { border-right: 0; }
.evidence-ledger h3 { margin: 15px 0 10px; }
.evidence-ledger p { color: var(--muted); margin: 0; }
.validation-agenda { background: var(--cream); padding: 70px 0; }

.validation-agenda ol {
  list-style: none;
  padding: 0;
  border-top: 3px solid var(--navy);
}

.validation-agenda li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.validation-agenda li > span { font: 30px var(--serif); color: var(--red); }
.validation-agenda h3 { font-size: 25px; }
.validation-agenda li p { color: var(--muted); margin: 7px 0 0; }
.link-ledger { border-top: 3px solid var(--navy); }

.link-ledger a {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-ledger a:hover { color: var(--red); }
.link-ledger strong { font-size: 14px; }

/* Pricing */

.pricing-section { padding-bottom: 70px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 5px solid var(--navy);
}

.pricing-grid article {
  padding: 30px 35px 35px;
  border: 1px solid var(--line);
  border-top: 0;
}

.institutional-price { background: var(--cream); }
.pricing-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.pricing-head h2 { margin: 13px 0; }
.pricing-head > strong { font: 42px var(--serif); color: var(--navy); }
.pricing-head small { font: 14px var(--sans); color: var(--muted); }
.pricing-grid article > p { color: var(--muted); }

.support-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: .35fr 1.65fr;
  gap: 30px;
  padding: 22px 0;
}

.support-row span {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--red);
}

.support-row p { margin: 0; color: var(--muted); }

.pricing-visual {
  display: grid;
  grid-template-columns: .5fr 1.5fr;
  gap: 55px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.pricing-visual > div p:last-child { color: var(--muted); }

.pricing-faq,
.company-questions {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
  padding: 65px 0;
  border-top: 1px solid var(--line);
}

.question-list details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.question-list details:last-child { border-bottom: 1px solid var(--line); }

.question-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--navy);
  font: 19px/1.4 var(--serif);
}

.question-list summary::-webkit-details-marker { display: none; }

.question-list summary::after {
  content: "+";
  font: 24px var(--sans);
  color: var(--red);
}

.question-list details[open] summary::after { content: "−"; }
.question-list details p { color: var(--muted); margin: 15px 0 4px; }

/* Company */

.company-story {
  padding: 70px 0;
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.founder-section {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 70px;
  padding: 75px 0;
}

.founder-mark {
  width: 260px;
  height: 300px;
  background: var(--navy);
  color: #f0c75e;
  display: grid;
  place-items: center;
  font: 75px var(--serif);
  border-bottom: 10px solid var(--red);
}

.founder-section .lead { max-width: 700px; }

.founder-section > div:last-child p:not(.kicker):not(.lead) {
  color: var(--muted);
  max-width: 750px;
}

.built-for {
  background: var(--cream);
  color: var(--ink);
  padding: 65px 0;
  border-block: 1px solid var(--line);
}

.built-for h2 { color: var(--navy); }
.built-for .kicker { color: var(--red); }
.built-for .section-intro > p:last-child { color: var(--muted); }

.built-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 4px solid var(--navy);
}

.built-for-grid span {
  padding: 18px 13px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--navy);
  font: 18px/1.4 var(--serif);
}

.built-for-grid span:nth-child(3n) { border-right: 0; }
.values-section { padding: 70px 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--navy);
}

.values-grid article { padding: 22px; border-right: 1px solid var(--line); }
.values-grid article:first-child { padding-left: 0; }
.values-grid article:last-child { border: 0; }
.values-grid > article > span { font: 25px var(--serif); color: var(--red); }
.values-grid h3 { font-size: 23px; margin: 16px 0 10px; }
.values-grid p { font-size: 14px; color: var(--muted); }

/* Blog */

.blog-list { max-width: 950px; }
.blog-list article { padding: 35px 0; border-top: 4px solid var(--navy); }
.blog-list article + article { margin-top: 45px; }

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--red);
}

.article-meta time { color: var(--muted); letter-spacing: 0; }
.blog-list h2 { font-size: 39px; margin-top: 17px; }
.blog-list .lead { font-size: 22px; color: var(--muted); }

.blog-list details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.article-body {
  border-left: 3px solid var(--red);
  padding: 5px 0 5px 25px;
  margin-top: 25px;
  max-width: 760px;
}

.article-body p { color: var(--muted); }
.note-subscribe { background: var(--cream); padding: 55px 0; }
.note-subscribe .split { align-items: center; }

/* Documentation */

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 70px;
  padding-bottom: 75px;
}

.docs-layout aside nav {
  position: sticky;
  top: 20px;
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
}

.docs-layout aside strong {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 15px 0;
  color: var(--red);
}

.docs-layout aside a {
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.docs-content section {
  padding: 0 0 55px;
  margin-bottom: 55px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 25px;
}

.docs-content section:last-child { border-bottom: 0; }
.docs-content h2 { font-size: 38px; margin-bottom: 20px; }
.docs-content p, .docs-content li { color: var(--muted); }

code {
  font: 14px var(--mono);
  background: #e8f0f6;
  padding: 2px 5px;
  color: var(--navy);
}

.terminal code { background: transparent; }

.doc-callout {
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  margin-top: 25px;
}

.doc-callout strong { color: var(--navy); }
.doc-callout p { margin-bottom: 0; }
.release-ledger { border-top: 4px solid var(--navy); }

.release-ledger > div {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  align-items: center;
}

.release-ledger > div > strong {
  font: 19px var(--serif);
  color: var(--navy);
}

.release-ledger > div > a,
.release-ledger > div > span:last-child {
  font-size: 14px;
  color: var(--muted);
}

/* Contact and pilot request */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  padding-bottom: 75px;
}

#pilot-form { border-top: 5px solid var(--navy); padding-top: 25px; }
.form-intro h2 { font-size: 38px; }
.form-intro p { color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: bold;
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid #8997a2;
  background: white;
  color: var(--ink);
  padding: 12px;
  font-size: 16px;
  border-radius: 0;
}

.form-grid textarea { resize: vertical; }

.form-grid fieldset {
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
}

.form-grid fieldset legend {
  font-size: 14px;
  font-weight: bold;
  color: var(--navy);
  padding: 0 7px;
}

.form-grid fieldset label,
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.form-grid input[type=radio],
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
  flex-shrink: 0;
}

.consent { margin: 0 0 22px; }
.form-status { font-size: 14px; color: var(--green); min-height: 23px; }
.form-status.is-error { color: var(--red-dark); }

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#pilot-form[aria-busy="true"] { opacity: .82; }
#pilot-form button:disabled { cursor: wait; opacity: .72; }

.request-output {
  background: var(--cream);
  border-top: 5px solid var(--red);
  padding: 25px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.request-output h2 { font-size: 32px; }

.request-output pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.65 var(--mono);
  background: white;
  border: 1px solid var(--line);
  padding: 15px;
  max-height: 430px;
  overflow: auto;
}

.request-output > p:last-child { font-size: 13px; color: var(--muted); }
.button-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-options { background: var(--cream); padding: 55px 0; }

.contact-options > .site-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 4px solid var(--navy);
}

.contact-options article {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.contact-options article:first-child { padding-left: 0; }
.contact-options article:last-child { border: 0; }

.contact-options article > span {
  font-size: 11px;
  color: var(--red);
  font-weight: bold;
  letter-spacing: 1px;
}

.contact-options h3 { font-size: 23px; margin: 15px 0; }
.contact-options a { font-size: 14px; }

.content-site noscript p {
  background: #fff1d9;
  border: 1px solid #c8a864;
  padding: 12px;
}

/* One visual language across the company pages and the working prototype. */

.paper-report,
.record-preview,
.doc-callout,
.request-output {
  background: var(--cream);
}

.qc-page { background: white; }

.qc-page .shell {
  width: min(1220px, calc(100% - 80px));
  max-width: none;
}

.qc-page main { padding: 0 0 34px; }

.qc-page .page-heading {
  margin: 0;
  padding: 64px 0 50px;
  border-top: 1px solid var(--line);
}

.qc-page .eyebrow {
  margin: 0 0 13px;
  color: var(--red);
  font: 700 12px/1.6 var(--sans);
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.qc-page .privacy-note {
  max-width: 330px;
  padding: 22px;
  border: 0;
  border-top: 5px solid var(--red);
  background: var(--cream);
}

.qc-page .input-panel {
  padding: 30px 0;
  border: 0;
  border-top: 5px solid var(--navy);
  background: white;
}

.qc-page .dropzone { background: var(--cream); }

.qc-page .demo-action button,
.qc-page .primary {
  background: var(--red);
  border-color: var(--red);
}

.qc-page .demo-action button:hover,
.qc-page .primary:hover {
  background: var(--red-dark);
}

.qc-page .report-tabs button[aria-selected=true] {
  background: var(--navy);
  border-color: var(--navy);
}

.qc-page .lab-footer {
  display: block;
  margin: 0;
  font: 16px/1.68 var(--sans);
}

.qc-page .lab-footer nav {
  border: 0;
  align-items: stretch;
  font-family: var(--sans);
}

.qc-page .lab-footer nav a {
  flex: initial;
  padding: 0;
  border: 0;
  white-space: normal;
  font: 14px/1.68 var(--sans);
}

/* Medium screens */

@media (max-width: 1100px) {
  .site-wrap { width: min(100% - 50px, 1220px); }
  .primary-nav { gap: 16px; }
  .primary-nav > a, .primary-nav > button { font-size: 11px; }
  .feature-ledger article { padding-inline: 18px; }
  .solutions-preview { gap: 45px; }
  .split { gap: 50px; }
  .roadmap-table { grid-template-columns: repeat(3, 1fr); }
  .roadmap-table > div:nth-child(3) { border-right: 0; }
  .detail-grid { gap: 45px; }

  .visual-model,
  .pricing-visual {
    grid-template-columns: .7fr 1.3fr;
    gap: 35px;
  }

  .footer-grid { gap: 30px; }
  .founder-section { gap: 45px; }
  .founder-mark { width: 220px; height: 270px; }
}

/* Tablet */

@media (max-width: 850px) {
  .site-wrap { width: calc(100% - 40px); }
  .utility-bar > .site-wrap > span { display: none; }
  .utility-bar > .site-wrap { justify-content: flex-end; }
  .main-header { min-height: 92px; }

  .menu-toggle {
    display: block;
    background: white;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 10px 12px;
  }

  .menu-toggle span { margin-left: 9px; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-block: 1px solid var(--line);
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    box-shadow: 0 8px 12px #102f4f22;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav > a,
  .primary-nav > button {
    font-size: 13px;
    padding: 10px;
    text-align: left;
  }

  .primary-nav > a:hover,
  .primary-nav > button:hover,
  .primary-nav > [aria-current=page] {
    border-bottom: 0;
    padding-bottom: 10px;
    background: var(--pale);
  }

  .primary-nav .pilot-nav,
  .primary-nav .pilot-nav:hover {
    padding: 12px;
    text-align: center;
  }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 50px 0; }
  .hero-grid figure { height: 390px; min-height: 390px; }
  .page-home .hero-grid { gap: 30px; padding: 50px 0; }
  .page-home .hero-copy { padding: 0; }
  .qc-page .shell { width: calc(100% - 40px); }

  .evidence-band > .site-wrap {
    grid-template-columns: auto 1fr;
    padding-block: 25px;
  }

  .evidence-band a { grid-column: 2; }
  .feature-ledger { grid-template-columns: 1fr; }

  .feature-ledger article,
  .feature-ledger article:first-child,
  .feature-ledger article:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .solutions-preview { grid-template-columns: 1fr; }
  .offline-section .split { grid-template-columns: .45fr 1fr; }
  .roadmap-table { grid-template-columns: 1fr 1fr; }

  .roadmap-table > div,
  .roadmap-table > div:first-child,
  .roadmap-table > div:last-child {
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .roadmap-table > div:nth-child(2n) { border-right: 0; }
  .split, .detail-grid { grid-template-columns: 1fr; }
  .tour-stage-grid { grid-template-columns: 1fr; }
  .visual-model, .pricing-visual { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; gap: 25px; }

  .persona-aside {
    display: flex;
    gap: 18px;
    align-items: center;
  }

  .persona-aside p { margin: 0; }
  .need-grid { grid-template-columns: 1fr; }

  .need-grid article,
  .need-grid article:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-stat > .site-wrap {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-faq { grid-template-columns: 1fr; gap: 30px; }
  .founder-section { grid-template-columns: .55fr 1.45fr; }
  .built-for-grid { grid-template-columns: 1fr 1fr; }

  .built-for-grid span:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .built-for-grid span:nth-child(2n) { border-right: 0; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  .values-grid article,
  .values-grid article:first-child,
  .values-grid article:last-child {
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }

  .values-grid article:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 40px; }

  .docs-layout aside nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .docs-layout aside strong { grid-column: 1 / -1; }
  .docs-layout aside a { padding-right: 10px; }
  .contact-layout { grid-template-columns: 1fr; }
  .request-output { position: static; }
  .contact-options > .site-wrap { grid-template-columns: 1fr; }

  .contact-options article,
  .contact-options article:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Mobile */

@media (max-width: 560px) {
  .site-wrap { width: calc(100% - 32px); }

  .utility-bar nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .utility-bar a { font-size: 12px; }
  .wordmark { font-size: 39px; }
  .wordmark small { font-size: 11px; letter-spacing: 1.4px; }
  .main-header { min-height: 85px; }
  .section { padding-block: 50px; }
  h1 { font-size: 43px; }
  h2 { font-size: 34px; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero > p:last-child { font-size: 17px; }
  .hero-copy { padding: 40px 0; }
  .hero-grid figure { height: 310px; min-height: 310px; }
  .page-home .hero-grid { gap: 24px; padding: 40px 0; }
  .page-home .hero-copy { padding: 0; }
  .qc-page .shell { width: calc(100% - 32px); }
  .qc-page .page-heading { padding: 48px 0 40px; }

  .qc-page .privacy-note {
    max-width: none;
    margin-top: 22px;
    padding: 18px;
    border-top: 5px solid var(--red);
  }

  .qc-page .input-panel { padding: 24px 0; }

  .hero-grid figcaption {
    font-size: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .evidence-band > .site-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .evidence-band a { grid-column: 1; }
  .evidence-band strong { font-size: 54px; }
  .evidence-band p { font-size: 18px; }
  .audience-tabs { display: grid; grid-template-columns: 1fr; }
  .audience-tabs button { text-align: left; }
  .offline-section .split { grid-template-columns: 1fr; }
  .offline-mark { font-size: 45px; width: 220px; }
  .product-tour { padding: 20px 15px; }
  .tour-heading { display: block; }
  .tour-heading > a { margin-top: 15px; }
  .sample-choice { flex-direction: column; gap: 12px; }
  .tour-steps { grid-template-columns: 1fr 1fr; }
  .tour-steps button { font-size: 13px; }
  .tour-panel { min-height: 0; }
  .tour-controls { flex-wrap: wrap; gap: 10px; }

  .tour-controls > span {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .roadmap-table { grid-template-columns: 1fr; }

  .roadmap-table > div,
  .roadmap-table > div:first-child,
  .roadmap-table > div:last-child {
    border-right: 0;
    padding-inline: 0;
  }

  .number-title { gap: 15px; }
  .number-title > span { font-size: 34px; }
  .terminal { padding: 18px 14px; font-size: 12px; }
  .paper-report dl { grid-template-columns: 1fr; }
  .roadmap-page { overflow-x: auto; }
  .roadmap-page table { min-width: 650px; }
  .evidence-ledger { grid-template-columns: 1fr; }

  .evidence-ledger article,
  .evidence-ledger article:nth-child(odd) {
    padding: 21px 0;
    border-right: 0;
  }

  .research-stat h2 { font-size: 30px; }
  .validation-agenda li { grid-template-columns: 45px 1fr; }
  .pricing-grid article { padding: 25px 20px; }
  .support-row { grid-template-columns: 1fr; gap: 8px; }
  .founder-section { grid-template-columns: 1fr; }

  .founder-mark {
    width: 160px;
    height: 180px;
    font-size: 55px;
  }

  .built-for-grid, .values-grid { grid-template-columns: 1fr; }

  .built-for-grid span,
  .built-for-grid span:nth-child(3n) {
    border-right: 0;
  }

  .values-grid article,
  .values-grid article:first-child,
  .values-grid article:last-child {
    padding-inline: 0;
    border-right: 0;
  }

  .article-meta { flex-direction: column; gap: 4px; }
  .blog-list h2 { font-size: 33px; }
  .docs-layout aside nav { grid-template-columns: 1fr 1fr; }
  .release-ledger > div { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-grid fieldset { flex-direction: column; }
  .contact-options h3 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 6px; }
  .lab-footer { padding-top: 42px; }
  .button-row { align-items: stretch; }
  .button-row .button { flex: 1; }
  .tour-chart text { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .lab-header,
  .lab-footer,
  .pilot-cta,
  .menu-toggle,
  .button-row,
  .tour-controls,
  .sample-choice {
    display: none;
  }

  .site-wrap { width: 100%; }
  .page-hero { padding-top: 0; }
  .content-site { background: white; }
  .persona-section, .section { padding-block: 30px; }
  .tour-panel { min-height: 0; }
  .audience-panel[hidden] { display: block !important; }
}

/* Approved white canvas and stronger colours */

:root {
  --paper: #fff;
  --cream: #fff;
  --pale: #eef5fa;

  --navy: #062b4f;
  --navy-2: #0f4e78;
  --red: #b21f3d;
  --red-dark: #7f1029;

  --ink: #142a3b;
  --muted: #425668;
  --line: #7d91a1;

  --green: #17633d;
  --amber: #7a5200;
  --violet: #5f3680;
}

html,
body,
body.content-site,
body.qc-page,
.lab-header,
main {
  background: #fff;
}

body.qc-page {
  --ink: #062b4f;
  --accent: #b21f3d;
  --muted: #425668;
  --line: #7d91a1;
}

.status-label.live {
  color: #14532d;
  background: #e8f5ec;
  border-color: #287343;
}

.status-label.developing {
  color: #714600;
  background: #fff3d6;
  border-color: #956200;
}

.status-label.planned {
  color: #593076;
  background: #f2eafa;
  border-color: #795098;
}

/* Allow room for Home and Contact */

.main-header {
  flex-wrap: wrap;
  padding-block: 24px;
  gap: 24px;
}

.primary-nav {
  gap: 18px;
  flex-wrap: wrap;
}

/* Built for Africa footer */

.africa-footer {
  display: block;
  margin: 0;
  background: var(--navy);
  color: white;
  font: 16px/1.68 var(--sans);
}

.africa-footer .africa-heading {
  font: 700 18px/1.5 var(--sans);
  letter-spacing: 2px;
  color: white;
  margin-bottom: 10px;
}

.africa-footer nav {
  border: 0;
  font-family: var(--sans);
}

.africa-footer nav a {
  flex: initial;
  border: 0;
  padding: 0;
  color: white;
  background: transparent;
  font: 14px/1.68 var(--sans);
  white-space: normal;
}

.africa-footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.africa-footer .footer-base {
  flex-wrap: wrap;
}

.africa-footer .footer-base span span {
  color: #ffb4c2;
}

/* Homepage image gallery */

.image-gallery {
  border-top: 1px solid var(--line);
}

.image-gallery > p {
  color: var(--muted);
}

.image-gallery > .kicker {
  color: var(--red);
}

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

.gallery-grid > a {
  display: block;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  text-decoration: none;
  color: var(--navy);
  background: white;
}

.gallery-grid > a:hover {
  border-color: var(--red);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: white;
  border-bottom: 1px solid var(--line);
}

.gallery-grid > a:first-child img {
  object-fit: cover;
}

.gallery-grid strong,
.gallery-grid span {
  display: block;
  margin: 16px 18px;
}

.gallery-grid strong {
  font: normal 25px/1.3 var(--serif);
}

.gallery-grid span {
  font: 14px/1.5 var(--sans);
  color: var(--muted);
}

/* Enlarged image viewer */

.image-viewer {
  width: min(1100px, calc(100% - 32px));
  max-width: 1100px;
  max-height: 90dvh;
  overflow: auto;
  padding: 22px;
  border: 2px solid var(--navy);
  background: white;
  color: var(--ink);
}

.image-viewer::backdrop {
  background: rgb(9 40 70 / 85%);
}

.image-viewer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
  margin-top: 18px;
}

.image-viewer img[hidden] {
  display: none;
}

.image-viewer p {
  font: 16px/1.6 var(--sans);
}

.viewer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font: 14px/1.5 var(--sans);
}

.viewer-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--navy);
  background: white;
  color: var(--navy);
  cursor: pointer;
}

.viewer-actions [data-close] {
  margin-left: auto;
  background: var(--red);
  border-color: var(--red);
  color: white;
}

@media (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .main-header {
    padding-block: 18px;
  }
}

@media print {
  .image-viewer,
  .africa-footer {
    display: none !important;
  }
}

/* Problem & Solution page
   These rules match problem.html and are intentionally scoped so they do not
   disturb the existing homepage, platform, demo, or documentation layouts. */

.page-problem .problem-page-hero {
  padding: 82px 0 76px;
  background: #f7f9fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-problem .problem-hero-grid,
.page-problem .brief-grid {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.page-problem .brief-marker {
  padding-top: 17px;
  color: var(--navy);
  border-top: 4px solid var(--navy);
}

.page-problem .brief-marker span {
  display: block;
  color: var(--red);
  font: 52px/1 var(--serif);
}

.page-problem .brief-marker strong {
  display: block;
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.4px;
}

.page-problem .problem-hero-copy,
.page-problem .brief-copy {
  max-width: 920px;
}

.page-problem .problem-hero-copy h1 {
  max-width: 1000px;
  font-size: clamp(43px, 5vw, 65px);
}

.page-problem .problem-hero-copy .lead {
  max-width: 860px;
  margin: 31px 0 0;
}

.page-problem .problem-hero-copy > p:not(.kicker):not(.lead):not(.problem-pivot),
.page-problem .brief-copy > p:not(.lead):not(.outlook-conclusion):not(.closing-statement):not(.closing-tagline),
.page-problem .delivery-stage > p {
  max-width: 820px;
  color: var(--muted);
}

.page-problem .problem-pivot {
  margin: 34px 0 28px;
  padding: 17px 0 17px 25px;
  color: var(--navy);
  border-left: 5px solid var(--red);
  font: 29px/1.35 var(--serif);
}

.page-problem .brief-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.page-problem .brief-copy h2 {
  max-width: 880px;
  margin-bottom: 27px;
}

.page-problem .brief-copy > .lead {
  max-width: 850px;
  margin: 0 0 25px;
}

.page-problem .outlook-section {
  background: #fff;
}

.page-problem .workforce-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 38px;
  padding: 0;
  list-style: none;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.page-problem .workforce-stats li {
  padding: 24px 21px 25px;
  border-right: 1px solid var(--line);
}

.page-problem .workforce-stats li:first-child {
  padding-left: 0;
}

.page-problem .workforce-stats li:last-child {
  border-right: 0;
}

.page-problem .workforce-stats strong {
  display: block;
  color: var(--red);
  font: 48px/1 var(--serif);
}

.page-problem .workforce-stats span {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: bold;
}

.page-problem .outlook-conclusion {
  margin: 31px 0 0;
  padding: 24px 27px;
  color: #fff;
  background: var(--navy);
  font: 25px/1.45 var(--serif);
}

.page-problem .solution-section {
  background: #f7f9fb;
}

.page-problem .delivery-stage {
  margin-top: 37px;
  padding-top: 23px;
  border-top: 4px solid var(--navy);
}

.page-problem .delivery-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 17px;
}

.page-problem .delivery-heading h3 {
  margin: 0;
  font-size: 30px;
}

.page-problem .capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 35px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-problem .capability-list li {
  position: relative;
  padding: 14px 0 14px 27px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.page-problem .capability-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

.page-problem .roadmap-stage {
  margin-top: 42px;
  padding: 24px 27px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
}

.page-problem .roadmap-stage .delivery-heading {
  margin-bottom: 9px;
}

.page-problem .roadmap-stage p {
  margin-bottom: 0;
}

.page-problem .why-section {
  color: #fff;
  background: var(--navy);
  border-bottom: 0;
}

.page-problem .why-section h2,
.page-problem .why-section .lead,
.page-problem .why-section .brief-marker {
  color: #fff;
}

.page-problem .why-section .brief-marker {
  border-color: #90a1af;
}

.page-problem .why-section .brief-copy > p:not(.lead):not(.closing-statement):not(.closing-tagline) {
  color: #d5e0e8;
}

.page-problem .closing-statement {
  margin: 37px 0 0;
  padding-top: 28px;
  color: #f2ddb3;
  border-top: 1px solid #718697;
  font: 32px/1.3 var(--serif);
}

.page-problem .closing-tagline {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.page-problem .sources-section {
  background: #f7f9fb;
}

.page-problem .sources-section h3 {
  margin-bottom: 24px;
  font-size: 36px;
}

.page-problem .source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: evidence-source;
  border-top: 4px solid var(--navy);
}

.page-problem .source-list li {
  counter-increment: evidence-source;
  border-bottom: 1px solid var(--line);
}

.page-problem .source-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 17px 0;
  color: var(--navy);
  font-weight: bold;
  text-decoration: none;
}

.page-problem .source-list a::before {
  content: counter(evidence-source, decimal-leading-zero);
  color: var(--red);
  font-family: var(--serif);
  font-weight: normal;
}

.page-problem .source-list a:hover,
.page-problem .source-list a:focus-visible {
  color: var(--red);
}

.page-problem .source-list a span {
  justify-self: end;
}

/* Veritas AI is presented only as a roadmap concept. */

.veritas-preview {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 45px;
  margin: 36px 0 28px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
}

.veritas-preview h3 {
  margin: 15px 0 0;
  color: var(--navy);
  font-size: 29px;
}

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

.veritas-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .page-problem .problem-hero-grid,
  .page-problem .brief-grid {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 42px;
  }
}

@media (max-width: 850px) {
  .page-problem .problem-hero-grid,
  .page-problem .brief-grid,
  .veritas-preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-problem .brief-marker {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .page-problem .brief-marker span {
    font-size: 38px;
  }

  .page-problem .brief-marker strong {
    margin-top: 0;
  }

  .page-problem .capability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-problem .problem-page-hero,
  .page-problem .brief-section {
    padding-block: 52px;
  }

  .page-problem .problem-pivot {
    padding-left: 18px;
    font-size: 24px;
  }

  .page-problem .workforce-stats {
    grid-template-columns: 1fr;
  }

  .page-problem .workforce-stats li,
  .page-problem .workforce-stats li:first-child,
  .page-problem .workforce-stats li:last-child {
    padding: 19px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-problem .workforce-stats li:last-child {
    border-bottom: 0;
  }

  .page-problem .workforce-stats strong {
    font-size: 42px;
  }

  .page-problem .outlook-conclusion {
    padding: 21px;
    font-size: 22px;
  }

  .page-problem .delivery-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-problem .roadmap-stage {
    padding: 21px 18px 23px;
  }

  .page-problem .closing-statement {
    font-size: 27px;
  }

  .page-problem .source-list a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    font-size: 14px;
  }

  .veritas-preview {
    padding: 22px 18px;
  }
}

@media print {
  .page-problem .problem-page-hero,
  .page-problem .outlook-section,
  .page-problem .solution-section,
  .page-problem .sources-section,
  .page-problem .why-section {
    color: var(--ink);
    background: #fff;
  }

  .page-problem .why-section h2,
  .page-problem .why-section .lead,
  .page-problem .why-section .brief-marker,
  .page-problem .why-section .brief-copy > p,
  .page-problem .closing-statement,
  .page-problem .closing-tagline {
    color: var(--ink);
  }
}

/* Engaging hover and keyboard-focus interactions */

:root {
  --lift-shadow: 0 18px 42px rgb(9 40 70 / 16%);
  --lift-shadow-soft: 0 10px 28px rgb(9 40 70 / 12%);
  --lift-speed: 220ms;
}

.feature-ledger article,
.audience-panel,
.hero-grid figure,
.tour-panel,
.need-grid article,
.evidence-ledger article,
.pricing-grid article,
.built-for-grid span,
.values-grid article,
.release-ledger > div,
.contact-options article,
.link-ledger a,
.roadmap-table > div,
.gallery-grid > a,
.veritas-preview,
.page-problem .workforce-stats li,
.page-problem .delivery-stage,
.page-problem .source-list li,
.page-problem .problem-pivot {
  position: relative;
  transition:
    transform var(--lift-speed) ease,
    box-shadow var(--lift-speed) ease,
    border-color var(--lift-speed) ease,
    background-color var(--lift-speed) ease,
    color var(--lift-speed) ease;
}

.button,
.text-link,
.primary-nav > a,
.utility-bar a {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

/* Keyboard users receive the same visual emphasis as pointer users. */

.feature-ledger article:focus-within,
.audience-panel:focus-within,
.hero-grid figure:focus-within,
.tour-panel:focus-within,
.need-grid article:focus-within,
.evidence-ledger article:focus-within,
.pricing-grid article:focus-within,
.values-grid article:focus-within,
.release-ledger > div:focus-within,
.contact-options article:focus-within,
.link-ledger a:focus-visible,
.roadmap-table > div:focus-within,
.gallery-grid > a:focus-visible,
.veritas-preview:focus-within,
.page-problem .delivery-stage:focus-within,
.page-problem .source-list li:focus-within {
  z-index: 2;
  transform: translateY(-6px);
  border-color: var(--red);
  background: #fff;
  box-shadow: var(--lift-shadow);
}

.gallery-grid > a:focus-visible {
  outline: 3px solid #c49438;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .feature-ledger article:hover,
  .audience-panel:hover,
  .hero-grid figure:hover,
  .tour-panel:hover,
  .need-grid article:hover,
  .evidence-ledger article:hover,
  .pricing-grid article:hover,
  .built-for-grid span:hover,
  .values-grid article:hover,
  .release-ledger > div:hover,
  .contact-options article:hover,
  .link-ledger a:hover,
  .roadmap-table > div:hover,
  .gallery-grid > a:hover,
  .veritas-preview:hover,
  .page-problem .workforce-stats li:hover,
  .page-problem .delivery-stage:hover,
  .page-problem .source-list li:hover,
  .page-problem .problem-pivot:hover {
    z-index: 2;
    transform: translateY(-6px);
    border-color: var(--red);
    background: #fff;
    box-shadow: var(--lift-shadow);
  }

  .feature-ledger article:hover::after,
  .roadmap-table > div:hover::after,
  .page-problem .workforce-stats li:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-top: 4px solid var(--red);
  }

  .page-problem .problem-pivot:hover {
    transform: translateX(8px);
    box-shadow: var(--lift-shadow-soft);
  }

  .page-problem .source-list li:hover a {
    color: var(--red);
  }

  .gallery-grid > a:hover img {
    transform: scale(1.025);
  }

  .gallery-grid img {
    transition: transform 320ms ease;
  }

  .button:hover {
    transform: translateY(-3px);
    box-shadow: var(--lift-shadow-soft);
  }

  .text-link:hover {
    display: inline-block;
    transform: translateX(5px);
  }

  .primary-nav > a:not(.pilot-nav):hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-ledger article,
  .audience-panel,
  .hero-grid figure,
  .tour-panel,
  .need-grid article,
  .evidence-ledger article,
  .pricing-grid article,
  .built-for-grid span,
  .values-grid article,
  .release-ledger > div,
  .contact-options article,
  .link-ledger a,
  .roadmap-table > div,
  .gallery-grid > a,
  .gallery-grid img,
  .veritas-preview,
  .page-problem .workforce-stats li,
  .page-problem .delivery-stage,
  .page-problem .source-list li,
  .page-problem .problem-pivot,
  .button,
  .text-link,
  .primary-nav > a,
  .utility-bar a {
    transition: none;
  }

  .feature-ledger article:hover,
  .feature-ledger article:focus-within,
  .audience-panel:hover,
  .audience-panel:focus-within,
  .hero-grid figure:hover,
  .hero-grid figure:focus-within,
  .tour-panel:hover,
  .tour-panel:focus-within,
  .need-grid article:hover,
  .need-grid article:focus-within,
  .evidence-ledger article:hover,
  .evidence-ledger article:focus-within,
  .pricing-grid article:hover,
  .pricing-grid article:focus-within,
  .built-for-grid span:hover,
  .values-grid article:hover,
  .values-grid article:focus-within,
  .release-ledger > div:hover,
  .release-ledger > div:focus-within,
  .contact-options article:hover,
  .contact-options article:focus-within,
  .link-ledger a:hover,
  .link-ledger a:focus-visible,
  .roadmap-table > div:hover,
  .roadmap-table > div:focus-within,
  .gallery-grid > a:hover,
  .gallery-grid > a:focus-visible,
  .veritas-preview:hover,
  .veritas-preview:focus-within,
  .page-problem .workforce-stats li:hover,
  .page-problem .delivery-stage:hover,
  .page-problem .delivery-stage:focus-within,
  .page-problem .source-list li:hover,
  .page-problem .source-list li:focus-within,
  .page-problem .problem-pivot:hover,
  .button:hover,
  .text-link:hover,
  .primary-nav > a:hover {
    transform: none;
  }
}
