/* Case study pages. Loaded after pages.css (theme tokens, resets and section spacing).
   Own components (cs-*), not used on other page types. Theme colours only: no gradients, no shadows. */

.cs-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abx-blue);
}

.cs-kicker span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--abx-line);
  vertical-align: middle;
}

.cs-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

.cs-intro {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
}

/* Hero: centred headline, then a wide product shot */
.cs-hero {
  padding: 48px 0 var(--abx-pad);
  background: var(--abx-bg);
  text-align: center;
}

.cs-hero .abx-crumbs ol {
  justify-content: center;
}

.cs-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
}

.cs-hero h1 span {
  color: var(--abx-blue);
}

.cs-hero__text {
  max-width: 700px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.7;
}

.cs-hero .abx-btns {
  justify-content: center;
  margin-top: 30px;
}

.cs-shot {
  max-width: 1040px;
  margin: 48px auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--abx-line);
  background: var(--abx-bg);
}

.cs-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fact sheet: labelled facts in one ruled strip */
.cs-sheet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  border-top: 2px solid var(--abx-navy);
  border-bottom: 1px solid var(--abx-line);
}

.cs-sheet div {
  padding: 22px 20px 22px 0;
}

.cs-sheet div + div {
  padding-left: 20px;
  border-left: 1px solid var(--abx-line);
}

.cs-sheet dt {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abx-text);
}

.cs-sheet dd {
  margin: 8px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--abx-navy);
}

/* Big figures */
.cs-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.cs-figures li {
  padding-top: 18px;
  border-top: 4px solid var(--abx-blue);
}

.cs-figures strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--abx-navy);
}

.cs-figures span {
  display: block;
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.5;
}

/* Old way vs new way, with a VS badge between */
.cs-versus {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 44px;
}

.cs-versus__vs {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--abx-blue);
  border: 6px solid var(--abx-bg);
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.cs-versus__panel {
  padding: 34px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
}

.cs-versus__panel--new {
  background: var(--abx-navy);
  border-color: var(--abx-navy);
  color: rgba(255, 255, 255, 0.8);
}

.cs-versus__panel h3 {
  font-size: 21px;
}

.cs-versus__panel--new h3 {
  color: #ffffff;
}

.cs-versus__panel ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cs-versus__panel li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  font-size: 15.5px;
  line-height: 1.55;
}

.cs-versus__panel li + li {
  border-top: 1px dashed var(--abx-line);
}

.cs-versus__panel--new li + li {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.cs-versus__panel li i {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 14px;
}

.cs-versus__panel--old li i {
  color: #9aa8bd;
}

.cs-versus__panel--new li i {
  color: var(--abx-blue);
}

/* Module map: four groups shown as app menus */
.cs-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cs-map__group {
  border-radius: 18px;
  border: 1px solid var(--abx-line);
  overflow: hidden;
}

.cs-map__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--abx-navy);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.cs-map__head i {
  color: var(--abx-blue);
}

.cs-map__group ul {
  margin: 0;
  padding: 8px 18px 12px;
  list-style: none;
}

.cs-map__group li {
  padding: 11px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--abx-navy);
}

.cs-map__group li + li {
  border-top: 1px solid var(--abx-line);
}

.cs-map__group li small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--abx-text);
}

/* Feature spotlights: text beside a small drawn screen */
.cs-spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cs-spot + .cs-spot {
  margin-top: 64px;
}

.cs-spot--flip .cs-spot__ui {
  order: -1;
}

.cs-spot__num {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--abx-blue);
}

.cs-spot h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.cs-spot p {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.7;
}

.cs-spot__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cs-spot__ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--abx-navy);
}

.cs-spot__ticks i {
  color: var(--abx-blue);
}

.cs-spot__ui {
  padding: 26px;
  border-radius: 22px;
  background: var(--abx-bg);
}

.cs-ui {
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
}

.cs-ui__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--abx-navy);
}

.cs-ui__title small {
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--abx-blue);
}

.cs-ui__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--abx-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--abx-navy);
}

.cs-ui__row:first-of-type {
  margin-top: 10px;
}

.cs-ui__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--abx-blue-light);
  color: var(--abx-blue);
  font-size: 13px;
}

.cs-ui__tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--abx-bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--abx-text);
}

.cs-ui__tag--on {
  background: var(--abx-blue);
  color: #ffffff;
}

