/* Service selection, its reading panel and the illustrated example flow. */
.solutions-section {
  --service-accent: #b6b9ff;
  --service-tint: #29274f;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 52px 64px;
  background: var(--bg);
}
.solutions-wave {
  opacity: 0.14;
  inset: -10% -15%;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 65%, transparent);
}
.solutions-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 112px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.solutions-section .section-intro {
  align-items: center;
  margin-bottom: 26px;
}
.solutions-section .section-intro h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 48px);
}
.solutions-section .section-intro > p {
  max-width: 520px;
}
.solutions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.service-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.service-tab:nth-child(1) {
  --service-tilt: -1.4deg;
  --service-shift: -4px;
}
.service-tab:nth-child(2) {
  --service-tilt: 1.3deg;
  --service-shift: 6px;
}
.service-tab:nth-child(3) {
  --service-tilt: -1deg;
  --service-shift: -3px;
}
.service-tab:nth-child(4) {
  --service-tilt: 1.5deg;
  --service-shift: 4px;
}
.service-tab:nth-child(2),
.service-tone-1 {
  --service-accent: #ffadc9;
  --service-tint: #3d233c;
}
.service-tab:nth-child(3),
.service-tone-2 {
  --service-accent: #ffd0a8;
  --service-tint: #3e2c35;
}
.service-tab:nth-child(4),
.service-tone-3 {
  --service-accent: #a7d2ff;
  --service-tint: #22354c;
}
.service-tab {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 100px;
  padding: 17px 16px;
  overflow: hidden;
  text-align: left;
  rotate: var(--service-tilt);
  border: 1px solid #77719744;
  border-radius: 18px 32px 18px 32px;
  background: #111125;
  transition: transform 180ms var(--ease), rotate 180ms var(--ease),
    translate 180ms var(--ease), border-color 180ms ease, background-color 180ms ease;
}
.service-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23%;
  bottom: 23%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--service-accent);
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}
.service-tab:hover,
.service-tab:focus-visible {
  rotate: 0deg;
  translate: 0 0;
  transform: translateY(-2px);
  border-color: var(--service-accent);
}
.service-tab[aria-selected="true"] {
  rotate: 0deg;
  translate: 0 0;
  border-color: var(--service-accent);
  background: linear-gradient(110deg, var(--service-tint), #14132c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--service-accent) 9%, transparent);
}
.service-tab[aria-selected="true"]::before {
  opacity: 1;
  transform: scaleY(1);
}
.service-number,
.scenario-step {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 25%, transparent);
  border-radius: 11px 20px 11px 20px;
  background: var(--service-tint);
  color: var(--service-accent);
}
.service-number > .icon {
  width: 22px;
  height: 22px;
}
.service-tab strong {
  display: block;
  color: #f5f0ff;
  font: 700 16px/1.4 var(--font-display);
  letter-spacing: -0.02em;
}
.service-tab-arrow {
  color: var(--service-accent);
  opacity: 0.45;
  transition: opacity 180ms ease, transform 180ms ease;
}
.service-tab-arrow .icon {
  width: 16px;
  height: 16px;
}
.service-tab[aria-selected="true"] .service-tab-arrow,
.service-tab:hover .service-tab-arrow {
  opacity: 1;
  transform: translateX(2px);
}
.service-label-short {
  display: none;
}
.service-panels {
  min-width: 0;
}
.service-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 35%, transparent);
  border-radius: 26px 48px 26px 48px;
  background: radial-gradient(ellipse at 100% 0%, var(--service-tint), transparent 70%), #111124;
}
.service-panel::before {
  content: "";
  position: absolute;
  inset: 0 -20% 0 10%;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/brand/flow-lines.svg") center/cover;
  opacity: 0.13;
}
.service-panel:not([hidden]) {
  animation: service-arrive 180ms ease-out;
}
.service-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--service-accent);
  font-size: 14px;
  line-height: 1.5;
}
.service-kicker .icon {
  width: 18px;
  height: 18px;
}
.service-narrative h3 {
  margin: 0 0 16px;
  font-size: clamp(27px, 2.3vw, 34px);
  line-height: 1.23;
}
.service-body {
  margin: 0;
  color: #ded9ec;
  font-size: 16px;
  line-height: 1.7;
}
.service-scope {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #c9bde333;
  min-width: 0;
}
.service-scope > summary,
.service-example > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  color: var(--service-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.service-scope > summary::-webkit-details-marker,
.service-example > summary::-webkit-details-marker {
  display: none;
}
.service-scope > summary > .icon,
.service-example > summary > .icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}
.service-scope[open] > summary > .icon,
.service-example[open] > summary > .icon {
  transform: rotate(180deg);
}
.service-scope ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}
.service-scope li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #eee8f7;
}
.service-scope li .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--service-accent);
}
.service-example {
  min-width: 0;
  align-self: center;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 28%, transparent);
  border-radius: 20px 34px 20px 34px;
  background: #09091ddd;
  box-shadow: 0 16px 34px #05051233;
}
.example-label-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.example-label-text .icon {
  width: 17px;
  height: 17px;
}
.service-example h4 {
  margin: 14px 0 20px;
  font-size: 21px;
  line-height: 1.35;
}
.service-example ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-example li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  position: relative;
  padding-bottom: 14px;
}
.service-example li:last-child {
  padding-bottom: 0;
}
.service-example li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -4px;
  left: 17px;
  width: 1px;
  background: linear-gradient(var(--service-accent), #8b7ba644);
}
.scenario-step {
  position: relative;
  width: 36px;
  height: 36px;
  margin-top: 6px;
  border-radius: 10px 17px 10px 17px;
}
.scenario-step .icon {
  width: 18px;
  height: 18px;
}
.service-example li > div {
  padding: 10px 12px;
  border: 1px solid #b3a4d322;
  border-radius: 10px 20px 10px 20px;
  background: #26203c66;
}
.service-example strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.service-example li p {
  margin: 3px 0 0;
  color: #d3cbe2;
  font-size: 16px;
  line-height: 1.5;
}
@keyframes service-arrive {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 1200px) {
  .solutions-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .service-tabs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-tab {
    min-height: 104px;
    translate: var(--service-shift) 0;
  }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .service-tab {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px;
  }
  .service-tab > span:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .service-tab-arrow {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 900px) {
  .solutions-section {
    padding-block: 24px;
  }
  .solutions-section .section-intro {
    margin-bottom: 16px;
  }
  .solutions-section .section-intro h2 {
    font-size: 28px;
    line-height: 1.25;
  }
  .solutions-section .section-intro > p,
  .service-label-full,
  .service-tab-arrow,
  .service-kicker {
    display: none;
  }
  .service-label-short {
    display: block;
  }
  .solutions-layout {
    gap: 14px;
  }
  .service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .service-tab {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    min-height: 62px;
    padding: 12px;
    border-radius: 13px 23px 13px 23px;
    rotate: calc(var(--service-tilt) * 0.3);
  }
  .service-tab strong {
    font-size: 14px;
  }
  .service-number {
    width: 24px;
    height: 24px;
    border-radius: 7px 12px 7px 12px;
  }
  .service-number > .icon {
    width: 16px;
    height: 16px;
  }
  .service-panel {
    display: block;
    padding: 16px;
    border-radius: 20px 32px 20px 32px;
  }
  .service-narrative h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .service-body {
    line-height: 1.6;
  }
  .service-scope {
    margin-top: 14px;
    padding-top: 12px;
  }
  .service-example {
    margin-top: 12px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid #c9bde333;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .service-example h4 {
    font-size: 20px;
    margin-block: 14px;
  }
}
@media (min-width: 600px) and (max-width: 900px) {
  .service-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .service-tab {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .service-number {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-tab,
  .service-tab::before,
  .service-tab-arrow {
    transition: none;
    transform: none;
  }
  .service-tab {
    rotate: 0deg;
    translate: 0 0;
  }
  .service-panel:not([hidden]) {
    animation: none;
  }
}
