/* Ecommerce Suite page layouts. Shared typography, buttons and colors are in adrecom-brand.css. */
body:has(.suite-page) > .header {
  position: sticky;
  background: #fff;
}

body:has(.suite-page) .footer {
  margin-top: 0;
}

.suite-page {
  --suite-space: clamp(54px, 6vw, 108px);
  --suite-gap: clamp(14px, 1.65vw, 28px);
  --suite-cell: clamp(16px, 2vw, 30px);
  color: var(--adrecom-navy);
  font-family: var(--adrecom-font);
}

.suite-page [id] {
  scroll-margin-top: 140px;
}

.suite-hero {
  background: linear-gradient(180deg, #f3f4f3, #fff 82%);
}

.suite-breadcrumb {
  padding-top: 22px;
}

.suite-breadcrumb .breadcrumb {
  margin: 0;
  overflow-wrap: anywhere;
}

.suite-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-block: clamp(18px, 1.9vw, 32px);
}

.suite-page .adrecom-heading {
  margin: 0;
}

.suite-page .adrecom-copy {
  margin: 0;
}

.suite-hero-copy > .adrecom-copy,
.suite-section-head > .adrecom-copy,
.suite-final .adrecom-heading + .adrecom-copy {
  margin-top: 12px;
}

.suite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 2.6vw, 42px);
}

.suite-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: clamp(18px, 2vw, 30px);
  color: var(--adrecom-copy);
  font-size: .9375rem;
}

.suite-proof > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.suite-proof-icon {
  width: 34px;
  height: 34px;
  padding: 6px;
}

.suite-hero-diagram {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 8px clamp(8px, 1.75vw, 26px);
  text-align: center;
}

.suite-hero-diagram::before,
.suite-hero-diagram::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.suite-hero-diagram::before {
  inset: 21% 0 -7%;
  background: url("../img/platform-hero-colored-shapes.svg?v=2") center / 100% 100% no-repeat;
  opacity: .8;
  transform: scaleX(-1);
}

.suite-hero-diagram::after {
  inset: 20% 0 -4%;
  background:
    url("../img/commerce-figure-wave.svg") top left / min(48%, 310px) auto no-repeat,
    url("../img/commerce-figure-cube.svg") bottom right / min(43%, 275px) auto no-repeat;
  opacity: .55;
}

.suite-hero-diagram > .adrecom-eyebrow {
  margin-bottom: 6px;
}

.suite-hero-diagram > h2 {
  font-size: clamp(22px, 2.1vw, 34px);
}

.suite-hero-diagram > .adrecom-copy {
  margin-top: 8px;
}

.suite-hero-flow {
  --flow-gap: clamp(6px, .75vw, 12px);
  --flow-input-width: min(100%, 362px);
  --flow-output-width: min(100%, 600px);
  display: grid;
  align-items: center;
  justify-items: center;
  margin: 12px 0 0;
}

.suite-flow-items {
  display: grid;
  gap: var(--flow-gap);
}

