@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/source-sans-3-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1f2933;
  --ivory: #f6f2ea;
  --white: #ffffff;
  --teal: #5f8f8b;
  --teal-dark: #3f7471;
  --text-muted: #4b5763;
  --text-soft: #8a93a0;
  --border: #e5ddcf;
  --border-soft: #efe9dd;
  --success-bg: #e4eeec;
  --error: #b0533c;
  --error-bg: #f7e6e2;
  --page-width: 1204px;
  --page-gutter: 32px;
  --shadow: 0 24px 60px -30px rgb(31 41 51 / 35%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
}

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

.page-shell {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0.75rem 1rem;
  clip-path: inset(50%);
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

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

.brand-link:focus-visible,
.button:focus-visible,
.segmented-control button:focus-visible,
.outcome-card button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand-link {
  display: inline-flex;
  border-radius: 4px;
}

.brand-link img {
  width: 150px;
  height: auto;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.button--small {
  min-height: 40px;
  padding: 9px 22px;
  font-size: 15px;
}

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

.button--light:hover {
  background: var(--success-bg);
  border-color: var(--success-bg);
  color: var(--ink);
}

.hero {
  padding-block: 56px 32px;
  text-align: center;
}

.hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero > p {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 21px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.logic-section {
  padding-block: 32px 72px;
}

.logic-card {
  padding: 32px 36px 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.logic-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.logic-card__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.logic-card__header p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--ivory);
}

.segmented-control button {
  min-height: 36px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.segmented-control button.is-active {
  background: var(--ink);
  color: var(--ivory);
}

.logic-card__body {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: start;
  gap: 32px;
}

.document-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px -20px rgb(31 41 51 / 35%);
}

.document-frame img {
  width: 100%;
  height: auto;
}

.document-highlight {
  position: absolute;
  border: 2px solid var(--teal-dark);
  border-radius: 5px;
  background: rgb(95 143 139 / 12%);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 80%);
  pointer-events: none;
}

.document-highlight--bol {
  top: 6.4%;
  left: 58.2%;
  width: 31.5%;
  height: 3.8%;
}

.document-highlight--pro {
  top: 41.6%;
  left: 50.8%;
  width: 41.2%;
  height: 7%;
}

.document-highlight--reference {
  top: 49.8%;
  left: 50.8%;
  width: 41.2%;
  height: 7.2%;
}

.logic-output {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instruction-card {
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--ivory);
  font-size: 15px;
  line-height: 1.45;
}

.instruction-card > span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instruction-card p {
  margin: 0;
}

.results-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.result-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}

.result-row > span:first-child {
  color: var(--text-muted);
}

.result-label {
  display: grid;
  gap: 2px;
}

.result-label small {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.result-row strong {
  font-weight: 700;
}

.result-pill {
  justify-self: end;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.result-pill.is-match {
  background: var(--success-bg);
  color: var(--teal-dark);
}

.result-pill.is-mismatch {
  background: var(--error-bg);
  color: var(--error);
}

.results-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: #fdfcf9;
  font-size: 15px;
}

.results-summary > span {
  color: var(--text-soft);
}

.validation-section {
  border-top: 1px solid #eee7da;
  border-bottom: 1px solid #eee7da;
  background: var(--white);
}

.validation-section__inner {
  padding-block: 72px 88px;
}

.section-heading {
  max-width: 640px;
}

.section-heading h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-heading > p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.5;
}

