.wallet-section {
  background: var(--control-gray);
  color: #171821;
  overflow: hidden;
}
.wallet-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "phone copy";
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  padding-top: clamp(3.75rem, 6vw, 6rem);
}
.wallet-copy { grid-area: copy; align-self: center; max-width: 29rem; padding-bottom: clamp(3.75rem, 6vw, 6rem); }
.wallet-copy h2 { margin: 0; font-size: 2.1rem; line-height: 1.02; font-weight: 400; letter-spacing: -.052em; }
.wallet-copy h2 span { display: block; color: #717179; }
.wallet-copy p { margin: 1.25rem 0 0; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.48; color: #66666e; }
.wallet-brands { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: clamp(.94rem, 1.15vw, 1.08rem); line-height: 1.4; }
.wallet-brand-badges { display: inline-flex; align-items: center; }
.brand-badge { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--control-gray); border-radius: .65rem; isolation: isolate; }
.brand-badge + .brand-badge { margin-inline-start: -.95rem; }
.brand-badge img { display: block; width: 1.45rem; height: 1.45rem; object-fit: contain; }
.badge-qantas img, .badge-emirates img, .badge-amex img { width: 2rem; height: 2rem; }
.badge-qantas { background: #ed0000; }
.badge-qantas img { mix-blend-mode: lighten; }
.badge-emirates { background: #d71920; }
.badge-emirates img { mix-blend-mode: lighten; }
.badge-accor { background: #1e1852; }
.badge-aeroplan { background: #151515; }
.badge-accor img, .badge-aeroplan img { filter: brightness(0) invert(1); }
.badge-amex { background: #006fcf; }
.badge-more { background: #fff; color: #66666e; font-size: 1.25rem; }
.wallet-preview { grid-area: phone; justify-self: center; width: min(80%, 22.4rem); container-type: inline-size; }
.wallet-phone {
  --frame-color: #dedfe1;
  aspect-ratio: 1 / 2.07;
  margin-bottom: -82%;
  transform: translateY(4cqw);
  padding: 1.6cqw 2.4cqw 0;
  overflow: hidden;
  border: 1.6cqw solid var(--frame-color);
  border-radius: 14cqw;
  background: #fff;
}
.wallet-phone::before { content: ""; display: block; width: 24cqw; height: 6.7cqw; margin: 0 auto; background: var(--frame-color); border-radius: 4cqw; }
.wallet-app-header { display: flex; align-items: center; justify-content: space-between; padding-inline: 1cqw; margin: 7cqw 0; color: #343538; }
.wallet-app-header img { width: 29cqw; }
.wallet-app-header span { padding: 1.5cqw 3cqw; border-radius: 999px; background: var(--control-gray); font-size: 3.45cqw; }
.wallet-balance { margin: 0 2cqw 7cqw; }
.wallet-balance > span { font-size: 3.6cqw; color: #66666e; }
.wallet-balance-value { display: flex; align-items: center; gap: 2cqw; margin-top: 1cqw; font-size: 10.5cqw; line-height: 1.05; letter-spacing: -.05em; color: var(--bound-blue); }
.wallet-balance-value img { display: block; width: 13cqw; height: auto; }
.wallet-deck { display: grid; grid-auto-rows: 15cqw; }
.wallet-card { position: relative; width: 96%; aspect-ratio: 1.58; place-self: start center; overflow: hidden; border-radius: 3.6cqw; }
.wallet-card > img { width: 100%; display: block; }
.wallet-card .program-mark { position: absolute; top: 3cqw; left: 4cqw; width: 10cqw; height: 10cqw; object-fit: contain; border-radius: 1.5cqw; }
.accor-card .program-mark { left: auto; right: 4cqw; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending .wallet-card, .reveal-pending .wallet-balance-value span { opacity: 0; }
  .revealing .wallet-card { animation: wallet-card-fade 850ms cubic-bezier(.37, 0, .63, 1) backwards; }
  .revealing .wallet-card:nth-child(2) { animation-delay: 400ms; }
  .revealing .wallet-card:nth-child(3) { animation-delay: 800ms; }
  .revealing .wallet-card:nth-child(4) { animation-delay: 1200ms; }
  @keyframes wallet-card-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wallet-card { transition: transform 180ms ease-out; }
  .wallet-card:hover { transform: translateY(-2cqw); }
}
@media (max-width: 700px) {
  .wallet-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "phone"; gap: 2.75rem; }
  .wallet-copy { padding-bottom: 0; }
  .wallet-preview { width: min(80%, 20rem); }
}