.suite-flow-inputs {
  width: var(--flow-input-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.suite-flow-outputs {
  width: var(--flow-output-width);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.suite-flow-item {
  display: grid;
  min-width: 0;
  grid-template-rows: 42px auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 11px 6px;
  border: 1px solid var(--adrecom-line);
  background: #fff;
  color: var(--adrecom-navy);
  font-size: clamp(.75rem, 1.1vw, 1rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.suite-flow-art {
  display: block;
  width: auto;
  height: 100%;
  max-width: min(100%, 90px);
  object-fit: contain;
}

.suite-flow-item > span:last-child {
  text-wrap: balance;
}

.suite-flow-core {
  display: flex;
  width: min(100%, 340px);
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  padding: 8px 10px;
  border: 1px solid rgb(101 81 181 / .36);
  background: linear-gradient(105deg, #fff, #f1efff);
}

.suite-flow-console {
  width: clamp(48px, 5.5vw, 74px);
  height: 30px;
  object-fit: contain;
  flex: none;
}

.suite-flow-core-label {
  color: var(--adrecom-navy);
  font-size: clamp(.875rem, 1.2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.2;
}

.suite-flow-branch {
  --flow-inset: calc((100% - 2 * var(--flow-gap)) / 6);
  position: relative;
  display: grid;
  width: var(--flow-output-width);
  height: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: var(--flow-gap);
  color: var(--adrecom-violet-dark);
}

.suite-flow-branch--inputs {
  --flow-inset: calc((100% - var(--flow-gap)) / 4);
  width: var(--flow-input-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.suite-flow-branch::before {
  position: absolute;
  inset: 0 var(--flow-inset) auto;
  height: 1px;
  background: currentColor;
  content: "";
}

.suite-flow-branch--inputs::before {
  inset-block: auto 0;
}

.suite-flow-branch > span {
  width: 1px;
  height: 100%;
  background: currentColor;
}

.suite-flow-connector {
  width: 22px;
  height: 16px;
  color: var(--adrecom-violet-dark);
}

.suite-flow-connector svg {
  display: block;
  width: 100%;
  height: 100%;
}

.suite-advantages {
  display: grid;
  gap: var(--suite-gap);
}

.suite-section {
  padding-block: var(--suite-space);
}

.suite-section-head {
  margin-bottom: clamp(24px, 3.1vw, 48px);
}

.suite-workspace {
  --adrecom-copy-color: var(--adrecom-copy-on-dark);
  background: linear-gradient(155deg, #272a50, #171f38 70%);
  color: #fff;
}

.suite-workspace .suite-section-head :is(.adrecom-eyebrow, .adrecom-heading, .adrecom-emphasis) {
  background: none;
  color: inherit;
}

.suite-operating-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 3.1vw, 46px);
  border: 1px solid rgb(201 216 255 / .32);
  background:
    radial-gradient(ellipse at 8% 84%, rgb(13 146 191 / .57), transparent 61%),
    radial-gradient(ellipse at 82% 18%, rgb(133 75 230 / .59), transparent 63%),
    radial-gradient(ellipse at 52% 91%, rgb(40 106 238 / .43), transparent 64%),
    #1d294a;
}

.suite-operating-map::before,
.suite-operating-map::after {
  position: absolute;
  z-index: -1;
  background: center / contain no-repeat;
  pointer-events: none;
  content: "";
}

.suite-operating-map::before {
  inset: 0 0 auto auto;
  width: min(64%, 680px);
  aspect-ratio: 327.88 / 267.12;
  background-image: url("../img/outcome-lines-right.svg");
  transform: translate(21%, -23%);
  opacity: .19;
}

.suite-operating-map::after {
  inset: auto auto 0 0;
  width: min(75%, 760px);
  aspect-ratio: 320.2 / 184.97;
  background-image: url("../img/outcome-lines-left.svg");
  transform: translate(-16%, 18%);
  opacity: .17;
}

.suite-map-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: clamp(18px, 2.3vw, 34px);
}

.suite-map-heading .adrecom-eyebrow {
  margin: 0;
  color: #fff;
}

.suite-map-state {
  color: var(--adrecom-copy-on-dark);
}

.suite-map-workflow {
  --suite-map-frame-padding: clamp(12px, 1.7vw, 26px);
  display: grid;
  grid-template-columns: minmax(0, 1.29fr) 32px minmax(0, 1.42fr) 32px minmax(0, .71fr);
  align-items: start;
}

.suite-map-edge,
.suite-map-frame {
  display: grid;
  min-width: 0;
  align-content: start;
}

.suite-map-edge {
  gap: 10px;
}

.suite-map-frame {
  gap: 10px;
  padding: var(--suite-map-frame-padding);
  border: 1px solid rgb(201 216 255 / .32);
  background: linear-gradient(145deg, rgb(74 49 160 / .95), rgb(13 70 136 / .95) 78%);
}

.suite-map-title {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 1.65vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: pretty;
}

.suite-map-lane-heading {
  display: grid;
  gap: 10px;
}

.suite-map-kicker {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(.6875rem, .87vw, .875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.suite-map-kicker > span:last-child {
  overflow-wrap: anywhere;
}

.suite-map-data,
.suite-map-tiles,
.suite-map-nodes {
  display: grid;
  gap: 7px;
}

.suite-map-data {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 106px), 1fr));
  max-width: 340px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suite-map-data > .suite-map-entry {
  gap: 6px;
  padding-inline: 5px;
}

.suite-map-data > .suite-map-entry > span:last-child {
  font-size: .875rem;
}

.suite-map-data > .suite-map-entry .adrecom-circle-icon {
  width: 24px;
  height: 24px;
  padding: 4px;
}

.suite-map-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  container: suite-map-tiles / inline-size;
}

@container suite-map-tiles (max-width: 390px) {
  .suite-map-tiles > .suite-map-entry {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 5px;
    padding: 8px;
  }

  .suite-map-tiles .suite-map-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 7px;
  }

  .suite-map-tiles .suite-map-tags > span + span::before {
    content: none;
  }

  .suite-map-tiles > .suite-map-entry strong {
    font-size: .9375rem;
  }
}

.suite-map-entry {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: 1px solid rgb(197 213 253 / .54);
  background: rgb(249 251 255 / .81);
  color: var(--adrecom-navy);
  font-weight: 600;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.suite-map-entry > span:not(.adrecom-circle-icon),
.suite-map-entry strong {
  color: var(--adrecom-navy);
  font-weight: 600;
}

.suite-map-entry .adrecom-circle-icon {
  width: 30px;
  height: 30px;
  padding: 5px;
}

.suite-map-step-icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-color: rgb(219 210 255 / .8);
  background: rgb(255 255 255 / .1);
  color: #fff;
}

.suite-map-entry small,
.suite-map-tags {
  display: block;
  margin-top: 3px;
  color: #374963;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.3;
}

.suite-map-tags > span + span::before {
  margin-inline: .36em;
  content: "·";
}

.suite-map-connector {
  display: grid;
  align-self: center;
  place-items: center;
  color: #fff;
}

.suite-map-connector svg {
  width: min(30px, 100%);
  height: 24px;
}

.suite-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--suite-accent, var(--adrecom-violet));
}

.suite-icon svg {
  width: 22px;
  height: 22px;
}

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

.suite-feature {
  --suite-accent: var(--adrecom-violet);
  display: grid;
  align-content: start;
  gap: 12px;
  padding: var(--suite-cell);
  border: 1px solid var(--adrecom-line);
  border-top: 3px solid var(--suite-accent);
  background: #fff;
}

.suite-feature:nth-child(3n + 2) {
  --suite-accent: var(--adrecom-blue-dark);
}

.suite-feature:nth-child(3n) {
  --suite-accent: #087598;
}

.suite-feature h3 {
  font-size: clamp(20px, 1.65vw, 26px);
  font-weight: 600;
  line-height: 1.2;
}

.suite-customers {
  background: var(--adrecom-soft);
}

.suite-customers .customers_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr));
  gap: var(--suite-gap);
  margin: 0;
}

