/* Illustrations for the Share, Backup and Native tiles. Built by bento-art.js from the same country outlines as the globe.
   Rules from the README still hold: Satoshi up to Medium (500), no pure white (cream #d8d8cb), subtle glows.
   Each scene lives in a fixed-size .ba-stage that bento-art.js scales to fit its tile (--s), so nothing is cropped at any width.
   Class names here are global: mockups.css owns .dev/.stage, so the Backup phones are .pdev and the stage is .ba-stage. */

.t-share, .t-sync, .t-native { --tp: 28px; min-height: 560px; }

.t-share > p, .t-sync > p, .t-native > p { margin-bottom: 18px; }
.art { position: relative; flex: none; height: 420px; margin: auto calc(var(--tp) * -1) calc(var(--tp) * -1); overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; font-weight: 400; }
.art *, .art *::before, .art *::after { box-sizing: border-box; }
.art b, .art i, .art em, .art button { font-weight: 500; font-style: normal; }
.art button { font-family: inherit; }
.art canvas { display: block; }

.ba-stage { position: absolute; z-index: 1; left: 50%; top: calc(50% + var(--pt, 0px) / 2); width: var(--sw); height: var(--sh); margin: calc(var(--sh) / -2) 0 0 calc(var(--sw) / -2); transform: scale(var(--s, 1)); transform-origin: 50% 50%; }

/* 2026-11-09: the three scenes sit straight on the card. No panel of their own: no background, no hairline on top, no ring outlines. */
.art-share, .art-sync, .art-native { color: var(--fg); background: none; box-shadow: none; }

/* ───────── Share: a deck of the app's own story cards (cropped from its Share screen, img/app/s-*.webp, rounded with alpha) ───────── */
.art-share .ba-stage { --sw: 360px; --sh: 388px; perspective: 1000px; }
.deck { position: absolute; left: 92px; top: 18px; width: 176px; height: 313px; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transform: translateX(var(--dx, 0px)); }
.art-share.sharing { --dx: -70px; }
.floor { position: absolute; left: 62px; top: 316px; width: 236px; height: 42px; background: radial-gradient(closest-side, rgba(2, 13, 27, 0.42), transparent); filter: blur(6px); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transform: translateX(var(--dx, 0px)); pointer-events: none; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.35s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
/* the picture has its own rounded corners (9% x 5.05% of the card, like the app's), the clip and the rim follow them */
.scard { position: absolute; left: 0; top: 0; width: 176px; height: 313px; overflow: hidden; border-radius: 9% / 5.05%; transform-origin: 50% 80%; cursor: default;
  box-shadow: 0 34px 46px -24px rgba(2, 13, 27, 0.5), 0 8px 18px -10px rgba(2, 13, 27, 0.3);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.6s ease; }
.scard img { display: block; width: 100%; height: 100%; max-width: none; border-radius: inherit; pointer-events: none; -webkit-user-drag: none; }
.scard::before { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(216, 216, 203, 0.5), rgba(216, 216, 203, 0) 30%, rgba(216, 216, 203, 0) 68%, rgba(216, 216, 203, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.scard::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(216, 216, 203, 0.16) 50%, transparent 62%); transform: translateX(-130%); }
.scard.shine::after { transition: transform 1s ease; transform: translateX(130%); }
/* three on show, two waiting behind the front card; the cards at the sides are the same pictures, just a step further back */
.scard[data-pos="0"] { z-index: 5; cursor: pointer; }
.scard[data-pos="1"] { z-index: 4; cursor: pointer; transform: translate3d(76px, 14px, -80px) rotate(6.5deg) scale(0.88); filter: brightness(0.8) saturate(0.88); }
.scard[data-pos="2"] { z-index: 3; cursor: pointer; transform: translate3d(-76px, 14px, -80px) rotate(-6.5deg) scale(0.88); filter: brightness(0.8) saturate(0.88); }
.scard[data-pos="3"], .scard[data-pos="4"] { z-index: 1; opacity: 0; pointer-events: none; transform: translate3d(0, 16px, -140px) scale(0.82); }
.scard[data-pos="1"]:hover, .scard[data-pos="2"]:hover { filter: brightness(0.94) saturate(1); }
.art-share.sharing .scard:not([data-pos="0"]) { opacity: 0; }
.tapdot { position: absolute; z-index: 6; left: 50%; top: 56%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 216, 203, 0.38), rgba(216, 216, 203, 0.08) 70%, transparent); opacity: 0; pointer-events: none; }
.scard.tap .tapdot { animation: art-tap 0.6s ease-out; }

