:root {
  --bg: #f7faf8;
  --panel: #ffffff;
  --ink: #14201d;
  --muted: #5e6b66;
  --line: #dfe8e3;
  --brand: #0b6f63;
  --brand-strong: #084b45;
  --accent: #a66a18;
  --soft: #edf4f1;
  --shadow: 0 18px 42px rgba(20, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 72px) 56px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.95;
  margin: 8px 0 20px;
  max-width: 820px;
}

.lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  max-width: 780px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button.secondary {
  background: var(--panel);
}

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

.hero-panel div {
  background: var(--panel);
  padding: 24px;
}

.metric {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
  color: var(--brand-strong);
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 56px clamp(20px, 5vw, 72px);
}

.section.muted {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 72px) 12px;
  padding: 28px;
  border: 2px solid var(--brand);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.spotlight h2 {
  color: var(--brand-strong);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 0;
}

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

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

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

.card,
.empty-state {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(20, 32, 29, 0.05);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p,
.cta p,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--brand);
  font-weight: 800;
}

.status {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.status-row .status {
  margin-top: 0;
}

.status.alt {
  background: #fff4e0;
  color: #73460f;
}

.status.plain {
  background: #f5f7f6;
  color: var(--muted);
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: var(--brand-strong);
  color: #fff;
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .cta,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    display: flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .spotlight {
    grid-template-columns: 1fr;
  }
}

/* Product and solution detail pages */
.page-title {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  margin: 6px 0 16px;
  max-width: 820px;
}

.section .eyebrow a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.section .eyebrow a:hover {
  border-bottom-color: var(--accent);
}

.card h3 a:hover,
.text-link:hover {
  text-decoration: underline;
}

.taxonomy {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 24px;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: #f5f7f6;
}

.taxonomy > div {
  margin: 0;
}

.taxonomy dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 4px;
}

.taxonomy dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

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

.prose {
  max-width: 760px;
  margin-top: 8px;
}

.prose p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.note {
  max-width: 700px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.mermaid-card {
  max-width: 980px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(20, 32, 29, 0.05);
  overflow-x: auto;
}

.mermaid-card pre {
  margin: 0;
}

.section-heading .lead {
  margin-top: 12px;
  font-size: 17px;
}

/* Business case pages */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 24px;
  align-items: start;
}

.calc-inputs {
  display: grid;
  gap: 10px;
}

.calc-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.calc-label {
  font-size: 14px;
  line-height: 1.4;
}

.calc-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calc-control input {
  width: 96px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.calc-unit {
  min-width: 84px;
  color: var(--muted);
  font-size: 12px;
}

.calc-outputs {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.calc-out {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.calc-out-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.calc-out-value {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
  color: var(--brand-strong);
}

.calc-out-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.plain-list {
  max-width: 780px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.plain-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.adopt {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 900px;
}

.adopt-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  background: var(--panel);
}

.adopt-k {
  font-weight: 800;
  font-size: 14px;
}

.adopt-v {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .calc-outputs { position: static; }
  .calc-field { grid-template-columns: 1fr; }
  .adopt-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Measured evidence table on business case pages */
.measured-wrap { overflow-x: auto; max-width: 900px; }

table.measured {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

table.measured th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  white-space: nowrap;
}

table.measured td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

table.measured tr:last-child td { border-bottom: none; }

table.measured .num-cell {
  font-weight: 800;
  color: var(--brand-strong);
  white-space: nowrap;
}

table.measured .muted-cell { color: var(--muted); font-size: 13px; }
