.cases-page {
  --case-accent: #b89af4;
  --case-panel: #151418;
  --case-line: #ffffff14;
  background: var(--bg);
  padding-top: 1px;
}
.cases-wrap {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
.cases-page h1,
.cases-page h2,
.cases-page h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.5px;
}
.cases-page em {
  font-style: normal;
  color: var(--case-accent);
}
.cases-kicker {
  color: var(--case-accent);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.cases-hero {
  padding-top: 165px;
  padding-bottom: 80px;
}
.cases-hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  max-width: 950px;
  margin: 25px 0;
}
.cases-lead {
  max-width: 610px;
  color: var(--text-mid);
  font-size: 18px;
  line-height: 1.65;
}
.audience-section {
  padding-bottom: 90px;
}
.audience-heading {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: end;
  border-top: 1px solid var(--case-line);
  padding-top: 30px;
  margin-bottom: 28px;
}
.audience-heading > span,
.results-heading p {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #91899a;
}
.audience-heading h2 {
  font-size: 36px;
}
.audience-heading p {
  font-size: 13px;
  color: var(--text-muted);
}
.audience-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.audience-card {
  min-height: 250px;
  border: 1px solid var(--case-line);
  background: var(--case-panel);
  border-radius: 16px;
  padding: 26px;
  text-align: left;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto auto;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
  font: inherit;
}
.audience-card:hover {
  border-color: #8065a4;
  transform: translateY(-3px);
}
.audience-card[aria-checked="true"] {
  border-color: var(--case-accent);
  background: linear-gradient(145deg, #241b30, #151418);
  box-shadow: 0 0 0 1px #b89af426;
}
.audience-number {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #82788d;
}
.audience-icon {
  font-size: 40px;
  color: var(--case-accent);
  line-height: 1;
}
.audience-card strong {
  grid-column: 1/-1;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  align-self: end;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.audience-card small {
  grid-column: 1/-1;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.case-results {
  padding: 85px 0;
  background: #111014;
  border-block: 1px solid var(--case-line);
  scroll-margin-top: 80px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 38px;
}
.results-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-top: 14px;
}
.results-heading > span {
  font-size: 12px;
  color: var(--text-muted);
}
.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.use-case {
  background: var(--case-panel);
  border: 1px solid var(--case-line);
  border-radius: 18px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.use-case:hover {
  border-color: #8065a4;
  transform: translateY(-3px);
}
.case-card-link {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  color: var(--text);
  text-decoration: none;
}
.case-topline {
  display: flex;
  align-items: center;
  gap: 15px;
}
.case-topline .case-eyebrow {
  flex: 1;
}
.case-product {
  max-width: 175px;
  padding: 7px 10px;
  border: 1px solid #59436b;
  border-radius: 999px;
  color: #b9a9c5;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
}
.case-card-link .case-aside {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--case-line);
}
.case-eyebrow {
  color: var(--case-accent);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.case-summary {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 25px;
  align-items: start;
  padding: 30px;
  border-bottom: 1px solid var(--case-line);
}
.case-num {
  color: var(--case-accent);
  font-size: 11px;
  letter-spacing: 1.5px;
}
.case-copy h3 {
  font-size: 30px;
  margin: 0 0 13px;
}
.case-copy p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.65;
  max-width: 680px;
}
.case-process-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: auto;
}
.case-process-preview::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, #777080, #9e72df 55%, #5fbd84);
}
.case-process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #928a98;
  font-size: 10px;
  line-height: 1.35;
}
.case-process-step i {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #6c5c78;
  border-radius: 50%;
  background: #19171d;
  color: #c3a2f4;
  font-size: 9px;
  font-style: normal;
}
.case-process-step:last-child i {
  border-color: #5fbd84;
  color: #72d299;
}
.case-output {
  align-self: center;
  min-width: 190px;
  padding: 16px 18px;
  background: #201a27;
  border: 1px solid #513c66;
  border-radius: 10px;
}
.case-card-link .case-output {
  min-width: 0;
  flex: 1;
  padding: 0 0 0 17px;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}