.cs-ui__meter {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--abx-bg);
  overflow: hidden;
}

.cs-ui__meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--abx-blue);
}

.cs-ui__fill-two-thirds {
  width: 66%;
}

.cs-ui__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--abx-blue-light);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--abx-navy);
}

.cs-ui__note i {
  color: var(--abx-blue);
}

/* Plans as a rising staircase */
.cs-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-tier {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  border: 1px solid var(--abx-line);
  border-bottom: 4px solid var(--abx-blue);
}

.cs-tier:nth-child(1) { min-height: 250px; }
.cs-tier:nth-child(2) { min-height: 290px; }
.cs-tier:nth-child(3) { min-height: 340px; }
.cs-tier:nth-child(4) {
  min-height: 390px;
  background: var(--abx-navy);
  border-color: var(--abx-navy);
  border-bottom-color: var(--abx-blue);
  color: rgba(255, 255, 255, 0.8);
}

.cs-tier__name {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--abx-navy);
}

.cs-tier:nth-child(4) .cs-tier__name {
  color: #ffffff;
}

.cs-tier__for {
  margin-top: 4px;
  font-size: 14px;
}

.cs-tier ul {
  margin: 16px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--abx-line);
}

.cs-tier:nth-child(4) ul {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.cs-tier li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.45;
}

.cs-tier li i {
  margin-top: 4px;
  font-size: 11px;
  color: var(--abx-blue);
}

.cs-tiers__note {
  margin-top: 18px;
  font-size: 14.5px;
  text-align: center;
}

.cs-tiers__note a {
  font-weight: 700;
  color: var(--abx-blue);
}

/* Architecture: stacked layers from screen to cloud */
.cs-arch {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cs-arch li {
  display: grid;
  grid-template-columns: 150px 52px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
}

.cs-arch li + li {
  position: relative;
  margin-top: 30px;
}

.cs-arch li + li::before {
  content: "\f063";
  position: absolute;
  top: -27px;
  left: 50%;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 15px;
  color: var(--abx-blue);
  transform: translateX(-50%);
}

.cs-arch__layer {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abx-blue);
}

.cs-arch img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.cs-arch strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 17px;
  color: var(--abx-navy);
}

.cs-arch span.cs-arch__what {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
}

/* Our role: ruled list of linked services */
.cs-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-scope a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--abx-line);
  color: var(--abx-navy);
}

.cs-scope li:nth-child(-n + 2) a {
  border-top: 1px solid var(--abx-line);
}

.cs-scope__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--abx-blue-light);
  color: var(--abx-blue);
  font-size: 18px;
}

.cs-scope strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 16.5px;
}

.cs-scope small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--abx-text);
}

.cs-scope__arrow {
  color: var(--abx-blue);
  transition: transform 0.2s;
}

.cs-scope a:hover strong {
  color: var(--abx-blue);
}

.cs-scope a:hover .cs-scope__arrow {
  transform: translateX(4px);
}

/* Goals: what the client needed, and what we built for it */
.cs-goals {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--abx-navy);
}

.cs-goals li {
  display: grid;
  grid-template-columns: 56px 1fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--abx-line);
}

.cs-goals__num {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--abx-blue);
}

.cs-goals h3 {
  font-size: 19px;
  line-height: 1.35;
}

.cs-goals p {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.65;
}

.cs-goals p i {
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--abx-blue);
}

/* Sitemap: home at the top, pages branching below */
.cs-sitemap {
  text-align: center;
}

.cs-sitemap__node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--abx-navy);
}

.cs-sitemap__node i {
  color: var(--abx-blue);
}

.cs-sitemap__node--root {
  background: var(--abx-navy);
  border-color: var(--abx-navy);
  color: #ffffff;
}

.cs-sitemap__branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.cs-sitemap__branches::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed var(--abx-blue);
}

.cs-sitemap__branches > li {
  position: relative;
}

.cs-sitemap__branches > li::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  height: 22px;
  border-left: 2px dashed var(--abx-blue);
}

.cs-sitemap__root-line {
  display: block;
  width: 0;
  height: 22px;
  margin: 0 auto;
  border-left: 2px dashed var(--abx-blue);
}

.cs-sitemap__branches .cs-sitemap__node {
  display: flex;
  justify-content: center;
}

.cs-sitemap__sub {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cs-sitemap__sub li {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--abx-blue-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--abx-navy);
}

