/* ==========================================================
   Perks as a wallet: each perk is a card in its partner's own
   material, ID-1 size (85.6 x 54 mm). The partner sits where a
   bank would, AkcaVPN where the card network would, and the
   benefit is printed on the card. The cards stack like Apple
   Wallet; the picked one slides out with its details beside it.
   Used on the homepage (#perks) and on /perks/. js/perk-wallet.js
   handles picking, tilt and the guilloche print.
   ========================================================== */
.wal{ position: relative; width: min(100%, 420px); margin-top: 56px; }

/* The stack: every card after the first tucks up under the one before it, leaving its top strip.
   Card height is 63.06% of its width, the strip 17.5%; percentages in margins are of the width. */
.wal-slot{ position: relative; margin-top: -45.56%; transition: margin-top .55s cubic-bezier(.2,.75,.12,1); }
.wal-slot:first-child{ margin-top: 0; }
.wal-slot.sel + .wal-slot{ margin-top: 16px; }
.wal-slot:nth-child(1){ z-index: 1; } .wal-slot:nth-child(2){ z-index: 2; } .wal-slot:nth-child(3){ z-index: 3; }
.wal-slot:nth-child(4){ z-index: 4; } .wal-slot:nth-child(5){ z-index: 5; } .wal-slot:nth-child(6){ z-index: 6; }