.case-card-link .case-output::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63bf88;
  box-shadow: 0 0 14px #63bf8866;
}
.case-output span {
  display: block;
  color: #968ba2;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.case-output strong {
  font-size: 13px;
  font-weight: 500;
  color: #d3c2ee;
}
.case-process {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 330px;
}
.process-legend {
  padding: 28px;
  border-right: 1px solid var(--case-line);
}
.process-legend > span {
  display: block;
  font-size: 9px;
  color: #817987;
  letter-spacing: 1.4px;
  margin-bottom: 18px;
}
.process-legend p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #aaa2b1;
  margin-bottom: 12px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
  flex: 0 0 auto;
}
.legend-user {
  background: #8b8292;
}
.legend-system {
  background: #9f76ea;
}
.legend-result {
  background: #5cbf85;
}
.process-tip {
  display: block;
  margin-top: 30px !important;
  color: #746c7b !important;
  line-height: 1.5;
}
.bpmn-shell {
  position: relative;
  min-width: 0;
  background: radial-gradient(ellipse at center, #40235327, transparent 65%);
  overflow: hidden;
}
.bpmn-canvas {
  width: 100%;
  height: 330px;
  overflow: hidden;
}
.bpmn-loading,
.bpmn-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #887e91;
  font-size: 12px;
}
.bpmn-shell.is-ready .bpmn-loading {
  display: none;
}
.bpmn-shell.is-error .bpmn-loading {
  display: none;
}
.bpmn-error {
  display: none;
  color: #d29b9b;
}
.bpmn-shell.is-error .bpmn-error {
  display: grid;
}
.bpmn-canvas svg {
  background: transparent !important;
}
.bpmn-canvas text,
.bpmn-canvas tspan {
  font-family: "Jost", sans-serif !important;
  fill: #d8d2df !important;
  font-size: 12px !important;
}
.cases-empty {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 60px;
  padding-block: 75px;
  border-top: 1px solid var(--case-line);
}
.empty-graphic {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #492d662d, transparent 65%);
}
.empty-graphic span {
  font-size: 65px;
  color: #9672c4;
}
.empty-graphic i {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid #584768;
  border-radius: 6px;
}
.empty-graphic i:nth-of-type(1) {
  left: 20px;
  top: 25px;
  transform: rotate(-12deg);
}
.empty-graphic i:nth-of-type(2) {
  right: 35px;
  top: 18px;
  transform: rotate(9deg);
}
.empty-graphic i:nth-of-type(3) {
  right: 15px;
  bottom: 20px;
  transform: rotate(-5deg);
}
.cases-empty h2,
.cases-note h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.cases-empty p,
.cases-note p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}
.cases-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 45px;
  padding-block: 55px;
  border-top: 1px solid var(--case-line);
}
.cases-note > div {
  max-width: 700px;
}
.cases-cta {
  position: relative;
  margin-top: 25px;
  margin-bottom: 75px;
  padding: 55px;
  border: 1px solid #503668;
  border-radius: 20px;
  background: linear-gradient(120deg, #24182f, #151217);
  overflow: hidden;
}
.cases-cta:after {
  content: "§";
  position: absolute;
  right: 60px;
  top: -65px;
  font-size: 290px;
  color: #9b68d512;
  line-height: 1;
}
.cases-cta > p {
  font-size: 11px;
  color: var(--case-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.cases-cta h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  margin: 20px 0 28px;
  position: relative;
  z-index: 1;
}
.cases-cta .btn-primary {
  position: relative;
  z-index: 2;
}
.audience-card:focus-visible,
.cases-page a:focus-visible {
  outline: 2px solid #c5a6ff;
  outline-offset: 5px;
}
@media (max-width: 900px) {
  .cases-wrap {
    width: calc(100% - 48px);
  }
  .audience-heading {
    grid-template-columns: 120px 1fr;
  }
  .audience-heading p {
    display: none;
  }
  .audience-card {
    padding: 22px;
  }
  .audience-card strong {
    font-size: 18px;
  }
  .case-summary {
    grid-template-columns: 55px 1fr;
  }
  .case-list {
    grid-template-columns: 1fr;
  }
  .case-card-link {
    min-height: 360px;
  }
  .case-output {
    grid-column: 2;
    margin-top: 4px;
  }
  .case-process {
    grid-template-columns: 1fr;
  }
  .process-legend {
    border-right: 0;
    border-bottom: 1px solid var(--case-line);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 28px;
  }
  .process-legend > span,
  .process-tip {
    width: 100%;
    margin: 0 !important;
  }
  .process-legend p {
    margin: 0;
  }
  .bpmn-canvas {
    height: 300px;
  }
}
@media (max-width: 650px) {
  .cases-wrap {
    width: calc(100% - 40px);
  }
  .cases-hero {
    padding-top: 125px;
    padding-bottom: 55px;
  }
  .cases-hero h1 {
    font-size: 42px;
  }
  .cases-lead {
    font-size: 16px;
  }
  .audience-section {
    padding-bottom: 60px;
  }
  .audience-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .audience-heading > span {
    order: 2;
  }
  .audience-options {
    grid-template-columns: 1fr;
  }
  .audience-card {
    min-height: 180px;
  }
  .case-results {
    padding-block: 55px;
  }
  .results-heading {
    display: block;
  }
  .results-heading > span {
    display: block;
    margin-top: 12px;
  }
  .case-summary {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .case-card-link {
    min-height: 0;
    padding: 24px;
  }
  .case-topline {
    flex-wrap: wrap;
  }
  .case-topline .case-eyebrow {
    min-width: calc(100% - 50px);
  }
  .case-product {
    margin-left: 41px;
  }
  .case-card-link .case-aside {
    grid-column: 1;
    align-items: stretch;
    flex-direction: column;
  }
  .case-num {
    margin-bottom: 0;
  }
  .case-copy h3 {
    font-size: 26px;
  }
  .case-output {
    width: 100%;
  }
  .case-process-preview {
    gap: 8px;
  }
  .case-process-step {
    font-size: 9px;
  }
  .process-legend {
    gap: 16px;
    padding: 18px 22px;
  }
  .process-legend p {
    font-size: 10px;
  }
  .bpmn-canvas {
    height: 290px;
  }
  .cases-empty {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 55px;
  }
  .empty-graphic {
    height: 110px;
  }
  .cases-note {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .cases-cta {
    padding: 30px;
    margin-bottom: 50px;
  }
  .cases-cta:after {
    right: -45px;
    top: 40px;
    font-size: 210px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .audience-card {
    transition: none;
  }
}
.cases-page [hidden] {
  display: none !important;
}
.bpmn-canvas svg rect,
.bpmn-canvas svg ellipse {
  fill: #242128 !important;
  stroke: #8d7aa0 !important;
}
.bpmn-canvas svg foreignObject div {
  color: #eeeaf2 !important;
  font-family: "Jost", sans-serif !important;
  font-size: 12px !important;
}
.case-aside {
  align-self: center;
}
.case-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #674a83;
  border-radius: 8px;
  color: #c6a9f3;
  text-decoration: none;
  font-size: 11px;
}
.use-case:hover .case-detail {
  border-color: #a979e3;
  color: #eee;
}
.case-aside .case-output {
  align-self: auto;
}
.audience-reset {
  border: 0;
  border-bottom: 1px solid #6e538b;
  padding: 6px 0;
  background: none;
  color: var(--case-accent);
  font: 500 12px "Jost", sans-serif;
  cursor: pointer;
}
.audience-reset:focus-visible,
.product-filter-options button:focus-visible {
  outline: 2px solid #c0a1ff;
  outline-offset: 4px;
}
.product-filter {
  padding-bottom: 70px;
}
.product-filter > div:first-child {
  display: flex;
  align-items: end;
  gap: 34px;
  border-top: 1px solid var(--case-line);
  padding-top: 25px;
  margin-bottom: 22px;
}
.product-filter > div:first-child span {
  color: #91899a;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.product-filter h2 {
  font-size: 28px;
}
.product-filter-options {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.product-filter-options button {
  border: 1px solid var(--case-line);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--case-panel);
  color: var(--text-muted);
  font: 500 12px "Jost", sans-serif;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.product-filter-options button:hover {
  color: var(--text);
  border-color: #70568f;
}
.product-filter-options button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--case-accent);
  background: #8b5cf619;
}
@media (max-width: 720px) {
  .audience-heading {
    grid-template-columns: 1fr auto;
  }
  .audience-heading > span {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }
  .product-filter > div:first-child {
    display: block;
  }
  .product-filter h2 {
    margin-top: 12px;
  }
  .product-filter-options {
    display: grid;
    grid-template-columns: 1fr;
  }
  .product-filter-options button {
    text-align: left;
  }
}
