/* Scene "cardlink" · Card linking (US hero, Figma Homepage section 14819:51998: frames 14810:47442, 14807:26401, 14807:46847).
   The Figma frames are 798×710; here they sit centred in the 798×854 artboard (Figma y + 72). Scoped under
   [data-scene="cardlink"], classes prefixed "cl-". */

/* everything moves together on the exit (.cl-stage) and breathes gently while the result holds (.cl-float) */
[data-scene="cardlink"] .cl-stage, [data-scene="cardlink"] .cl-float { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- the cards: 504.9×312.6, radius 19.234, in stage coordinates
   (the stage is scaled ×0.93, so on screen they are 470×291, as Figma 14810:47570). Laid out at the first frame: centred
   on (403, 427.5) on screen = (150.85, 271.2) in the stage; GSAP moves each one with x / y / rotation to the fan and into
   the wallet. */
[data-scene="cardlink"] .cl-cards { position: absolute; inset: 0; z-index: 2;
  clip-path: inset(-400px -400px -400px -400px round 0px 0px 78px 78px);
  /* the soft bottom under the pocket: opaque down to --fa, transparent from --fb (the timeline sets both) */
  --fa: 1400px; --fb: 1401px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--fa), transparent var(--fb));
          mask-image: linear-gradient(to bottom, #000 0, #000 var(--fa), transparent var(--fb)); }
[data-scene="cardlink"] .cl-card { position: absolute; left: 150.85px; top: 271.2px; width: 504.9px; height: 312.6px;
  border-radius: 19.234px; overflow: hidden; transform-origin: 50% 50%; will-change: transform, opacity, filter;
  box-shadow: 0 12px 40px rgba(32, 49, 71, .10); }
[data-scene="cardlink"] .cl-card--visa { background: #6ca7a7; z-index: 3; }
[data-scene="cardlink"] .cl-card--amex { background: #0078ff; z-index: 2; }
[data-scene="cardlink"] .cl-card--mc   { background: #296b69; z-index: 1; }
[data-scene="cardlink"] .cl-card > img { position: absolute; }
[data-scene="cardlink"] .cl-nfc { left: 23.6px; top: 21.9px; width: 19.7px; height: 24.34px; }
[data-scene="cardlink"] .cl-brand--visa { left: 375.6px; top: 239.7px; width: 110.62px; height: 55.05px; }
[data-scene="cardlink"] .cl-brand--amex { left: 377.3px; top: 237px; width: 107.02px; height: 60.2px; transform: rotate(-1.2deg); }
[data-scene="cardlink"] .cl-brand--mc   { left: 411.7px; top: 239.8px; width: 69.7px; height: 54.13px; }
/* the holder (Figma: Inter 25, semibold name, the type at 75%) */
[data-scene="cardlink"] .cl-who { position: absolute; left: 30.78px; bottom: 15.54px; display: flex; flex-direction: column; gap: 5.77px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 25px; line-height: 30.775px;
  color: #fff; white-space: nowrap; }
[data-scene="cardlink"] .cl-who b { font-weight: 600; }
[data-scene="cardlink"] .cl-who span { font-weight: 500; opacity: .75; }
/* the Visa's holder (updated Figma 14810:47576): APK Protocol, dark teal on the card, 1 px apart */
[data-scene="cardlink"] .cl-card--visa .cl-who { font-family: "APK Protocol", system-ui, sans-serif; color: #2a7070; gap: 1px; }
[data-scene="cardlink"] .cl-card--visa .cl-who span { font-weight: 400; }
/* the network pill each card shows once it sits in the wallet (Figma "Payment Icon": 68×26, radius 8.2) */
[data-scene="cardlink"] .cl-pill { position: absolute; left: 404px; top: 18.5px; width: 68px; height: 26px; border-radius: 8.209px;
  display: flex; align-items: center; justify-content: center; transform-origin: 50% 50%; }
[data-scene="cardlink"] .cl-card--visa .cl-pill { background: #296b69; }
[data-scene="cardlink"] .cl-card--amex .cl-pill { background: #0c5ab2; }
[data-scene="cardlink"] .cl-card--mc   .cl-pill { background: #6ca7a7; }
[data-scene="cardlink"] .cl-pill img { display: block; }

/* ---------------------------------------------------------------- "Link a card" (updated Figma 14810:47857): a frosted white pill,
   outside the scaled stage (artboard coordinates, as Figma: centred on x 525.54, top 203); the script centres it */
[data-scene="cardlink"] .cl-link { position: absolute; left: 400px; top: 203px; z-index: 4; display: flex; align-items: center;
  padding: 7.125px 32px 7.125px 12px; background: rgba(255, 255, 255, .71); border-radius: 72px;
  -webkit-backdrop-filter: blur(5.45px); backdrop-filter: blur(5.45px); transform-origin: 50% 50%; will-change: transform, opacity, filter; }
[data-scene="cardlink"] .cl-link__ico { position: relative; flex: none; width: 52.082px; height: 52.082px; }
[data-scene="cardlink"] .cl-link__ico img { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-scene="cardlink"] .cl-link p { font-size: 24.937px; font-weight: 400; line-height: 1.1; letter-spacing: -.249px; color: #353331; white-space: nowrap; }

/* ---------------------------------------------------------------- the wallet: the travel scene's wallet (616×462),
   scaled to this frame's 551.9 width (×0.8956) at (124, 220). Back | the cards | the frosted front pocket. */
[data-scene="cardlink"] .cl-walgrp { position: absolute; inset: 0; transform-origin: 50% 60%; }
[data-scene="cardlink"] .cl-walgrp--back { z-index: 1; }
[data-scene="cardlink"] .cl-walgrp--front { z-index: 3; }
[data-scene="cardlink"] .cl-wal { position: absolute; left: 124px; top: 220px; width: 616px; height: 461.976px;
  transform: scale(.8956); transform-origin: 0 0; }
[data-scene="cardlink"] .cl-wal__back { position: absolute; left: -1px; top: 0; width: 617px; height: 461.976px; }
[data-scene="cardlink"] .cl-front { position: absolute; left: -32.93px; top: 204.92px; width: 681.993px; height: 288.451px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  clip-path: path('M498.483 26.0846C494.817 26.0846 491.127 26.0846 487.461 26.1086C484.37 26.1325 481.279 26.1565 478.188 26.2523C471.454 26.444 464.649 26.8274 457.988 28.0255C451.231 29.2475 444.929 31.2363 438.795 34.3513C438.004 34.7586 421.112 42.4263 405.92 66.0523C394.395 83.9994 371.967 103.025 340.553 103.025C309.164 103.025 286.736 83.9994 275.187 66.0523C259.204 41.1563 240.97 33.6804 242.287 34.3513C236.153 31.2124 229.852 29.2236 223.094 28.0255C216.433 26.8274 209.628 26.42 202.895 26.2523C199.804 26.1804 196.713 26.1325 193.622 26.1086C189.956 26.0846 186.266 26.0846 182.6 26.0846H32.930V177.360C32.930 180.404 32.930 183.447 32.954 186.490C32.978 189.054 33.002 191.617 33.074 194.181C33.218 199.764 33.553 205.395 34.535 210.906C35.542 216.513 37.195 221.737 39.783 226.817C42.347 231.801 45.654 236.377 49.631 240.355C53.585 244.333 58.161 247.663 63.169 250.203C68.273 252.791 73.473 254.444 79.080 255.451C84.591 256.433 90.222 256.769 95.805 256.912C98.369 256.984 100.933 257.008 103.496 257.032C106.540 257.056 109.583 257.056 112.626 257.056L147.585 257.032L115.046 257.056L566.814 257.056L534.275 257.032L569.234 257.056C572.277 257.056 575.321 257.056 578.364 257.032C580.927 257.008 583.491 256.984 586.055 256.912C591.638 256.769 597.269 256.433 602.780 255.451C608.387 254.444 613.611 252.791 618.691 250.203C623.675 247.639 628.251 244.333 632.229 240.355C636.207 236.401 639.537 231.825 642.077 226.817C644.665 221.737 646.318 216.513 647.325 210.906C648.307 205.395 648.642 199.764 648.786 194.181C648.858 191.617 648.882 189.054 648.906 186.490C648.930 183.447 648.930 180.404 648.930 177.360L648.930 171.011V26.0846H498.483Z'); }
[data-scene="cardlink"] .cl-front > img { position: absolute; inset: 0; width: 100%; height: 100%; }