/* The details sit beside the picked card. */
.wal-d{ display: none; position: absolute; top: 4px; left: calc(100% + 72px); width: min(540px, calc(100vw - 420px - 72px - 48px)); }
.wal-slot.sel .wal-d{ display: block; animation: wal-d-in .45s var(--ease) both; }
@keyframes wal-d-in{ from{ opacity: 0; transform: translateY(8px); filter: blur(4px); } to{ opacity: 1; transform: none; filter: none; } }
.wal-who{ font-size: 15px; font-weight: 600; color: var(--ink-3); }
.wal-ben{ margin-top: 10px; font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.wal-text{ margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.wal-cta{ margin-top: 24px; }

/* ================= The card ================= */
.pc{ position: relative; width: 100%; aspect-ratio: 85.6 / 53.98; container-type: inline-size; color: var(--pc-ink);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s cubic-bezier(.2,.7,.1,1); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.pc.tilting{ transition: transform .08s linear; }
.pc:focus-visible{ outline: none; }
.pc:focus-visible .pc-in{ outline: 2px solid var(--cf); outline-offset: 4px; }
/* ISO ID-1 corner: 3.18 mm on 85.6 mm */
.pc-in{ position: absolute; inset: 0; border-radius: 3.7cqw; overflow: hidden; isolation: isolate; background: var(--pc-mat);
  box-shadow: 0 1px 1px rgba(10,12,22,.10), 0 10px 22px -12px rgba(16,22,60,.45), 0 34px 60px -34px rgba(16,22,60,.55); }
/* the stock: brushed metal or a soft-touch matte */
.pc-in::before{ content: ""; position: absolute; inset: 0; z-index: 0; background: var(--pc-tex, none); opacity: var(--pc-tex-o, 1); }
.pc-in::after{ content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 -1px 0 rgba(0,0,0,.25); }
/* the security print, a guilloche rosette drawn by perk-wallet.js */
.pc-print{ position: absolute; z-index: 1; right: -18cqw; top: -30cqw; width: 92cqw; height: 92cqw; background: var(--pc-print, none) center/contain no-repeat; opacity: var(--pc-print-o, .3); }
/* light: a spot that follows the pointer and a soft band across */
.pc-sheen{ position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60cqw 46cqw at var(--mx, 24%) var(--my, 12%), rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
              linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) calc(var(--mx, 24%) + 10%), rgba(255,255,255,0) calc(var(--mx, 24%) + 30%)); }

.pc-face{ position: absolute; inset: 0; z-index: 2; padding: 6.4cqw 6.8cqw; display: grid; grid-template-rows: auto 1fr auto; }
.pc-top{ display: flex; align-items: center; gap: 2.8cqw; min-width: 0; }
.pc-logo{ flex: none; width: 9.6cqw; height: 9.6cqw; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.pc-logo img, .pc-logo svg{ display: block; width: 100%; height: 100%; }
.pc-logo--sq{ border-radius: 2cqw; }
.pc-logo--tile{ border-radius: 2.2cqw; background: #fff; padding: 1.2cqw; box-shadow: 0 .4cqw 1.2cqw rgba(0,0,0,.18); }
.pc-logo--tile img{ object-fit: contain; }
.pc-logo--sol{ background: #0c0e12; padding: 2.3cqw 2cqw; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pc-logo--skr{ background: #000; }
.pc-issuer{ font-size: 4.3cqw; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.pc-soon{ margin-left: 1cqw; font-size: 2.6cqw; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .7cqw 1.8cqw; border-radius: 99px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); }
.pc-nfc{ margin-left: auto; width: 5.2cqw; height: 5.2cqw; opacity: .75; flex: none; }
.pc-mid{ display: flex; align-items: center; }
.pc-chip{ width: 12.6cqw; height: 9.6cqw; filter: drop-shadow(0 .25cqw .3cqw rgba(0,0,0,.28)); }
.pc-bot{ display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqw; }
.pc-ben{ font-size: 7.6cqw; font-weight: 700; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.pc-sub{ margin-top: 1.8cqw; font-size: 2.9cqw; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--pc-ink2); white-space: nowrap; }
.pc-net{ flex: none; display: flex; align-items: center; gap: 1.2cqw; font-size: 3.6cqw; font-weight: 600; letter-spacing: .12em; }
.pc-amark{ width: 5.2cqw; height: 5.2cqw; background: currentColor;
  -webkit-mask: url(/assets/akca-mark-white.png) center/contain no-repeat; mask: url(/assets/akca-mark-white.png) center/contain no-repeat; }
.pc-net i{ font-style: normal; font-weight: 900; letter-spacing: 0; margin-left: -.6cqw; }
/* hot-stamped foil (the gold on ORE): the gradient moves with the light */
.pc-foil{ background: linear-gradient(105deg, var(--f1) 0%, var(--f2) calc(var(--mx, 24%) - 8%), var(--f3) var(--mx, 24%), var(--f2) calc(var(--mx, 24%) + 10%), var(--f1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-net.pc-foil .pc-amark{ background: linear-gradient(105deg, var(--f1), var(--f3) var(--mx, 24%), var(--f1)); }
/* holographic foil on the Earn mark */
.pc-holo{ position: relative; }
.pc-holo::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, #ff7ad9 0%, #7af5ff calc(var(--mx, 24%) - 6%), #fff59a var(--mx, 24%), #a98bff calc(var(--mx, 24%) + 12%), #ff7ad9 100%); }

/* The six stocks. */
.pc[data-k]{ --pc-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); --pc-tex-o: .3; }
.pc[data-k="earn"]{ --pc-mat: radial-gradient(120% 140% at 0% 0%, #5b5ff2 0%, #3d36c7 38%, #241d86 70%, #170f57 100%); --pc-tex-o: .35; --pc-print-o: .32; --pc-ink: #fff; --pc-ink2: rgba(255,255,255,.72); }
.pc[data-k="eyca"]{ --pc-mat: radial-gradient(130% 150% at 0% 0%, #ff4fa6 0%, #ea0578 40%, #b8005c 78%, #8c0047 100%); --pc-print-o: .34; --pc-ink: #fff; --pc-ink2: rgba(255,255,255,.78); }
.pc[data-k="seeker"]{ --pc-mat: linear-gradient(160deg, #1b2027 0%, #0d1014 46%, #171b21 70%, #08090c 100%); --pc-tex: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 2px, rgba(255,255,255,0) 2px 3px); --pc-tex-o: 1; --pc-print-o: .22; --pc-ink: #f2f5f7; --pc-ink2: rgba(242,245,247,.62); }
.pc[data-k="ore"]{ --pc-mat: radial-gradient(120% 160% at 100% 0%, #2a2214 0%, #14100a 45%, #0a0805 100%); --pc-tex-o: .25; --pc-print-o: .3; --pc-ink: #e8cf8a; --pc-ink2: rgba(232,207,138,.7); --f1: #7a5a1c; --f2: #c9a14c; --f3: #fff1c2; }
.pc[data-k="skr"]{ --pc-mat: linear-gradient(125deg, #f3f5f7 0%, #c9ced5 26%, #eef1f4 47%, #b4bac3 70%, #e6e9ed 100%); --pc-tex: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 2px, rgba(255,255,255,0) 2px 3px); --pc-tex-o: .9; --pc-print-o: .2; --pc-ink: #121418; --pc-ink2: rgba(18,20,24,.58); }
.pc[data-k="usdc"]{ --pc-mat: radial-gradient(130% 150% at 0% 0%, #3b8bea 0%, #2775ca 36%, #164f9b 74%, #0c346d 100%); --pc-tex-o: .28; --pc-print-o: .26; --pc-ink: #fff; --pc-ink2: rgba(255,255,255,.74); }

/* ---- How to get each one (on /perks/) ---- */
.pk-how{ margin-top: 140px; }
.pk-how h2{ font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.pk-rows{ list-style: none; margin-top: 28px; border-bottom: 1px solid var(--line); }
.pk-row{ display: grid; grid-template-columns: minmax(200px, 260px) minmax(180px, 280px) minmax(0, 1fr); gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
.pk-name{ display: flex; align-items: center; gap: 12px; min-height: 27px; font-weight: 600; font-size: 17px; line-height: 27px; color: var(--ink); }
.pk-what{ font-weight: 600; font-size: 17px; line-height: 27px; color: var(--ink); }
.pk-text{ font-size: 16px; line-height: 27px; color: var(--ink-2); max-width: 40em; }
.pk-text a{ color: var(--cf); font-weight: 600; white-space: nowrap; }
.pk-text a:hover{ text-decoration: underline; text-underline-offset: 4px; }
.pg-logo{ width: 24px; height: 24px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pg-logo img{ width: 100%; height: 100%; object-fit: cover; }
.pg-logo img.skr{ background: #000; }
.pg-logo--sol{ background: #000; }
.pg-logo--sol svg{ width: 12px; height: 10px; }
.pg-logo--earn img{ width: 20px; height: 20px; object-fit: cover; object-position: 0 50%; }
.pg-logo--eyca img{ width: 18px; height: 18px; object-fit: contain; }

.pg-more{ margin-top: 48px; }

@media (max-width: 1000px){
  .wal{ margin-top: 40px; }
  .wal-d{ position: static; width: auto; margin: 22px 0 8px; }
  .wal-ben{ font-size: clamp(32px, 8vw, 44px); }
  .pk-how{ margin-top: 96px; }
  .pk-row{ grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce){
  .wal-slot, .pc{ transition: none; }
  .wal-slot.sel .wal-d{ animation: none; }
}
