/* ==========================================================================
   Wallet page
   Sections: hero · virtual cards · wallet features · everyday-wallet banner
   Desktop follows the 1440 design proportionally (cqw = % of section width).
   ========================================================================== */

/* ---------- Frosted pill button (hero + banner) ---------- */
.w-frost{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-width:152px;height:48px;padding:0 26px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:linear-gradient(150deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,.06) 55%,rgba(140,100,255,.12) 100%);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 14px 34px rgba(5,2,20,.30);color:#fff;font:600 16px/1 var(--font-display);white-space:nowrap}
.w-frost:hover{background:linear-gradient(150deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,.10) 55%,rgba(140,100,255,.18) 100%);color:#fff}
.w-frost--light{background:linear-gradient(150deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,.06) 55%,rgba(255,255,255,.12) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 14px 34px rgba(5,2,20,.12);color:var(--purple-link)}
.w-frost--light:hover{background:linear-gradient(150deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,.10) 55%,rgba(255,255,255,.18) 100%);color:var(--ink-2)}

/* ---------- Hero + banner (shared photographic layout) ---------- */
.w-hero,.w-cta{position:relative;overflow:hidden;container-type:inline-size}
.w-hero{background:#F1F1F2}
.w-cta{background:#1A1A20}
.w-hero__img,.w-cta__img{display:block;width:100%;aspect-ratio:2576/996;object-fit:cover}
.w-cta::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,8,18,.55) 0%,rgba(15,12,8,.57) 22%,rgba(10,8,18,0) 45%);pointer-events:none}
.w-hero__text,.w-cta__text{position:absolute;z-index:1;left:6cqw;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center}
.w-hero__title,.w-cta__title{font:700 max(34px,4.6cqw)/1 var(--font-display);letter-spacing:-.01em;white-space:nowrap}
.w-hero__title{color:var(--ink-2)}
.w-hero__title .accent{color:var(--purple-link)}
.w-cta__title{color:#fff}
.w-hero__sub,.w-cta__sub{margin-top:1.6cqw;max-width:max(30cqw,300px);font:600 max(19px,1.32cqw)/1.25 var(--font-display);text-wrap:pretty}
.w-hero__sub{color:var(--text)}
.w-cta__sub{color:rgba(255,255,255,.85)}
.w-hero .w-frost,.w-cta .w-frost{margin-top:3.1cqw;min-width:max(152px,10.55cqw);height:max(48px,3.33cqw);font-size:max(16px,1.11cqw)}

/* ---------- Virtual cards ---------- */
.vcards{position:relative;overflow:hidden;background:var(--bg-soft);container-type:inline-size;font-family:var(--font-display);scroll-margin-top:20px;
  --u:1cqw; /* one unit of the card fan = 1% of the section at desktop */
  --vc-ease:cubic-bezier(.2,.7,.2,1)}
.vcards__glow{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .9s var(--vc-ease)}
.vcards__glow--digital{background:radial-gradient(55% 80% at 30% 55%,rgba(0,180,255,.15) 0%,rgba(100,41,236,.07) 45%,rgba(245,245,247,0) 75%)}
.vcards__glow--travel{background:radial-gradient(55% 80% at 30% 55%,rgba(214,30,140,.12) 0%,rgba(100,41,236,.08) 45%,rgba(245,245,247,0) 75%)}
.vcards__glow--shopping{background:radial-gradient(55% 80% at 30% 55%,rgba(170,225,40,.15) 0%,rgba(0,200,230,.08) 45%,rgba(245,245,247,0) 75%)}
.vcards__motif{position:absolute;right:-4%;bottom:-6%;width:76cqw;aspect-ratio:794/713;pointer-events:none;opacity:0;transform:translate(24px,18px) rotate(-2deg) scale(1.03);-webkit-mask:url("../../img/wallet/vcard-motif-mask.png") center/100% 100% no-repeat;mask:url("../../img/wallet/vcard-motif-mask.png") center/100% 100% no-repeat;transition:opacity 1.1s var(--vc-ease),transform 1.6s var(--vc-ease)}
.vcards__motif--digital{background:linear-gradient(135deg,#00D4FF 0%,#00D4FF 55%,#4F1AD0 100%)}
.vcards__motif--travel{background:linear-gradient(135deg,#8858E8 0%,#B43CC8 50%,#E81888 100%)}
.vcards__motif--shopping{background:linear-gradient(135deg,#C8E62A 0%,#5FD6A0 55%,#00C8E6 100%)}
.vcards[data-active="digital"] .vcards__glow--digital,
.vcards[data-active="travel"] .vcards__glow--travel,
.vcards[data-active="shopping"] .vcards__glow--shopping{opacity:.9}
.vcards[data-active="digital"] .vcards__motif--digital,
.vcards[data-active="travel"] .vcards__motif--travel,
.vcards[data-active="shopping"] .vcards__motif--shopping{opacity:.1;transform:none}

.vcards__inner{position:relative;display:grid;grid-template-columns:57.3cqw 37.5cqw;min-height:46.12cqw}
.vcards__art{position:relative}
.vcards__fan{position:absolute;left:49.2%;top:44.4%;width:0;height:0;perspective:1400px}
.vcard{position:absolute;left:0;top:0;z-index:2;width:calc(17.16 * var(--u));aspect-ratio:794/1273;cursor:pointer;
  --x:0;--y:0;--r:0deg;--s:1;
  transform:translate(-50%,-50%) translate(calc(var(--x) * var(--u)),calc(var(--y) * var(--u))) rotate(var(--r)) scale(var(--s));
  transition:transform .9s cubic-bezier(.25,.8,.25,1)}
.vcard--travel{--x:-9.54;--y:1.53;--r:-11deg}
.vcard--shopping{--x:9.54;--y:1.53;--r:11deg}
.vcard--digital{z-index:3}
.vcard.is-active{z-index:5}
.vcard__face{position:relative;width:100%;height:100%;border-radius:min(20px,calc(1.39 * var(--u)));overflow:hidden;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));box-shadow:0 18px 36px rgba(26,19,100,.10);transition:transform .5s ease-out,box-shadow .9s}
.vcard.is-active .vcard__face{box-shadow:0 26px 50px rgba(26,19,100,.14),0 6px 14px rgba(26,19,100,.06)}
.vcard__face img{width:100%;height:100%;object-fit:cover}
.vcard__shine{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(115deg,rgba(255,255,255,0) 35%,rgba(255,255,255,.22) 50%,rgba(255,255,255,0) 65%);background-size:250% 100%;background-position:120% 0;transition:background-position .9s var(--vc-ease),opacity .4s}
.vcard.is-active .vcard__shine{opacity:1;background-position:calc(100% - var(--px,.5) * 100%) 0}

.vcards__text{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:7.6cqw 0 5cqw}
.vcards__title{font-size:clamp(40px,4.4cqw,84px)}
.vcards__word{position:relative;display:inline-block;color:var(--purple);transition:color .6s ease}
.vcards__word-tint{position:absolute;left:0;top:0;opacity:0;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;transition:opacity .6s ease}
.vcards__word-tint--digital{background-image:linear-gradient(100deg,#00B4FF 0%,#4F1AD0 100%)}
.vcards__word-tint--travel{background-image:linear-gradient(100deg,#8858E8 0%,#E81888 100%)}
.vcards__word-tint--shopping{background-image:linear-gradient(100deg,#8CC820 0%,#00B8D4 100%)}
.vcards[data-active] .vcards__word{color:transparent}
.vcards[data-active="digital"] .vcards__word-tint--digital,
.vcards[data-active="travel"] .vcards__word-tint--travel,
.vcards[data-active="shopping"] .vcards__word-tint--shopping{opacity:1}
.vcards__lede{margin-top:2.1cqw;font:600 clamp(20px,1.53cqw,29px)/1.2 var(--font-display);letter-spacing:-.02em;color:#15151A}
.vcards__copy{margin-top:1.5cqw;font:400 clamp(17px,1.4cqw,27px)/1.35 var(--font-body);color:#6E6E78;text-wrap:pretty}
.vcards__lede + .vcards__copy{margin-top:2.2cqw}
.vcards__btn{margin-top:2.6cqw;min-height:max(52px,4.5cqw);padding:0 max(28px,2.5cqw);gap:max(12px,.9cqw);font-size:max(16px,1.4cqw)}

/* ---------- Wallet features ---------- */
.w-features{max-width:1480px;margin:0 auto;padding:clamp(56px,5.6vw,80px) var(--gutter)}
.w-features__title{margin-bottom:46px;text-align:center;font-size:clamp(32px,3.4vw,56px)}
.w-features__title .accent{color:var(--purple-link)}
.w-features__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 44px}  /* 6 cards = two even rows of 3 */
.w-card{position:relative;container-type:inline-size;aspect-ratio:1080/1350;border-radius:10px;overflow:hidden;background:var(--ink-2)}
.w-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.w-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(180deg,rgba(11,7,16,0) 0%,rgba(11,7,16,.45) 100%);pointer-events:none}
.w-card__text{position:absolute;z-index:1;left:10.27cqw;right:10.27cqw;bottom:10cqw;display:flex;flex-direction:column;gap:2.52cqw;color:#fff}
.w-card__text h3{font:700 8.72cqw/.98 var(--font-display);letter-spacing:-.005em;white-space:nowrap}
.w-card__text p{font:400 max(12px,3.95cqw)/1.12 var(--font-body)}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1099px){
  .w-features__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .w-card__text{left:9cqw;right:9cqw;bottom:9cqw}
}

/* --- tablet: virtual cards keep two columns, tighter --- */
@media (max-width:1099px) and (min-width:760px){
  .vcards__inner{grid-template-columns:52cqw 42cqw}
  .vcards{--u:.96cqw}
  .vcards__text{padding-bottom:7cqw}
  .vcards__title{font-size:clamp(38px,5cqw,54px)}
}

@media (max-width:759px){
  /* hero: copy first, photo below (cropped to the phone + terminal) */
  .w-hero{display:flex;flex-direction:column}
  .w-hero__text{position:static;order:-1;padding:40px var(--pad) 4px;align-items:center;text-align:center}
  .w-hero__title{font-size:clamp(36px,10.4cqw,56px);white-space:normal}
  .w-hero__sub{margin-top:14px;max-width:none}
  .w-hero .w-frost{margin-top:24px;height:50px;font-size:16px}
  .w-hero__img{aspect-ratio:16/10.5;object-position:86% 50%;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%);mask-image:linear-gradient(180deg,transparent 0,#000 14%)}

  /* virtual cards: fan on top, copy below */
  .vcards{--u:clamp(7.4px,2.25cqw,11.5px)}
  .vcards__inner{grid-template-columns:minmax(0,1fr);min-height:0}
  .vcards__art{height:calc(37 * var(--u));margin-top:28px}
  .vcards__fan{left:50%;top:47%}
  .vcards__text{padding:8px var(--pad) 56px}
  .vcards__title{font-size:clamp(38px,10cqw,54px)}
  .vcards__lede{margin-top:14px}
  .vcards__copy,.vcards__lede + .vcards__copy{margin-top:14px}
  .vcards__btn{margin-top:26px;min-height:56px;font-size:17px}
  .vcards__motif{width:150cqw}

  /* features: 2 columns */
  .w-features__title{margin-bottom:30px}
  .w-features__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

  /* banner: copy on a dark panel that melts into the photo below */
  .w-cta{display:flex;flex-direction:column;background:#F1F1F2}
  .w-cta::after{display:none}
  .w-cta__text{position:static;order:-1;padding:48px var(--pad) 10px;align-items:center;text-align:center}
  .w-hero .w-frost,.w-cta .w-frost{align-self:center}
  .w-cta__title{font-size:clamp(36px,10.4cqw,56px);color:var(--ink-2)}
  .w-cta__sub{margin-top:14px;max-width:none;color:var(--text)}
  .w-cta .w-frost{margin-top:24px;height:50px;font-size:16px;background:var(--ink-2);border-color:var(--ink-2);box-shadow:none;color:#fff}
  .w-cta .w-frost:hover{background:var(--purple-dark);border-color:var(--purple-dark);color:#fff}
  .w-cta__img{aspect-ratio:1/1;object-position:56% 50%;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%);mask-image:linear-gradient(180deg,transparent 0,#000 22%)}
}

@media (max-width:519px){
  /* features: swipeable row, next card peeks in */
  .w-features{padding-inline:0}
  .w-features__title{padding-inline:var(--pad)}
  .w-features__grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(76vw,320px);gap:14px;padding:0 var(--pad) 6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--pad);-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .w-features__grid::-webkit-scrollbar{display:none}
  .w-card{scroll-snap-align:start}
  .w-card__text{left:8cqw;right:8cqw;bottom:8cqw;gap:8px}
  .w-card__text h3{font-size:26px}
  .w-card__text p{font-size:14px;line-height:1.25}
}

@media (prefers-reduced-motion:reduce){
  .vcard,.vcard__face,.vcard__shine,.vcards__glow,.vcards__motif,.vcards__word,.vcards__word-tint{transition:none}
}
