/* Art direction: preserve the photographic stages and align the smaller
   product previews with their materials, type hierarchy and blue actions. */

/* Bank previews use the same balance hierarchy and circular actions as
   the final phone render. Labels and values remain in the original HTML. */
.wallet-preview {
  margin-top: 28px;
  padding: 20px 22px 14px;
}

.wallet-brand {
  margin-bottom: 16px;
}

.wallet-preview > span,
.wallet-preview > strong,
.citizen-screen .demo-label,
.citizen-screen .demo-balance {
  display: block;
  text-align: center;
}

.wallet-preview > strong,
.citizen-screen .demo-balance {
  font-variant-numeric: tabular-nums;
}

.wallet-actions {
  margin: 16px 0 8px;
}

.wallet-actions > span {
  gap: 8px;
  font-size: 12px;
}

.wallet-actions .icon,
.citizen-screen .demo-actions .icon {
  width: 44px;
  height: 44px;
  padding: 12px;
  color: var(--paper);
  background: var(--accent);
  border-radius: 50%;
}

.citizen-screen .demo-balance {
  padding-top: 4px;
}

.citizen-screen .demo-balance > span {
  font-size: inherit;
}

.citizen-screen .demo-actions {
  margin-block: 24px;
}

.citizen-screen .demo-actions > div {
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.citizen-screen .demo-transaction {
  padding-block: 16px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.citizen-screen .demo-transaction small {
  font-size: 11px;
}

.citizen-screen .positive {
  color: var(--accent);
}

/* Neutral hardware belongs to the same device family as the photo renders.
   The app UI keeps the product blue; see the scoped tokens below. */
.apps-phone {
  background: var(--dark-surface);
  box-shadow: 0 24px 48px rgb(0 0 0 / 12%),
    inset 0 0 0 1px var(--muted),
    inset 0 0 0 3px var(--dark);
}

.apps-phone::before {
  background: var(--dark);
}

.apps-phone::after {
  background: var(--ink);
}

.apps-screen {
  color: var(--ink);
}

.apps-screen-brand {
  letter-spacing: -.02em;
}

/* The management relationship should read as a diagram, not a footnote. */
.system-flow {
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 1.4;
}

.system-flow > span {
  color: var(--soft);
}

.system-flow > .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-on-dark);
}

@media (max-width: 800px) {
  .system-flow {
    justify-content: flex-start;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  /* Compensate for the studio image's desktop negative space. The entire
     card front, chip and wordmark stay within the mobile content column. */
  .card-scene > img {
    width: 150%;
    margin-left: -50%;
  }

  .citizen-screen .demo-transaction {
    gap: 8px;
    font-size: 12px;
  }

  .citizen-screen .demo-transaction small {
    font-size: 10px;
  }

  .system-flow {
    gap: 10px;
    font-size: 13px;
  }

  .system-flow > .icon {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-contrast: more) {
  .apps-phone {
    box-shadow: 0 0 0 2px var(--ink);
  }
}

@media (max-width: 360px) {
  .system-flow {
    gap: 6px;
  }

  .system-flow strong {
    font-size: 20px;
  }

  .system-flow > .icon {
    width: 14px;
    height: 14px;
  }
}

/* The app mockups keep the Banco Social product blue of the photo renders;
   Saquarema's green belongs to the page chrome and actions. */
.demo-screen,
.wallet-preview,
.unfold-display {
  --accent: #0066cc;
  --accent-hover: #004b99;
  --brand-soft: #edf4fb;
  --brand-deep: #1d1d1f;
}

/* The Events card photo has its own pale backdrop; feather its top and bottom
   so the multiply blend does not draw a band over the green tile. */
.end-mosaic-events-image {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