.sheet { position: absolute; z-index: 4; left: 214px; top: 46%; display: grid; gap: 8px; width: 124px; transform: translateY(-50%); pointer-events: none; }
.sheet .row { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 7px; border-radius: 99px; font-size: 12.5px; color: var(--fg); white-space: nowrap;
  background: linear-gradient(180deg, rgba(232, 232, 222, 0.9), rgba(220, 220, 207, 0.72)); border: 1px solid var(--border-2); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(240, 240, 232, 0.8), 0 14px 26px -14px rgba(2, 13, 27, 0.45);
  opacity: 0; transform: translateX(-22px) scale(0.9); transition: opacity 0.3s ease, transform 0.3s ease; }
.art-share.sharing .sheet .row { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.3, 1.35, 0.4, 1); transition-delay: calc(var(--k) * 90ms + 180ms); }
.sheet .ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(2, 13, 27, 0.08); transition: background-color 0.3s ease, color 0.3s ease; }
.sheet .ic svg { width: 13px; height: 13px; }
.sheet .row.saved .ic { background: #020d1b; color: #d8d8cb; }

/* which card of the deck is in front */
.dots { position: absolute; z-index: 2; left: 0; right: 0; top: 362px; display: flex; justify-content: center; gap: 6px; pointer-events: none; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transform: translateX(var(--dx, 0px)); }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(2, 13, 27, 0.2); transition: width 0.45s cubic-bezier(0.3, 1.2, 0.4, 1), background-color 0.35s ease; }
.dots i.on { width: 20px; background: #020d1b; }

/* ───────── Backup: your passport follows you ───────── */
.art-sync .ba-stage { --sw: 360px; --sh: 388px; display: flex; flex-direction: column; align-items: center; }
.status { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px 0 10px; border-radius: 99px; font-size: 12px; color: var(--muted); background: rgba(2, 13, 27, 0.05); border: 1px solid var(--border); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #8d96a0; transition: background-color 0.3s ease; }
.status.busy i { background: #020d1b; animation: art-pulse 0.9s ease-in-out infinite; }
.status.ok i { background: #020d1b; }
.sync-diagram { position: relative; flex: none; width: 360px; height: 238px; margin-top: 12px; }
.sync-diagram svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: rgba(2, 13, 27, 0.3); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.wires circle { fill: #020d1b; filter: drop-shadow(0 0 4px rgba(2, 13, 27, 0.35)); }
.pdev { position: absolute; top: 12px; width: 114px; margin: 0; }
.pdev.a { left: 16px; }
.pdev.b { right: 16px; }
.pdev .bezel { position: relative; width: 114px; height: 242px; padding: 3.5px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(140deg, #8d9096 0%, #4a4f57 9%, #171a20 34%, #101318 62%, #2b3038 88%, #6f737a 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(216, 216, 203, 0.16);
  -webkit-mask-image: linear-gradient(#000 0, #000 68%, transparent 90%); mask-image: linear-gradient(#000 0, #000 68%, transparent 90%);
  transition: transform 0.8s cubic-bezier(0.3, 1.3, 0.4, 1); }
.pdev.a .bezel { transform: rotate(-3deg); transform-origin: 50% 100%; }
.pdev.b .bezel { transform: rotate(3deg); transform-origin: 50% 100%; }
.pdev .bezel img { position: absolute; left: 3.5px; top: 3.5px; display: block; width: 107px; height: 235px; max-width: none; object-fit: cover; object-position: top; border-radius: 20.5px; transition: opacity 0.9s ease; }
.pdev .bezel img.e { z-index: 1; }
.pdev.b.on .bezel img.e { opacity: 0; }
.pdev.b.on .bezel { transform: rotate(3deg) translateY(-4px); }
.pdev .bezel .isl { position: absolute; z-index: 4; top: 9px; left: 50%; width: 32px; height: 9.5px; margin-left: -16px; border-radius: 99px; background: #000; }
.pdev figcaption { position: absolute; left: -10px; right: -10px; top: 214px; font-size: 11.5px; text-align: center; color: var(--faint); white-space: nowrap; }
.pdev.b figcaption { transition: color 0.6s ease; }
.pdev.b.on figcaption { color: var(--muted); }
.cloud { position: absolute; left: 146px; top: 36px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #d8d8cb;
  background: radial-gradient(120% 120% at 30% 15%, #2c4a68 0%, #091e34 50%, #020d1b 100%); box-shadow: inset 0 1px 0 rgba(216, 216, 203, 0.34), inset 0 -8px 14px rgba(0, 6, 12, 0.4), 0 16px 28px -10px rgba(2, 13, 27, 0.65); transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.4, 1), box-shadow 0.4s ease; }
.cloud svg { grid-area: 1 / 1; width: 28px; height: 28px; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.4, 0.4, 1); }
.cloud .tick { opacity: 0; transform: scale(0.5); }
.cloud.done { box-shadow: inset 0 1px 0 rgba(216, 216, 203, 0.34), inset 0 -8px 14px rgba(0, 6, 12, 0.4), 0 0 0 5px rgba(2, 13, 27, 0.12), 0 16px 28px -10px rgba(2, 13, 27, 0.65); transform: scale(1.06); }
.cloud.done .up { opacity: 0; transform: scale(0.5); }
.cloud.done .tick { opacity: 1; transform: none; }
.cloud::before, .cloud::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(2, 13, 27, 0.5); opacity: 0; pointer-events: none; }
.cloud.syncing::before { animation: art-ring 1.5s ease-out infinite; }
.cloud.syncing::after { animation: art-ring 1.5s ease-out 0.5s infinite; }
.signin2 { position: relative; display: grid; gap: 8px; width: 308px; margin-top: auto; }
.si { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 14px; font-size: 14.5px; cursor: pointer; overflow: hidden;
  transition: transform 0.2s ease, opacity 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease; }
.si.apple { color: #d8d8cb; background: linear-gradient(180deg, #071a34, #020d1b); box-shadow: inset 0 1px 0 rgba(216, 216, 203, 0.16), 0 10px 18px -12px rgba(2, 13, 27, 0.7); }
.si.google { color: var(--fg); background: rgba(228, 228, 217, 0.55); border-color: var(--border-2); box-shadow: inset 0 1px 0 rgba(240, 240, 232, 0.6), 0 8px 16px -14px rgba(2, 13, 27, 0.5); }
.si .lg { flex: none; width: 17px; height: 17px; }
.si .spin { display: none; flex: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: art-spin 0.7s linear infinite; }
.si.busy .lg, .si.done .lg { display: none; }
.si.busy .spin { display: inline-block; }
.si .ok { display: none; flex: none; width: 17px; height: 17px; }
.si.done .ok { display: block; }
.si.press { transform: scale(0.975); }
.si.done { color: #d8d8cb; background: #020d1b; border-color: transparent; }
.si.dim { opacity: 0.4; }
.si:hover:not(.busy):not(.done) { border-color: rgba(2, 13, 27, 0.3); }

/* ───────── Native: two phones, light and dark, real captures with the real iOS tab bar ───────── */
.art-native .ba-stage { --sw: 340px; --sh: 410px; perspective: 1100px; }
.art-native .ba-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: 460px; height: 460px; margin: -230px 0 0 -230px; background: radial-gradient(closest-side, rgba(238, 238, 229, 0.7), transparent 72%); pointer-events: none; }
.nfloor { position: absolute; left: 14px; top: 380px; width: 312px; height: 36px; background: radial-gradient(closest-side, rgba(2, 13, 27, 0.4), transparent); filter: blur(7px); pointer-events: none; }
/* the phones are drawn 144 x 300 and shown a tenth bigger; they stand at different heights and drift a few points, out of step with each other */
.nph { position: absolute; width: 144px; height: 300px; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) scale(1.1); transition: transform 0.4s ease-out; animation: art-float 7s ease-in-out infinite; }
.nph.l { left: 13px; top: 79px; }
.nph.r { left: 183px; top: 29px; animation-delay: -3.5s; }
.nbody { position: relative; width: 100%; height: 100%; padding: 5px; border-radius: 26px;
  /* same titanium as the story phones (mockups.css): conic rim highlights, light from the top left, antenna splits */
  background:
    linear-gradient(#0a0c10, #0a0c10) left 0 top 15% / 5px 2.5px no-repeat,
    linear-gradient(#0a0c10, #0a0c10) left 0 bottom 15% / 5px 2.5px no-repeat,
    linear-gradient(#0a0c10, #0a0c10) right 0 top 15% / 5px 2.5px no-repeat,
    linear-gradient(#0a0c10, #0a0c10) right 0 bottom 15% / 5px 2.5px no-repeat,
    linear-gradient(142deg, rgba(216, 216, 203, 0.26) 0%, rgba(216, 216, 203, 0) 24%, rgba(0, 0, 0, 0) 70%, rgba(216, 216, 203, 0.1) 100%),
    conic-gradient(from 0deg at 50% 50%, #9da2aa 0deg, #5d626b 18deg, #2a2e35 46deg, #20242a 90deg, #343840 128deg, #8d929a 164deg, #aeb2b8 180deg, #7f848c 196deg, #373b42 232deg, #1f2227 272deg, #2c3036 312deg, #6a6f78 344deg, #9da2aa 360deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(216, 216, 203, 0.22), inset 0 0 4px rgba(0, 0, 0, 0.5), 0 34px 44px -22px rgba(2, 13, 27, 0.55), 0 2px 8px rgba(2, 13, 27, 0.25); }
.nbody::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 4;
  background: linear-gradient(135deg, rgba(216, 216, 203, 0.55), rgba(216, 216, 203, 0) 26%, rgba(216, 216, 203, 0) 68%, rgba(216, 216, 203, 0.26));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.nbody::after { content: ""; position: absolute; inset: 3.5px; border-radius: 23px; background: #020307; z-index: 0; }
/* hardware buttons: metal pills that stand 3px proud of the rim (the extra 1px covers the rim's black outline) */
.nbody .pb { position: absolute; width: 4px; }
.nbody .act, .nbody .vup, .nbody .vdn { left: -3px; border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 24%, rgba(216, 216, 203, 0.1) 50%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, 0.5)), linear-gradient(90deg, #a2a7ae 0, #6c717a 20%, #3b3f46 55%, #181b20 100%);
  box-shadow: inset 0.8px 0 0 rgba(216, 216, 203, 0.35), -0.8px 0 0 rgba(0, 0, 0, 0.5); }
.nbody .pwr { right: -3px; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 24%, rgba(216, 216, 203, 0.1) 50%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, 0.5)), linear-gradient(270deg, #a2a7ae 0, #6c717a 20%, #3b3f46 55%, #181b20 100%);
  box-shadow: inset -0.8px 0 0 rgba(216, 216, 203, 0.35), 0.8px 0 0 rgba(0, 0, 0, 0.5); }
.nbody .act { top: 58px; height: 14px; }
.nbody .vup { top: 82px; height: 24px; }
.nbody .vdn { top: 112px; height: 24px; }
.nbody .pwr { top: 96px; height: 38px; }
.nscreen { position: relative; z-index: 1; width: 134px; height: 290px; border-radius: 21px; overflow: hidden; background: #010b19; }
.nscreen::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(118deg, rgba(216, 216, 203, 0.12) 0%, rgba(216, 216, 203, 0) 26%, rgba(216, 216, 203, 0) 72%, rgba(216, 216, 203, 0.04) 100%); }
.nscreen .island { position: absolute; z-index: 3; top: 6px; left: 50%; width: 39px; height: 11.5px; margin-left: -19.5px; border-radius: 99px; background: radial-gradient(circle at 82% 50%, rgba(90, 140, 255, 0.55) 0 2%, rgba(0, 0, 0, 0) 5%), radial-gradient(circle at 82% 50%, #16233f 0 5%, rgba(0, 0, 0, 0) 11%), #000205; }
.nscreen .ml { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.5s ease; }
.nscreen .ml.on { opacity: 1; }
/* the place sheet rises over the map; its scrolled state just fades in */
.nscreen .ml.sh { transform: translateY(5%); transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nscreen .ml.sh.on { transform: none; }
/* invisible hit areas right over the real tab bar in the captures */
.nzone { position: absolute; z-index: 5; left: 18%; width: 64%; top: 90.2%; height: 8.4%; display: flex; touch-action: none; border-radius: 99px; }
.nzone button { flex: 1; padding: 0; border: 0; border-radius: 99px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nzone button:focus-visible { outline: 2px solid rgba(90, 134, 184, 0.9); outline-offset: -2px; }
.ntap { position: absolute; z-index: 6; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(110, 130, 160, 0.34); box-shadow: 0 0 0 1px rgba(110, 130, 160, 0.5); opacity: 0; pointer-events: none; }
.ntap.go { animation: art-tap 0.6s ease-out; }

@keyframes art-float { 50% { translate: 0 -5px; } }
@keyframes art-pulse { 50% { opacity: 0.35; } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes art-tap { 0% { opacity: 1; transform: scale(0.35); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 1020px) {
  .t-share, .t-sync, .t-native { min-height: 540px; }
}
@media (max-width: 760px) {
  .t-share, .t-sync, .t-native { --tp: 22px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status.busy i, .cloud.syncing::before, .cloud.syncing::after, .si .spin, .scard.tap .tapdot, .ntap.go, .nph { animation: none; }
}