.validation-demo {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: start;
  gap: 32px;
  margin-top: 40px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.invoice-frame {
  width: 100%;
  margin: 0;
}

.invoice-document {
  aspect-ratio: 17 / 22;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 26px 22px;
  border: 1px solid #d7d2c9;
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 12px 30px -20px rgb(31 41 51 / 35%);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
}

.invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.invoice-brand,
.invoice-brand-detail,
.invoice-title span {
  display: block;
}

.invoice-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.invoice-brand-detail {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.invoice-title {
  text-align: right;
  text-transform: uppercase;
}

.invoice-title span {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.invoice-title strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.invoice-source {
  position: relative;
  border-radius: 6px;
  background: rgb(95 143 139 / 8%);
  box-shadow: inset 0 0 0 1px rgb(95 143 139 / 35%);
}

.invoice-source[data-source-marker]::after {
  content: attr(data-source-marker);
  width: 20px;
  height: 20px;
  position: absolute;
  top: -9px;
  right: -8px;
  display: grid;
  place-items: center;
  border: 2px solid #fffefa;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.invoice-party {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 18px;
  margin-top: 18px;
  padding: 11px 12px;
}

.invoice-party > div:first-of-type > span,
.invoice-party > div:first-of-type > strong,
.invoice-bill-to > span,
.invoice-bill-to > strong {
  display: block;
}

.invoice-party strong,
.invoice-bill-to strong {
  margin: 2px 0;
  font-size: 11px;
}

.invoice-label,
.invoice-metadata dt,
.invoice-shipment dt {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invoice-metadata,
.invoice-shipment {
  margin: 0;
}

.invoice-metadata > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.invoice-metadata > div:first-child {
  display: block;
  margin-bottom: 7px;
}

.invoice-metadata dt,
.invoice-metadata dd,
.invoice-shipment dt,
.invoice-shipment dd {
  margin: 0;
}

.invoice-metadata dd,
.invoice-shipment dd {
  font-weight: 700;
}

.invoice-source--dates {
  padding: 7px;
  background: rgb(95 143 139 / 10%);
}

.invoice-source--dates::after {
  top: -8px;
  right: -7px;
}

.invoice-bill-to {
  margin: 16px 0 14px;
}

.invoice-shipment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.invoice-charges {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
  font-size: 11px;
}

.invoice-charges th,
.invoice-charges td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.invoice-charges th:last-child,
.invoice-charges td:last-child {
  text-align: right;
}

.invoice-charges th {
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invoice-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-top: 10px;
  padding: 11px 12px;
  color: var(--teal-dark);
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.invoice-total strong {
  min-width: 78px;
  color: var(--ink);
  font-size: 15px;
  text-align: right;
}

.invoice-total.is-failed {
  background: var(--error-bg);
  box-shadow: inset 0 0 0 1px rgb(176 83 60 / 45%);
  color: var(--error);
}

.invoice-total.is-failed::after {
  background: var(--error);
}

.invoice-note {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 9px;
}

.validation-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.validation-checks {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.validation-check {
  min-height: 68px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  font-size: 15px;
  line-height: 1.4;
}

.validation-check:last-child {
  border-bottom: 0;
}

.validation-check > span:nth-child(2) {
  display: grid;
}

.validation-check strong {
  color: var(--ink);
  font-size: 16px;
}

.validation-check > span:nth-child(2) > span {
  color: var(--text-muted);
}

.check-icon {
  width: 26px;
  height: 26px;
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
}

.check-icon::after {
  content: attr(data-check-marker);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
}

.check-state {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}

.validation-check.is-failed .check-icon {
  background: var(--error-bg);
}

.validation-check.is-failed .check-icon::after {
  content: "!";
  inset: 0;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 700;
  transform: none;
}

.validation-check.is-failed .check-state {
  color: var(--error);
}

.outcome-card {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--ivory);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.outcome-pill {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgb(95 143 139 / 25%);
  color: #9fc4c0;
  font-size: 14px;
  font-weight: 700;
}

.outcome-card h3 {
  margin: 16px 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.outcome-card > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

.outcome-card button {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 20px;
  border: 1.5px solid rgb(246 242 234 / 40%);
  border-radius: 8px;
  background: transparent;
  color: var(--ivory);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.outcome-card.is-held {
  border-color: #ecc9bf;
  background: #fdf6f4;
  color: var(--ink);
}

.outcome-card.is-held .outcome-pill {
  background: var(--error-bg);
  color: var(--error);
}

.outcome-card.is-held button {
  border-color: var(--error);
  color: var(--error);
}

.workflow-section {
  background: var(--ivory);
}

.workflow-section__inner {
  padding-block: 88px;
}

.workflow-visual {
  min-height: 440px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.38fr) minmax(0, 1fr);
  align-items: start;
  gap: 78px;
  margin-top: 44px;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.workflow-connectors {
  width: calc(100% - 72px);
  height: calc(100% - 72px);
  position: absolute;
  inset: 36px;
  overflow: visible;
  pointer-events: none;
}

.workflow-path {
  fill: none;
  stroke: #d9cfbd;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.workflow-packet {
  opacity: 0;
  fill: var(--teal-dark);
  filter: drop-shadow(0 2px 4px rgb(31 41 51 / 20%));
}

.workflow-packet--incoming-primary {
  animation: workflow-packet-in-primary 10s linear infinite;
}

.workflow-packet--outgoing-primary {
  animation: workflow-packet-out-primary 10s linear infinite;
}

.workflow-packet--incoming-secondary {
  animation: workflow-packet-in-secondary 10s linear infinite;
}

.workflow-packet--outgoing-secondary {
  animation: workflow-packet-out-secondary 10s linear infinite;
}

.workflow-stage {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.workflow-stage__number {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.workflow-stage h3 {
  min-height: 50px;
  margin: 10px 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.workflow-stage > p {
  min-height: 45px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.workflow-endpoints {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-endpoints li {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.workflow-endpoints li > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--white);
}

.workflow-stage--ingress .workflow-endpoints li {
  flex-direction: row-reverse;
  text-align: right;
}

.workflow-endpoints--egress {
  margin-top: 51px;
}

.workflow-core {
  margin-top: 29px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 18px 36px -26px rgb(31 41 51 / 65%);
}

.workflow-core__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(246 242 234 / 16%);
}

.workflow-core__header strong {
  font-size: 18px;
  font-weight: 700;
}

.workflow-core__header > span {
  color: #9fc4c0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-core__body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.workflow-mini-document {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / 70%);
}

.workflow-mini-document__title {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-document-line {
  width: 76%;
  height: 5px;
  display: block;
  border-radius: 999px;
  background: #d7d2c9;
}

.workflow-document-line--long {
  width: 100%;
}

.workflow-document-line--short {
  width: 54%;
}

.workflow-document-line--highlight {
  height: 17px;
  border: 1px solid rgb(95 143 139 / 45%);
  border-radius: 4px;
  background: var(--success-bg);
}

.workflow-document-line--first {
  width: 88%;
  animation: workflow-document-scan 10s ease-in-out infinite;
}

.workflow-document-line--second {
  width: 70%;
  animation: workflow-document-scan 10s 0.5s ease-in-out infinite;
}

.workflow-core__signals {
  display: grid;
  gap: 10px;
}

.workflow-core__signal {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgb(246 242 234 / 14%);
  border-radius: 9px;
  background: rgb(246 242 234 / 5%);
  color: rgb(246 242 234 / 78%);
  font-size: 13px;
  font-weight: 600;
}

.workflow-core__signal i {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(95 143 139 / 28%);
}

.workflow-core__signal i::after {
  content: "";
  width: 7px;
  height: 4px;
  position: absolute;
  top: 5px;
  left: 5px;
  border-bottom: 1.5px solid #9fc4c0;
  border-left: 1.5px solid #9fc4c0;
  transform: rotate(-45deg);
}

.workflow-core__signal--logic {
  animation: workflow-signal-logic 10s ease-in-out infinite;
}

.workflow-core__signal--validation {
  animation: workflow-signal-validation 10s ease-in-out infinite;
}

.workflow-core__statuses {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.workflow-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.workflow-status--ready {
  background: rgb(95 143 139 / 25%);
  color: #9fc4c0;
  animation: workflow-ready-pulse 10s ease-in-out infinite;
}

.workflow-status--held {
  border: 1px solid rgb(236 201 191 / 35%);
  color: #e3aa9b;
}

@keyframes workflow-packet-in-primary {
  0%,
  2%,
  20%,
  100% {
    opacity: 0;
  }
  3%,
  19% {
    opacity: 1;
  }
}

@keyframes workflow-packet-out-primary {
  0%,
  25%,
  44%,
  100% {
    opacity: 0;
  }
  26%,
  43% {
    opacity: 1;
  }
}

@keyframes workflow-packet-in-secondary {
  0%,
  52%,
  70%,
  100% {
    opacity: 0;
  }
  53%,
  69% {
    opacity: 1;
  }
}

@keyframes workflow-packet-out-secondary {
  0%,
  75%,
  94%,
  100% {
    opacity: 0;
  }
  76%,
  93% {
    opacity: 1;
  }
}

@keyframes workflow-document-scan {
  0%,
  10%,
  30%,
  50%,
  70%,
  100% {
    box-shadow: none;
  }
  15%,
  25%,
  55%,
  65% {
    box-shadow: 0 0 0 3px rgb(95 143 139 / 18%);
  }
}

@keyframes workflow-signal-logic {
  0%,
  12%,
  26%,
  52%,
  66%,
  100% {
    border-color: rgb(246 242 234 / 14%);
    background: rgb(246 242 234 / 5%);
  }
  16%,
  22%,
  56%,
  62% {
    border-color: rgb(95 143 139 / 55%);
    background: rgb(95 143 139 / 18%);
  }
}

@keyframes workflow-signal-validation {
  0%,
  16%,
  30%,
  56%,
  70%,
  100% {
    border-color: rgb(246 242 234 / 14%);
    background: rgb(246 242 234 / 5%);
  }
  20%,
  26%,
  60%,
  66% {
    border-color: rgb(95 143 139 / 55%);
    background: rgb(95 143 139 / 18%);
  }
}

@keyframes workflow-ready-pulse {
  0%,
  22%,
  46%,
  62%,
  96%,
  100% {
    box-shadow: none;
  }
  28%,
  42%,
  68%,
  92% {
    box-shadow: 0 0 0 3px rgb(95 143 139 / 18%);
  }
}

.comparison-section {
  border-top: 1px solid #eee7da;
  border-bottom: 1px solid #eee7da;
  background: var(--white);
}

.comparison-section__inner {
  padding-block: 72px 88px;
}

.comparison-table-wrap {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid #d9cfbd;
  border-radius: 14px;
}

.comparison-table-wrap:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.4;
}

.comparison-table__metric-column {
  width: 20%;
}

.comparison-table__generic-column {
  width: 22%;
}

.comparison-table__fairhand-column {
  width: 22%;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-right: 1px solid #d9cfbd;
  border-bottom: 1px solid #d9cfbd;
  text-align: left;
  vertical-align: middle;
}

.comparison-table tr > :last-child {
  border-right: 0;
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  background: #fdfcf9;
  font-weight: 700;
}

.comparison-table tbody th {
  background: var(--white);
  color: var(--text-soft);
  font-weight: 600;
}

.comparison-table tbody td {
  background: var(--white);
  color: var(--text-muted);
}

.comparison-table .comparison-table__fairhand {
  background: var(--ink);
  color: var(--ivory);
}

.comparison-table .comparison-table__fairhand strong {
  color: #9fc4c0;
}

.comparison-note {
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}

.audience-section {
  padding-block: 72px 88px;
}

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

.audience-card {
  min-height: 164px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.audience-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.audience-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.final-cta {
  background: var(--ink);
  color: var(--ivory);
}

.final-cta__inner {
  min-height: 408px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 96px;
  text-align: center;
}

.final-cta h2 {
  max-width: 640px;
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

.final-cta__inner > span {
  margin-top: 16px;
  color: rgb(246 242 234 / 75%);
  font-size: 18px;
}

.final-cta .button {
  margin-top: 32px;
}

.story-hero {
  padding-block: 76px 88px;
  text-align: center;
}

.story-hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.story-hero p {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 21px;
  line-height: 1.45;
  text-wrap: balance;
}

.story-section {
  border-top: 1px solid var(--border-soft);
  background: var(--white);
}

.story-article {
  width: min(100%, 840px);
  padding-block: 80px;
}

.story-article h2 {
  margin: 50px 0 16px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.story-article h2:first-child {
  margin-top: 0;
}

.story-article p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.story-article p + p {
  margin-top: 22px;
}

.story-article .story-lead {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
}

.story-belief {
  margin: 56px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--teal);
  color: var(--ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer {
  border-top: 1px solid rgb(246 242 234 / 12%);
  background: var(--ink);
}

.site-footer__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.site-footer img {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-footer__links a {
  color: var(--ivory);
  font-size: 15px;
}

@media (max-width: 820px) {
  :root {
    --page-gutter: 22px;
  }

  .hero {
    padding-top: 44px;
  }

  .logic-card__body,
  .validation-demo {
    grid-template-columns: 1fr;
  }

  .document-frame {
    width: min(100%, 520px);
    justify-self: center;
  }

  .validation-demo {
    gap: 32px;
  }

  .invoice-frame {
    width: min(100%, 520px);
    justify-self: center;
  }

  .validation-panel {
    width: min(100%, 680px);
    justify-self: center;
  }

  .workflow-visual {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 28px;
  }

  .workflow-connectors {
    display: none;
  }

  .workflow-stage {
    width: min(100%, 680px);
    justify-self: center;
  }

  .workflow-stage--processing {
    width: min(100%, 520px);
  }

  .workflow-stage h3,
  .workflow-stage > p {
    min-height: 0;
  }

  .workflow-core {
    margin-top: 16px;
  }

  .workflow-endpoints--egress {
    margin-top: 24px;
  }

  .workflow-stage + .workflow-stage {
    padding-top: 34px;
  }

  .workflow-stage + .workflow-stage::before {
    content: "";
    height: 22px;
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid var(--teal);
  }

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

  .workflow-stage--ingress .workflow-endpoints {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .audience-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 18px;
  }

  .site-header {
    min-height: 72px;
    padding-block: 18px;
  }

  .brand-link img {
    width: 124px;
  }

  .button--small {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero {
    padding-block: 42px 24px;
  }

  .hero h1 {
    max-width: 350px;
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.02;
  }

  .hero > p {
    max-width: 340px;
    margin-top: 20px;
    font-size: 18px;
  }

  .hero__actions {
    gap: 16px;
    margin-top: 28px;
  }

  .button {
    min-height: 44px;
    padding: 11px 22px;
    font-size: 15px;
  }

  .logic-section {
    padding-block: 28px 72px;
  }

  .logic-card {
    padding: 20px 18px 22px;
    border-radius: 14px;
  }

  .logic-card__header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .logic-card__header h2 {
    font-size: 15px;
  }

  .logic-card__header p {
    font-size: 11px;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
    padding-inline: 8px;
    font-size: 12px;
  }

  .logic-card__body {
    gap: 20px;
  }

  .instruction-card {
    padding: 16px;
    font-size: 14px;
  }

  .result-row {
    grid-template-columns: minmax(82px, 0.9fr) minmax(108px, 1.1fr) auto;
    gap: 8px;
    min-height: 62px;
    padding: 12px;
    font-size: 13px;
  }

  .result-pill {
    padding: 3px 8px;
    font-size: 11px;
  }

  .results-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    font-size: 13px;
  }

  .validation-section__inner,
  .workflow-section__inner,
  .comparison-section__inner,
  .audience-section {
    padding-block: 72px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading > p {
    font-size: 16px;
  }

  .validation-demo {
    margin-top: 32px;
    gap: 20px;
    padding: 20px 18px 22px;
    border-radius: 14px;
  }

  .invoice-frame {
    max-width: none;
  }

  .invoice-document {
    padding: 20px 18px 16px;
    font-size: 9px;
  }

  .invoice-header {
    padding-bottom: 10px;
  }

  .invoice-brand {
    font-size: 12px;
  }

  .invoice-brand-detail,
  .invoice-title span {
    font-size: 7px;
  }

  .invoice-title strong {
    font-size: 18px;
  }

  .invoice-party {
    gap: 12px;
    margin-top: 14px;
    padding: 8px 9px;
  }

  .invoice-party strong,
  .invoice-bill-to strong,
  .invoice-charges {
    font-size: 9px;
  }

  .invoice-label,
  .invoice-metadata dt,
  .invoice-shipment dt,
  .invoice-charges th {
    font-size: 7px;
  }

  .invoice-source--dates {
    padding: 5px;
  }

  .invoice-bill-to {
    margin: 10px 0;
  }

  .invoice-shipment {
    gap: 8px;
    padding: 7px 0;
  }

  .invoice-charges {
    margin-top: 10px;
  }

  .invoice-charges th,
  .invoice-charges td {
    padding: 5px 4px;
  }

  .invoice-total {
    gap: 14px;
    margin-top: 7px;
    padding: 8px 9px;
  }

  .invoice-total strong {
    min-width: 70px;
    font-size: 13px;
  }

  .invoice-note {
    padding-top: 8px;
    font-size: 7px;
  }

  .validation-check {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 16px;
    font-size: 14px;
  }

  .validation-check strong {
    font-size: 15px;
  }

  .validation-check .check-state {
    grid-column: 2;
  }

  .outcome-card {
    min-height: 230px;
    padding: 26px;
  }

  .outcome-card h3 {
    font-size: 25px;
  }

  .workflow-visual {
    gap: 24px;
    margin-top: 32px;
    padding: 20px 18px 22px;
    border-radius: 14px;
  }

  .workflow-stage {
    width: 100%;
  }

  .workflow-endpoints {
    grid-template-columns: 1fr;
  }

  .workflow-core {
    padding: 16px;
  }

  .workflow-core__body {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }

  .workflow-core__signal {
    padding-inline: 10px;
    font-size: 12px;
  }

  .comparison-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .comparison-table {
    display: block;
    font-size: 14px;
  }

  .comparison-table colgroup,
  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: grid;
    gap: 14px;
  }

  .comparison-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px;
    border: 0;
  }

  .comparison-table tbody th {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border);
    background: var(--ivory);
    color: var(--ink);
    font-size: 16px;
  }

  .comparison-table tbody td {
    min-height: 92px;
    display: grid;
    align-content: start;
    gap: 6px;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
  }

  .comparison-table tbody td:nth-of-type(even) {
    border-right: 0;
  }

  .comparison-table tbody td:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .comparison-table tbody td::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .comparison-table tbody .comparison-table__fairhand::before {
    color: #9fc4c0;
  }

  .comparison-note {
    font-size: 14px;
  }

  .audience-grid {
    gap: 14px;
    margin-top: 32px;
  }

  .audience-card {
    padding: 24px;
  }

  .final-cta__inner {
    min-height: 420px;
    padding-block: 80px;
  }

  .final-cta h2 {
    max-width: 340px;
    font-size: 38px;
  }

  .final-cta__inner > span {
    font-size: 16px;
  }

  .story-hero {
    padding-block: 56px 64px;
  }

  .story-hero h1 {
    font-size: 40px;
  }

  .story-hero p {
    font-size: 18px;
  }

  .story-article {
    padding-block: 56px;
  }

  .story-article h2 {
    margin-top: 42px;
    font-size: 26px;
  }

  .story-article p {
    font-size: 17px;
    line-height: 1.7;
  }

  .story-article .story-lead {
    font-size: 19px;
  }

  .story-belief {
    margin-block: 44px;
    padding-left: 20px;
    font-size: 23px;
  }

  .site-footer__inner {
    min-height: 72px;
    padding-block: 22px;
  }

  .site-footer img {
    width: 104px;
  }

  .site-footer__links {
    gap: 16px;
  }

  .site-footer__links a {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .hero__actions {
    align-items: center;
    flex-direction: column;
  }

  .result-row {
    grid-template-columns: minmax(76px, 0.8fr) minmax(96px, 1fr) auto;
    font-size: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .workflow-packet {
    display: none;
  }

  .workflow-document-line,
  .workflow-core__signal,
  .workflow-status {
    animation: none !important;
  }
}
