/* Round 4 product demos: Swish's three animated features + the small kit screens.
   The product stays the real light BrokerPlus UI; only its ring, shadow and under-glow belong to the dark page. */
.bpd {
  position: relative;
  width: 100%;
}
.bpd-in {
  position: relative;
  transform-origin: 0 0;
}
.bpd .bp-card {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 44px 80px -34px rgba(0, 0, 0, 0.85),
    0 30px 70px -36px rgba(96, 156, 232, 0.3);
}
.bpd .bp ::selection,
.bpd ::selection {
  background: rgba(90, 167, 232, 0.3);
}
.bpd.is-paused *,
.bpd.is-paused *::before,
.bpd.is-paused *::after {
  animation-play-state: paused !important;
}

/* ---------- application: the call fills the form ---------- */
.bpd-app {
  display: grid;
  grid-template-columns: minmax(0, 380fr) minmax(0, 520fr);
  gap: 60px;
  align-items: center;
}
.is-narrow .bpd-app {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.bpd-app .bp-lines {
  font-size: 15px;
  gap: 12px;
  padding-top: 14px;
}
.bpd-app .bp-lines p,
.bpd-app .bp-lines p .bp-who,
.bpd-app .bp-lines p .bp-heard {
  color: #6b7280;
  transition:
    color 0.45s ease,
    background-size 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-app .bp-lines p.on {
  color: #4a4d56;
}
.bpd-app .bp-lines p.on .bp-heard {
  color: #0e1014;
}
.bpd-app .bp-heard {
  background: linear-gradient(rgba(90, 167, 232, 0.3), rgba(90, 167, 232, 0.3)) no-repeat 0 100% / 0% 42%;
  transition: background-size 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-app .bp-heard.lit {
  background-size: 100% 42%;
}
.bpd-app .bp-wave {
  margin-top: 14px;
  height: 24px;
}
.bpd-app .bp-wave i {
  height: var(--h);
  transform-origin: 50% 50%;
  transition: background-color 0.3s;
}
.bpd-app .bp-wave.talk i {
  animation: bpdWave 0.7s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes bpdWave {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(1);
  }
}
.bpd-app .bp-call-foot {
  color: #6b7280;
  transition: color 0.5s ease;
}
.bpd-app .bp-call-foot.on {
  color: #0e1014;
}
.bpd-app .bp-app .bp-fld {
  grid-template-columns: 150px minmax(0, 1fr);
}
.is-narrow .bpd-app .bp-app .bp-fld {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
}
.bpd-app .bp-box {
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background-color 0.4s;
}
.bpd-app .bp-box .v {
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.25s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bpd-app .bp-fld.got .bp-box .v {
  opacity: 1;
  transform: none;
}
.bpd-app .bp-fld.aim .bp-box {
  border-color: #5aa7e8;
  box-shadow: 0 0 0 3px rgba(90, 167, 232, 0.2);
  background: #fff;
}
.bpd-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  background: #e8f2fc;
  color: #1b5c98;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-5px) scale(0.96);
  transform-origin: 0 50%;
  transition:
    opacity 0.3s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-src .ic {
  width: 12px;
  height: 12px;
}
.bpd-app .bp-fld.src .bpd-src {
  opacity: 1;
  transform: none;
}
.bpd-app .bp-fld.empty .bp-box .v {
  opacity: 1;
  transform: none;
  color: #6b7280;
}
.bpd-app .bp-fld.empty .bp-from {
  opacity: 0;
  transition: opacity 0.4s ease;
  font-weight: 600;
}
.bpd-app .bp-fld.empty.ask .bp-from {
  opacity: 1;
}
.bpd-app .bp-fld.empty.ask .bp-box {
  animation: bpdAsk 1.1s ease 1;
}
@keyframes bpdAsk {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(140, 72, 7, 0);
  }
  40% {
    box-shadow: 0 0 0 4px rgba(140, 72, 7, 0.16);
  }
}
.bpd-ghost {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  background: #fff;
  color: #0e1014;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 0 0 1.5px #5aa7e8,
    0 14px 28px -10px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

/* ---------- documents: named, read, checked ---------- */
.bpd-docs {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 112px;
  align-items: center;
}
.bpd-up {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.bpd-cap {
  font-size: 13px;
  line-height: 1.4;
  color: #a6b0bd;
}
.bpd-docs .bp-pill {
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  transition:
    opacity 0.3s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.5s,
    background-color 0.5s;
  overflow: hidden;
}
.bpd-docs .bp-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bpd-docs .bp-pill.on {
  opacity: 1;
  transform: none;
}
.bpd-docs .bp-pill.done {
  background: #dfe5ec;
  color: #5b6472;
}
.bpd-flow {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.bpd-flow path {
  fill: none;
  stroke: rgba(125, 180, 240, 0.62);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-flow circle {
  fill: #7db4f0;
  opacity: 0;
  transition: opacity 0.3s ease 0.45s;
}
.bpd-flow g.on path {
  stroke-dashoffset: 0;
}
.bpd-flow g.on circle {
  opacity: 1;
}
.bpd-docs .bp-docs {
  position: relative;
  z-index: 1;
}
.bpd-docs .bp-doc {
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease;
}
.bpd-docs .bp-doc > .bp-ib,
.bpd-docs .bp-doc > .bpd-dt {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bpd-docs .bp-doc.on > .bp-ib,
.bpd-docs .bp-doc.on > .bpd-dt {
  opacity: 1;
}
.bpd-sk {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  bottom: 0;
  display: grid;
  align-content: center;
  gap: 9px;
  padding-left: 44px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.bpd-sk::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 9px;
  background: #f1f3f6;
}
.bpd-sk i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #eef0f3;
  width: 46%;
}
.bpd-sk i + i {
  width: 28%;
  height: 7px;
  background: #f3f4f6;
}
.bpd-docs .bp-doc.on .bpd-sk {
  opacity: 0;
}
.bpd-docs .bp-doc .n,
.bpd-docs .bp-doc .w {
  position: relative;
}
.bpd-docs .bp-doc .sz {
  visibility: hidden;
}
.bpd-docs .bp-doc .an {
  position: absolute;
  inset: 0;
}
.bpd-docs .bp-doc .raw {
  font-weight: 500;
  color: #3a3d45;
  transition: opacity 0.22s ease;
}
.bpd-docs .bp-doc .fin {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.42s cubic-bezier(0.3, 0, 0.2, 1);
}
.bpd-docs .bp-doc.named .raw {
  opacity: 0;
}
.bpd-docs .bp-doc.named .fin {
  clip-path: inset(0 0 0 0);
}
.bpd-docs .bp-doc:not(.named) .raw,
.bpd-docs .bp-doc:not(.named) .fin {
  transition-duration: 0.2s;
}
.bpd-docs .bp-doc .bp-ib {
  transition:
    opacity 0.3s ease,
    background-color 0.4s,
    color 0.4s;
}
.bpd-docs .bp-doc .bp-chip {
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.25s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-docs .bp-doc.ok .bp-chip {
  opacity: 1;
  transform: none;
}
.bpd-docs .bp-doc .bp-chip .ic {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.bpd-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    100deg,
    rgba(90, 167, 232, 0) 28%,
    rgba(90, 167, 232, 0.22) 50%,
    rgba(90, 167, 232, 0) 72%
  );
  transform: translateX(-100%);
}
.bpd-docs .bp-doc.read .bpd-sweep {
  animation: bpdSweep 1s cubic-bezier(0.4, 0, 0.2, 1) 1 both;
}
@keyframes bpdSweep {
  0% {
    transform: translateX(-100%);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 1;
  }
}
.bpd-docs .bp-head .end {
  gap: 0;
}
.bpd-docs .bp-head .bp-chip.warn {
  margin-left: 6px;
  max-width: 140px;
  overflow: hidden;
  transition:
    opacity 0.35s ease 0.1s,
    max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-docs .bp-head .bp-chip.warn.off {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  transition-delay: 0s;
}
.is-narrow .bpd-docs {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.is-narrow .bpd-up {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.is-narrow .bpd-cap {
  grid-column: 1 / -1;
}
.is-narrow .bpd-docs .bp-pill {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  gap: 7px;
}
.is-narrow .bpd-flow {
  display: none;
}
.is-narrow .bpd-docs .bp-doc {
  padding: 11px 14px;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr);
}
.is-narrow .bpd-docs .bp-doc > .bp-chip {
  grid-column: 2;
  justify-self: start;
  margin-top: -4px;
}
.is-narrow .bpd-docs .bp-head {
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 13px 14px 11px;
}
.is-narrow .bpd-docs .bp-head .end {
  margin-left: 0;
  width: 100%;
}
.is-narrow .bpd-sk {
  left: 14px;
  right: 14px;
}
.is-narrow .bpd-docs {
  align-items: start;
}

/* ---------- disclosures: the regulator's form, inked from the file ---------- */
.bpd-sheet {
  position: relative;
  margin: 16px 18px 14px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f2f9;
  box-shadow:
    0 0 0 1px #e6e7ea,
    0 12px 26px -18px rgba(10, 30, 60, 0.35);
}
.bpd-view {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}
.bpd-view img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
}
.bpd-cover {
  position: absolute;
  background: #f3f2f9;
}
.bpd-cover i {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(30, 30, 36, 0.6);
}
.bpd-ink {
  position: absolute;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #000;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.bpd-ink.gone {
  opacity: 0;
}
.bpd-ring {
  position: absolute;
  border-radius: 4px;
  box-shadow:
    0 0 0 1.5px #5aa7e8,
    0 0 0 5px rgba(90, 167, 232, 0.16);
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.3s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s ease;
}
.bpd-ring.on {
  opacity: 1;
  transform: none;
}
.bpd-ring.rest {
  box-shadow:
    0 0 0 1px rgba(90, 167, 232, 0.55),
    0 0 0 0 rgba(90, 167, 232, 0);
}
.bpd-lead {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.bpd-lead path {
  fill: none;
  stroke: #06294c;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-lead path.on {
  stroke-dashoffset: 0;
}
.bpd-tag {
  position: absolute;
  transform: translate(-6px, -50%);
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: #06294c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-tag.on {
  opacity: 1;
  transform: translate(0, -50%);
}
.bpd-tag.hold {
  background: #fff;
  color: #06294c;
  box-shadow: inset 0 0 0 1px rgba(6, 41, 76, 0.5);
}
.bpd-tag.hold::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #06294c;
}
.bpd-dis .bp-head .bp-chip {
  transition:
    background-color 0.4s,
    color 0.4s;
}
.bpd-dis .bp-head .bp-chip i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: bpdDot 1s ease-in-out infinite alternate;
}
@keyframes bpdDot {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
.bpd-dis .bp-note,
.bpd-dis .bp-note .ic {
  color: #6b7280;
  transition: color 0.5s ease;
}
.bpd-dis .bp-note.on {
  color: #3a3d45;
}
.bpd-dis .bp-sign {
  box-shadow: none;
  transition: box-shadow 0.7s ease;
}
.bpd-dis .bp-sign::before {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.bpd-dis .bp-sign.lit {
  box-shadow:
    0 0 22px -2px rgba(242, 171, 0, 0.5),
    0 0 16px -6px rgba(90, 167, 232, 0.6);
  animation: bpdSign 1.6s ease-out 1;
}
.bpd-dis .bp-sign.lit::before {
  opacity: 1;
}
@keyframes bpdSign {
  0% {
    box-shadow:
      0 0 0 0 rgba(242, 171, 0, 0.55),
      0 0 0 0 rgba(90, 167, 232, 0);
  }
  45% {
    box-shadow:
      0 0 34px 4px rgba(242, 171, 0, 0.6),
      0 0 16px -6px rgba(90, 167, 232, 0.6);
  }
  100% {
    box-shadow:
      0 0 22px -2px rgba(242, 171, 0, 0.5),
      0 0 16px -6px rgba(90, 167, 232, 0.6);
  }
}
.bpd-sheet-n {
  display: none;
}
.is-narrow .bpd-sheet-w {
  display: none;
}
.is-narrow .bpd-sheet-n {
  display: block;
  margin: 14px 14px 12px;
}
.bpd-sheet-n .bpd-view + .bpd-view::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #dddce6;
}
.is-narrow .bpd-tag {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 5px;
}
.is-narrow .bpd-dis .bp-head {
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 8px;
  padding: 13px 14px 11px;
}
.is-narrow .bpd-dis .bp-head > div:not(.end) {
  flex: 1;
  min-width: 0;
}
.is-narrow .bpd-dis .bp-head .end {
  margin-left: 44px;
  width: 100%;
}
.is-narrow .bpd-dis .bp-note,
.is-narrow .bpd-dis .bp-foot {
  padding-left: 14px;
  padding-right: 14px;
}

/* ---------- small kit screens: one entrance each ---------- */
.bpd-player .bp-card {
  min-height: 400px;
}
.bpd-player.is-tight .bp-card {
  min-height: 430px;
}
.bpd-small .bp-row,
.bpd-small .bp-cell {
  transition:
    opacity 0.4s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bpd-small .pre {
  opacity: 0;
  transform: translateY(10px);
}
.bpd-small .bp-row .bp-chip,
.bpd-small .bp-row .bp-ib.ok,
.bpd-small .bp-cell .bp-chip {
  transition:
    opacity 0.25s ease 0.22s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}
.bpd-small .pre .bp-chip,
.bpd-small .pre .bp-ib.ok {
  opacity: 0;
  transform: scale(0.8);
}
.bpd-small .bp-draft {
  transition: opacity 0.5s ease;
}
.bpd-small .bp-draft.pre {
  transform: none;
}
.bpd-small .bp-phone {
  margin: 0 auto;
}
.bpd--file.is-narrow .bp-file .bp-head {
  flex-wrap: wrap;
  padding: 14px 14px 10px;
}
.bpd--file.is-narrow .bp-file .bp-head .end {
  margin-left: 0;
  width: 100%;
}
.bpd--file.is-narrow .bp-tabs {
  overflow: hidden;
  white-space: nowrap;
  padding: 0 6px;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.bpd--file.is-narrow .bp-body {
  padding: 12px;
}
.bpd--file.is-narrow .bp-strip {
  grid-template-columns: minmax(0, 1fr);
}
.bpd--file.is-narrow .bp-cell {
  border-left: 0;
  border-top: 1px solid var(--bp-hair);
  padding: 12px 14px 0;
}
.bpd--file.is-narrow .bp-cell:first-child {
  border-top: 0;
}
.bpd--file.is-narrow .bp-row {
  padding: 11px 14px;
  grid-template-columns: 32px minmax(0, 1fr);
}
.bpd--file.is-narrow .bp-row > :last-child {
  grid-column: 2;
  justify-self: start;
}
.bpd--file.is-narrow .bp-needs-head .bp-s {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bpd *,
  .bpd *::before,
  .bpd *::after {
    transition: none !important;
    animation: none !important;
  }
}