.suite-customers .customers_list > div {
  width: auto;
  min-width: 0;
  padding: 0;
}

.suite-customers .customers_list .card {
  height: 100%;
  border: 1px solid var(--adrecom-line);
  border-radius: 0;
  background: #fff;
  text-align: center;
}

.suite-customers .card a {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr auto;
  color: var(--adrecom-navy);
  text-decoration: none;
}

.suite-customers .card-body {
  display: grid;
  min-height: 76px;
  padding: 12px;
  place-items: center;
}

.suite-customers .card-body img {
  display: block;
  width: auto;
  max-width: min(100%, 160px);
  max-height: 52px;
  object-fit: contain;
}

.suite-customers .card-footer {
  padding: 0 8px 12px;
  border: 0;
  background: none;
  overflow-wrap: anywhere;
}

.suite-final {
  text-align: center;
}

.suite-final .adrecom-copy {
  --adrecom-copy-color: #000;
}

.suite-final .adrecom-button {
  margin-top: clamp(20px, 2.5vw, 36px);
}

@media (min-width: 1200px) {
  .suite-map-workflow {
    --suite-map-left: min(29%, 340px);
    --suite-map-side-shift: clamp(68px, 6.25vw, 108px);
    --suite-map-center: calc((100% - 64px - var(--suite-map-left)) * 1.42 / 2.42);
    grid-template-columns:
      minmax(0, calc(var(--suite-map-left) + var(--suite-map-side-shift)))
      32px
      minmax(0, var(--suite-map-center))
      32px
      minmax(0, 1fr);
  }

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

@media (min-width: 992px) {
  .suite-map-data {
    max-width: none;
  }

  .suite-map-edge:first-child .suite-map-entry {
    padding-inline-start: 14px;
  }

  .suite-map-edge {
    padding-top: calc(var(--suite-map-frame-padding) + 1px);
  }

  .suite-flow-core {
    width: max-content;
    min-width: min(100%, 340px);
    max-width: 100%;
  }

  .suite-flow-core-label {
    white-space: nowrap;
  }
}

@media (max-width: 991.98px) {
  body:has(.suite-page) > .header:has(#navbar:is(.show, .collapsing)) {
    max-height: 100dvh;
    overflow-y: auto;
  }

  .suite-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .suite-map-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  .suite-map-connector {
    width: 30px;
    height: 34px;
    justify-self: center;
  }

  .suite-map-connector svg {
    rotate: 90deg;
  }
}

@media (max-width: 767.98px) {
  .suite-advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 575.98px) {
  .suite-actions .adrecom-button {
    width: 100%;
  }

  .suite-advantages {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Commerce Suite migration: introduction beside three stacked stage cards. */
.suite-page .suite-migration {
  text-align: left;
}

.suite-migration-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(72px, 6vw, 120px);
}

.suite-migration .adrecom-implementation-head {
  max-width: 640px;
  margin: 0;
}

.suite-migration-intro .adrecom-heading {
  max-width: 20ch;
}

.suite-migration-intro .adrecom-emphasis {
  display: block;
}

.suite-migration-intro > .adrecom-copy {
  max-width: 60ch;
  margin-top: 16px;
}

.suite-migration-intro > .adrecom-button {
  margin-top: 28px;
}

.suite-migration-steps {
  --adrecom-implementation-step-size: clamp(64px, 4.5vw, 82px);
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.suite-migration-steps::before {
  content: none;
}

.suite-migration-steps > article {
  display: grid;
  grid-template-columns: var(--adrecom-implementation-step-size) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: clamp(20px, 1.65vw, 28px);
  border: 1px solid var(--adrecom-line);
  background: var(--adrecom-white);
}

.suite-migration-steps .adrecom-implementation-step-icon {
  margin: 0;
}

.suite-migration-steps .adrecom-implementation-step-copy > .adrecom-heading {
  font-size: clamp(20px, 1.55vw, 28px);
}

.suite-migration-steps .adrecom-implementation-step-copy > .adrecom-copy {
  margin-top: 8px;
  text-wrap: pretty;
}

@media (max-width: 991.98px) {
  .suite-migration-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 575.98px) {
  .suite-migration-steps {
    --adrecom-implementation-step-size: 54px;
    gap: 14px;
  }

  .suite-migration-steps > article {
    gap: 16px;
    padding: 18px;
  }
}

/* Extend the existing light, flat blue/lavender illustration set. */
.suite-migration-intro .adrecom-heading {
  font-size: clamp(34px, 3.5vw, 60px);
}

.suite-migration-intro > .adrecom-copy {
  --adrecom-copy-size: clamp(18px, 1.4vw, 21px);
}

.suite-migration-steps {
  --adrecom-implementation-step-size: clamp(88px, 6.25vw, 120px);
}

.suite-migration-steps .adrecom-implementation-step-icon {
  padding: 7px;
  border-color: #9CB9E5;
  background: #223F65;
}

.suite-migration-steps > article:nth-child(2) .adrecom-implementation-step-icon {
  background: #493477;
}

.suite-migration-steps > article:nth-child(3) .adrecom-implementation-step-icon {
  background: #2A3D6C;
}

.suite-migration-steps .adrecom-implementation-step-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .suite-migration-steps {
    --adrecom-implementation-step-size: 72px;
  }

  .suite-migration-steps .adrecom-implementation-step-icon {
    padding: 4px;
  }
}