.cs-sitemap__note {
  margin-top: 6px;
  font-size: 13.5px;
}

/* Setup: three steps joined by arrows */
.cs-setup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-setup li {
  position: relative;
  padding: 30px 26px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
  text-align: center;
}

.cs-setup li:not(:last-child)::after {
  content: "\f061";
  position: absolute;
  top: 50%;
  right: -38px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  color: var(--abx-blue);
  transform: translateY(-50%);
}

.cs-setup__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--abx-navy);
  color: var(--abx-blue);
  font-size: 26px;
}

.cs-setup__step {
  display: block;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abx-blue);
}

.cs-setup h3 {
  margin-top: 6px;
  font-size: 19px;
}

.cs-setup p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* Policies: what keeps the product safe and fair to use */
.cs-policy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 20px;
  border: 1px solid var(--abx-line);
  overflow: hidden;
  background: #ffffff;
}

.cs-policy li {
  padding: 28px 24px;
}

.cs-policy li + li {
  border-left: 1px solid var(--abx-line);
}

.cs-policy i {
  font-size: 24px;
  color: var(--abx-blue);
}

.cs-policy h3 {
  margin-top: 14px;
  font-size: 17px;
}

.cs-policy p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* Icon in place of a logo in the architecture layers */
.cs-arch__fa {
  width: 44px;
  font-size: 34px;
  text-align: center;
  color: var(--abx-blue);
}

/* Closing banner: navy stripe on the left */
.cs-close {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--abx-line);
  border-left: 10px solid var(--abx-navy);
}

.cs-close h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.cs-close p {
  margin-top: 10px;
  font-size: 16.5px;
}

@media (max-width: 1199.98px) {
  .cs-sheet {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-sheet div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-sheet div:nth-child(n + 4) {
    border-top: 1px solid var(--abx-line);
  }

  .cs-map {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .cs-figures {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .cs-versus {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cs-spot,
  .cs-close {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cs-spot--flip .cs-spot__ui {
    order: 0;
  }

  .cs-tiers {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  .cs-tier,
  .cs-tier:nth-child(n) {
    min-height: 0;
    border-radius: 20px;
  }

  .cs-scope {
    grid-template-columns: 1fr;
  }

  .cs-setup {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 520px;
    margin: 0 auto;
  }

  .cs-setup li:not(:last-child)::after {
    content: "\f063";
    top: auto;
    bottom: -33px;
    right: 50%;
    transform: translateX(50%);
  }

  .cs-policy {
    grid-template-columns: 1fr 1fr;
  }

  .cs-policy li:nth-child(3) {
    border-left: 0;
  }

  .cs-policy li:nth-child(n + 3) {
    border-top: 1px solid var(--abx-line);
  }

  .cs-goals li {
    grid-template-columns: 44px 1fr;
    gap: 10px 18px;
  }

  .cs-goals p {
    grid-column: 2;
  }

  .cs-sitemap__branches {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .cs-sitemap__branches::before,
  .cs-sitemap__branches > li::before {
    display: none;
  }

  .cs-scope li:nth-child(2) a {
    border-top: 0;
  }
}

@media (max-width: 767.98px) {
  .cs-sheet {
    grid-template-columns: 1fr 1fr;
  }

  .cs-sheet div:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-sheet div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--abx-line);
  }

  .cs-sheet div:nth-child(n + 3) {
    border-top: 1px solid var(--abx-line);
  }

  .cs-map,
  .cs-tiers {
    grid-template-columns: 1fr;
  }

  .cs-arch li {
    grid-template-columns: 44px 1fr;
  }

  .cs-arch__layer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .cs-hero {
    padding-top: 36px;
  }

  .cs-hero__text {
    font-size: 17px;
  }

  .cs-hero .abx-btns {
    align-items: center;
  }

  .cs-shot {
    margin-top: 36px;
    border-radius: 16px;
  }

  .cs-sheet {
    grid-template-columns: 1fr;
  }

  .cs-sheet div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .cs-sheet div:nth-child(n + 2) {
    border-top: 1px solid var(--abx-line);
  }

  .cs-figures {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .cs-versus__panel {
    padding: 26px 22px;
  }

  .cs-spot__ui {
    padding: 16px;
  }

  .cs-arch li {
    padding: 18px;
  }

  .cs-close {
    padding: 32px 24px;
    border-left-width: 6px;
  }
}
