/* The hero's big wordmark is the logo on the home page; the small header mark would repeat it. */
.top .mark { visibility: hidden; }
/* appnice.dev home page: the deck of app cards (loaded after style.css, only on / and /en/).
   Each app is a card that sticks near the top while the next slides over it; characters peek over each card's
   top edge, painted panoramas drift behind the text. home.js writes --p, --q and --w on scroll; it toggles
   html.motion (off for prefers-reduced-motion and the on-page switch). */
.pg { font-size: 18px; line-height: 1.6; overflow-x: clip; }

.hint { margin: 72px 0 0; color: #7f7896; font-size: 15px; display: flex; align-items: center; gap: 10px; }

/* The deck: rectangular blocks that stick, each a little lower than the one before. */
.deck { max-width: 1280px; margin: 0 auto; padding: 0 24px 160px; box-sizing: border-box; timeline-scope: --c1, --c2, --c3, --c4, --c5; }
.slot { position: sticky; height: 760px; margin-top: 300px; }
.s1 { top: 24px; view-timeline: --c1 block; }
.s2 { top: 38px; view-timeline: --c2 block; }
.s3 { top: 52px; view-timeline: --c3 block; }
.s4 { top: 66px; view-timeline: --c4 block; }
.s5 { position: relative; top: auto; height: auto; view-timeline: --c5 block; }

.card { position: relative; z-index: 1; height: 100%; box-sizing: border-box; border-radius: 10px; overflow: hidden; padding: 56px 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; box-shadow: 0 -18px 50px -24px rgba(0,0,0,.85), 0 40px 80px -30px rgba(0,0,0,.9); }
.card::after { content: ""; position: absolute; z-index: 5; inset: 0; background: #0b0912; opacity: 0; pointer-events: none; }
.card.flip .text { order: 2; }
.text { position: relative; z-index: 2; }
.icon { width: 64px; height: 64px; border-radius: 28%; display: block; margin-bottom: 18px; }
.card h2 { margin: 0; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.tag { margin: 12px 0 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.body { margin: 16px 0 0; font-size: 17px; }
.pill { display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; border-radius: 12px; border: 2px solid currentColor; text-decoration: none; font-weight: 600; font-size: 16px; }
.store svg { width: 20px; height: 20px; flex: none; }
.vis { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 20px; height: 100%; }
.vis > img { display: block; border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.65); }
.bg { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; }

/* What looks out from behind a card: sits behind it, rises over its top edge. */
.peek { position: absolute; z-index: 0; left: 0; right: 0; top: -250px; height: 310px; pointer-events: none; }
.peek > img, .peek > .swl { position: absolute; bottom: 0; display: block; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }

/* App colours */
.wc { background: #172036; color: #f6efdf; } .wc .body { color: #ccd3e2; } .wc .pill { background: #f2b84b; color: #1b1d33; }
.sw { background: #1f1546; color: #f7f3ff; } .sw .body { color: #d9d0f5; } .sw .pill { background: #ffc83d; color: #22164d; } .sw .store { color: #ffc83d; }
.mi { background: #10304d; color: #f2f8ff; } .mi .body { color: #cfe2f4; } .mi .store { color: #76cbfa; }
.mu { background: #1e1b4b; color: #f5f3ff; } .mu .body { color: #c9c3f2; } .mu .pill { background: #a3e635; color: #1a2e05; } .mu .store { color: #bef264; }

/* War & Cards: a battle behind the card */
.wc-shot { width: 640px; max-width: 100%; border: 2px solid rgba(242,184,75,.3); }
.wc-logo { position: absolute; left: -30px; top: 60px; width: 300px; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.wc .bg { background: radial-gradient(120% 70% at 50% 120%, rgba(200,69,47,.28), transparent 60%), linear-gradient(#172036 40%, #22233a); }
.wc .bg .pano { position: absolute; inset: -3%; background: url(/img/wc-battle.jpg) 50% 60% / cover; }
.wc .bg .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,32,54,.94) 0%, rgba(23,32,54,.78) 38%, rgba(23,32,54,.35) 75%, rgba(23,32,54,.55)), linear-gradient(transparent 55%, rgba(23,32,54,.7)); }
.arr { position: absolute; left: 0; top: 0; width: 110px; height: auto; offset-rotate: auto; opacity: 0; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.arr.a1 { offset-path: path("M -100 560 Q 520 40 1340 420"); }
.arr.a2 { offset-path: path("M -100 640 Q 640 120 1340 560"); }
.arr.a3 { offset-path: path("M -100 500 Q 420 -20 1340 340"); }
.arr.e1 { offset-path: path("M 1340 600 Q 640 60 -100 460"); }
.arr.e2 { offset-path: path("M 1340 520 Q 760 0 -100 380"); }
.wc-p .u1 { left: 2%; height: 190px; } .wc-p .u2 { left: 17%; height: 200px; } .wc-p .u3 { left: 31%; height: 236px; }
.wc-p .u4 { left: 44%; height: 186px; } .wc-p .u5 { left: 62%; height: 180px; } .wc-p .u6 { right: 2%; height: 250px; }
.puff { position: absolute; bottom: 30px; width: 110px; height: auto; opacity: 0; }
.puff.p1 { left: 44%; } .puff.p2 { left: 52%; bottom: 60px; } .puff.p3 { left: 38%; bottom: 46px; }

/* Swooshi: eyes and two apples that meet */
.swl { width: 440px; height: 107px; }
.swl > img.base { position: absolute; inset: 0; width: 440px; height: 107px; }
.eye { position: absolute; border-radius: 50%; overflow: hidden; }
.eye.l { left: 147px; top: 30px; width: 33px; height: 37px; }
.eye.r { left: 208px; top: 29px; width: 32px; height: 37px; }
.pupil { position: absolute; left: 50%; top: 56%; width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.lid { position: absolute; inset: 0; background: linear-gradient(#fdd417, #ffa800); border-bottom: 2px solid #8a2f23; transform-origin: 50% 0; scale: 1 0; }
.sw-p .swl { left: 6%; }
.match { position: relative; width: 300px; height: 300px; flex: none; border-radius: 28px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.match .apl { position: absolute; top: 100px; width: 100px; height: 100px; }
.match .apl.l { left: 0; } .match .apl.r { right: 0; }
.ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 6px solid #ffc83d; opacity: 0; scale: .2; }
.spark { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px; background: #ffc83d; rotate: 45deg; opacity: 0; }
.plus { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-weight: 800; font-size: 40px; color: #ffc83d; opacity: 0; }
.phone { width: 250px; border: 3px solid rgba(255,255,255,.12); }
.drift { position: absolute; width: 54px; opacity: .14; }
.drift.d1 { left: 46%; bottom: -60px; } .drift.d2 { left: 70%; bottom: -60px; width: 40px; } .drift.d3 { left: 88%; bottom: -60px; width: 64px; }

/* Mifi: hello in every language Mifi speaks, braided behind the card */
.mi-p .mouse { right: 8%; height: 290px; }
.wd { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 44px; line-height: 1; white-space: nowrap; offset-rotate: 0deg; opacity: .2; }
.wd.A { offset-path: path("M -260 420 C 40 220, 240 220, 540 420 S 1040 620, 1340 420 S 1840 220, 2000 420"); }
.wd.B { offset-path: path("M -260 420 C 40 620, 240 620, 540 420 S 1040 220, 1340 420 S 1840 620, 2000 420"); }
.wd.k1 { color: #ff6fa5; } .wd.k2 { color: #59c98a; } .wd.k3 { color: #76cbfa; } .wd.k4 { color: #ffc83d; }

/* Mutato: microbes peek over the edge, bubbles rise in the tide pool, a phage drifts across */
/* UI 3.0 dark: purple to navy, with a lime and a sky glow */
.mu .bg .pano { position: absolute; inset: -3%; background: radial-gradient(40% 50% at 22% 45%, rgba(163,230,53,.16), transparent 70%), radial-gradient(45% 55% at 85% 15%, rgba(125,211,252,.14), transparent 70%), linear-gradient(160deg, #2e1065, #1e1b4b 55%, #0f0a2e); }
.mu .bg .shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(15,10,46,.7) 0%, rgba(15,10,46,.45) 38%, rgba(15,10,46,0) 75%, rgba(15,10,46,.2)), linear-gradient(transparent 55%, rgba(15,10,46,.5)); }
/* each microbe's paws sit on the straight cut at the bottom of its art, so the card edge hides only them */
.mu-p .o1 { left: 3%; height: 250px; } .mu-p .o2 { left: 18%; height: 130px; } .mu-p .o3 { left: 36%; height: 200px; }
.mu-p .o4 { right: 24%; height: 140px; } .mu-p .o5 { right: 4%; height: 230px; }
.mu-logo { position: absolute; z-index: 3; left: -10px; top: -28px; width: 260px; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); }
.bub { position: absolute; bottom: -120px; width: 70px; opacity: .55; }
.bub.q1 { left: 8%; } .bub.q2 { left: 26%; width: 40px; } .bub.q3 { left: 48%; width: 56px; } .bub.q4 { left: 66%; width: 32px; }
.mote { position: absolute; width: 34px; opacity: .7; }
.mote.f1 { left: 12%; top: 22%; } .mote.f2 { left: 40%; top: 70%; width: 26px; } .mote.f3 { left: 30%; top: 12%; width: 48px; opacity: .5; }
.phage { position: absolute; left: 0; top: 0; width: 90px; offset-path: path("M -120 160 C 200 60, 380 360, 620 260 S 1000 120, 1400 300"); offset-rotate: 0deg; opacity: .85; }

/* naice city and Legnica: one block, one road through both */
.nl { position: relative; z-index: 1; height: 1580px; border-radius: 10px; overflow: hidden; background: linear-gradient(#154133 0%, #154133 42%, #1c1610 58%, #1c1610 100%); box-shadow: 0 -18px 50px -24px rgba(0,0,0,.85); }
.nl .row { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); align-items: center; padding: 72px 64px; height: 760px; box-sizing: border-box; }
.nl .row .text { grid-column: 1; } .nl .row .vis { grid-column: 3; height: auto; }
.nl .row.lg-row .text { grid-column: 3; grid-row: 1; } .nl .row.lg-row .vis { grid-column: 1; grid-row: 1; }
.nc-row { color: #fbf2e3; } .nc-row .body { color: #d7dfcf; } .nc-row .pill { background: #f9b23b; color: #154133; }
.lg-row { color: #f3eadf; } .lg-row .body { color: #cdbba4; } .lg-row .store { color: #4aa3e8; }
.nl .phone.b, .nl .tablet.b { margin-top: 90px; }
.tablet { width: 280px; border-radius: 16px !important; border: 1px solid rgba(255,255,255,.1); }
.road { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sign { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; height: 60px; }
.sign span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; background: #fbf2e3; color: #154133; border-radius: 999px; font-weight: 700; font-size: 16px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); }
.sign img { width: 30px; height: 30px; border-radius: 9px; }
.walker { position: absolute; z-index: 4; left: 0; top: 0; width: 56px; height: 56px; offset-path: path("M 616 -20 C 520 200, 720 380, 616 560 S 520 900, 616 1080 S 700 1380, 616 1600"); offset-rotate: 0deg; offset-distance: 92%; }
.walker img { width: 56px; height: 56px; border-radius: 30%; box-shadow: 0 10px 20px -6px rgba(0,0,0,.6), 0 0 0 4px #fbf2e3; display: block; }
.cloud { position: absolute; z-index: 1; height: 26px; border-radius: 999px; background: #fbf2e3; opacity: .12; }
.cloud.k1 { top: 60px; width: 160px; } .cloud.k2 { top: 140px; width: 110px; } .cloud.k3 { top: 300px; width: 200px; }
.nc-p .art { left: 6%; height: 260px; }

/* Same treatment as War & Cards for every app: a painted panorama that drifts, a shade under the text, things flying. */
.sw .bg .pano, .mi .bg .pano, .scene .pano { position: absolute; inset: -3%; background-position: 50% 60%; background-size: cover; }
.sw .bg .shade, .mi .bg .shade, .scene .shade { position: absolute; inset: 0; }
.sw .bg .pano { background-image: url(/img/bg-sw-world.jpg); }
.sw .bg .shade { background: linear-gradient(270deg, rgba(31,21,70,.94) 0%, rgba(31,21,70,.78) 38%, rgba(31,21,70,.3) 75%, rgba(31,21,70,.5)), linear-gradient(transparent 55%, rgba(31,21,70,.6)); }
.mi .bg .pano { background-image: url(/img/bg-mifi-world.jpg); }
.mi .bg .shade { background: linear-gradient(90deg, rgba(16,48,77,.94) 0%, rgba(16,48,77,.8) 38%, rgba(16,48,77,.3) 75%, rgba(16,48,77,.45)), linear-gradient(transparent 55%, rgba(16,48,77,.6)); }
.scene { position: absolute; z-index: 0; left: 0; right: 0; height: 50%; overflow: hidden; pointer-events: none; }
.nc-scene { top: 0; } .lg-scene { bottom: 0; }
.nc-scene .pano { background-image: url(/img/bg-naice.jpg); }
.lg-scene .pano { background-image: url(/img/bg-legnica.jpg); }
.nc-scene .shade { background: linear-gradient(90deg, rgba(21,65,51,.94) 0%, rgba(21,65,51,.75) 36%, rgba(21,65,51,.2) 70%, rgba(21,65,51,.35)), linear-gradient(transparent 70%, #154133); }
.lg-scene .shade { background: linear-gradient(270deg, rgba(28,22,16,.94) 0%, rgba(28,22,16,.75) 36%, rgba(28,22,16,.2) 70%, rgba(28,22,16,.35)), linear-gradient(#154133, #1c1610 10%, transparent 30%); }
/* Swooshi: bosses beside the logo, stars popping */
.sw-p .swl { left: 26%; bottom: 46px; }
.sw-p .b1 { left: .5%; height: 160px; } .sw-p .b2 { left: 10%; height: 160px; } .sw-p .b3 { left: 62%; height: 160px; }
.sw-p .b4 { left: 75%; height: 160px; } .sw-p .b5 { right: .5%; height: 160px; }
.star { position: absolute; width: 56px; opacity: 0; }
.star.t1 { left: 8%; top: 14%; } .star.t2 { left: 30%; top: 62%; width: 40px; } .star.t3 { left: 52%; top: 8%; width: 70px; } .star.t4 { left: 18%; top: 36%; width: 34px; }
/* Mifi: the mouse waves and blinks, friends beside her, hello in bubbles behind the phones */
.mi-p .mouse { right: 8%; height: 240px; aspect-ratio: 660 / 520; }
.mi-p .mouse { position: absolute; bottom: 0; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.mi-p .mouse img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mi-p .mouse .wave, .mi-p .mouse .blink { opacity: 0; }
/* bee and ladybird faces sit low in their art: lift them so the card edge hides only the paws */
.mi-p .bee { left: 3%; height: 190px; bottom: 44px; } .mi-p .lady { left: 19%; height: 160px; bottom: 44px; }
.mi .words { position: absolute; inset: 0 0 0 40%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.mi .wd { opacity: 1; color: #10304d; font-size: 30px; padding: 12px 26px 30px; background: url(/img/fx-mifi-bubble.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 8px 12px rgba(0,0,0,.3)); }
.balloon { position: absolute; width: 60px; bottom: -120px; }
.balloon.l1 { left: 58%; } .balloon.l2 { left: 86%; width: 44px; }
.fly { position: absolute; left: 0; top: 0; width: 64px; offset-path: path("M -80 300 C 200 120, 420 420, 700 220 S 1100 80, 1400 260"); offset-rotate: 0deg; }
/* naice and Legnica: landmarks rise over the edge, birds and leaves */
.nc-p .l1 { left: 2%; height: 140px; } .nc-p .l2 { left: 19%; height: 150px; } .nc-p .l3 { right: 22%; height: 240px; } .nc-p .l4 { right: 4%; height: 220px; }
.sun { position: absolute; z-index: 1; right: 6%; top: 70px; width: 170px; }
.bird { position: absolute; z-index: 1; left: 0; top: 0; width: 46px; offset-path: path("M -60 260 C 300 120, 600 320, 900 160 S 1200 120, 1320 200"); offset-rotate: 0deg; }
.bird.b2 { width: 32px; offset-path: path("M -60 1000 C 260 900, 560 1060, 860 940 S 1180 900, 1320 980"); }
.leaf { position: absolute; z-index: 1; top: -40px; width: 28px; opacity: .8; }
.leaf.v1 { left: 30%; } .leaf.v2 { left: 72%; width: 22px; } .leaf.v3 { left: 50%; width: 34px; }
.nl h2 { margin: 0; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.walker { width: 42px; height: 96px; } .walker img { width: 42px; height: 96px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 1px #154133) drop-shadow(0 0 1px #154133) drop-shadow(0 8px 8px rgba(0,0,0,.4)); }


/* Always moving: loops that run on their own, while the page's motion switch is on. */
  @keyframes arc { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
  .arr { animation: arc 3.4s cubic-bezier(.3,.1,.6,1) infinite; }
  .arr.a2 { animation-delay: -1.1s; animation-duration: 3.8s; } .arr.a3 { animation-delay: -2.3s; }
  .arr.e1 { animation-delay: -.6s; animation-duration: 4.1s; } .arr.e2 { animation-delay: -2.8s; animation-duration: 3.6s; }
  @keyframes march { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  @keyframes pan { from { transform: scale(1.04) translateX(-1.5%); } to { transform: scale(1.1) translateX(1.5%); } }
  .wc .bg .pano { animation: pan 24s ease-in-out infinite alternate; }
  .wc-p > img { animation: march 2.6s ease-in-out infinite; } .wc-p > img:nth-child(2n) { animation-delay: -1.3s; } .wc-p > img:nth-child(3n) { animation-duration: 3.1s; }
  @keyframes puff { 0% { opacity: 0; scale: .3; } 15% { opacity: .9; scale: 1; } 60% { opacity: .5; scale: 1.4; } 100% { opacity: 0; scale: 1.8; translate: 0 -40px; } }
  .puff { animation: puff 2.4s ease-out infinite; } .puff.p2 { animation-delay: -.8s; } .puff.p3 { animation-delay: -1.6s; }
  @keyframes look { from { translate: -6px 0; } to { translate: 6px 0; } }
  .pupil { animation: look 2.6s ease-in-out infinite alternate; }
  @keyframes blink { 0%, 90%, 100% { scale: 1 0; } 94% { scale: 1 1; } }
  .lid { animation: blink 4.5s infinite; }
  @keyframes up { from { translate: 0 0; rotate: -8deg; } to { translate: 0 -900px; rotate: 14deg; } }
  .drift { animation: up 14s linear infinite; } .drift.d2 { animation-delay: -5s; animation-duration: 18s; } .drift.d3 { animation-delay: -9s; animation-duration: 16s; }
  @keyframes braid { from { offset-distance: 0%; } to { offset-distance: 100%; } }
  .wd { animation: braid 32s linear infinite; }
  @keyframes sway { 0%, 100% { rotate: 4deg; } 50% { rotate: -3deg; } }
  .mi-p .mouse { transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite; }
  @keyframes dash { to { stroke-dashoffset: -40; } }
  .road .mid { animation: dash 1.6s linear infinite; }
  @keyframes float { from { translate: -260px 0; } to { translate: 1500px 0; } }
  .cloud { animation: float 40s linear infinite; } .cloud.k2 { animation-delay: -16s; animation-duration: 52s; } .cloud.k3 { animation-delay: -30s; animation-duration: 64s; }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
  .walker img { animation: bob .7s ease-in-out infinite; }

  .sw .bg .pano, .mi .bg .pano, .scene .pano { animation: pan 26s ease-in-out infinite alternate; } .lg-scene .pano { animation-delay: -13s; }
  .sw-p > img, .mi-p > img, .mi-p > .mouse, .nc-p > img { animation: march 2.6s ease-in-out infinite; }
  .sw-p > img:nth-child(2n), .mi-p > :nth-child(2n), .nc-p > img:nth-child(2n) { animation-delay: -1.3s; }
  @keyframes twinkle { 0%, 60%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 70% { opacity: 1; scale: 1.1; } 85% { opacity: .9; scale: 1; rotate: 30deg; } }
  .star { animation: twinkle 3.2s ease-out infinite; } .star.t2 { animation-delay: -.8s; } .star.t3 { animation-delay: -1.7s; } .star.t4 { animation-delay: -2.4s; }
  @keyframes wave { 0%, 38%, 62%, 100% { opacity: 0; } 42%, 58% { opacity: 1; } }
  @keyframes blinkimg { 0%, 84%, 90%, 100% { opacity: 0; } 86%, 88% { opacity: 1; } }
  .mi-p .mouse .wave { animation: wave 7s infinite; } .mi-p .mouse .blink { animation: blinkimg 7s infinite; }
  @keyframes balloon-rise { from { translate: 0 0; } to { translate: 30px -1000px; } }
  .balloon { animation: balloon-rise 22s linear infinite; } .balloon.l2 { animation-delay: -11s; animation-duration: 28s; }
  @keyframes flit { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
  /* one-pose bird: a slow glide (rise and tilt), never a horizontal squish, which reads as flipping */
  @keyframes glide { 0%, 100% { translate: 0 0; rotate: -5deg; } 50% { translate: 0 -10px; rotate: 4deg; } }
  .fly { animation: flit 16s linear infinite; } .fly.f2 { animation-delay: -8s; animation-duration: 19s; }
  .bird { animation: flit 14s linear infinite, glide 2.6s ease-in-out infinite; } .bird.b2 { animation-delay: -6s, -1.3s; animation-duration: 18s, 3.1s; }
  @keyframes fall { from { translate: 0 0; rotate: 0deg; } to { translate: -80px 1700px; rotate: 540deg; } }
  .leaf { animation: fall 18s linear infinite; } .leaf.v2 { animation-delay: -7s; animation-duration: 22s; } .leaf.v3 { animation-delay: -13s; animation-duration: 20s; }
  .mu .bg .pano { animation: pan 26s ease-in-out infinite alternate; }
  .mu-p > img { animation: march 2.6s ease-in-out infinite; } .mu-p > img:nth-child(2n) { animation-delay: -1.3s; }
  @keyframes bubble { from { translate: 0 0; } 50% { translate: 18px -450px; } to { translate: -6px -900px; } }
  .bub { animation: bubble 12s linear infinite; } .bub.q2 { animation-delay: -4s; animation-duration: 9s; } .bub.q3 { animation-delay: -7s; animation-duration: 14s; } .bub.q4 { animation-delay: -2s; animation-duration: 10s; }
  @keyframes jiggle { 0%, 100% { translate: 0 0; rotate: 0deg; } 33% { translate: 8px -6px; rotate: 20deg; } 66% { translate: -6px 5px; rotate: -15deg; } }
  .mote { animation: jiggle 5s ease-in-out infinite; } .mote.f2 { animation-delay: -2s; } .mote.f3 { animation-duration: 7s; }
  @keyframes tumble { 0%, 100% { rotate: -10deg; } 50% { rotate: 14deg; } }
  .phage { animation: flit 22s linear infinite, tumble 3.4s ease-in-out infinite; }
  @keyframes bobsun { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  .sun { animation: bobsun 6s ease-in-out infinite; }
html:not(.motion) .pg * { animation: none !important; }

/* Front-view traveller: walks toward the viewer, down the road as the page scrolls down. */
@media (max-width: 1279px) { .walker { display: none; } }

@media (max-width: 820px) {
  .deck { padding: 0 12px 120px; }
  .slot { position: relative; top: auto; height: auto; margin-top: 200px; }
  .card { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; }
  .card.flip .text { order: 0; }
  .card h2 { font-size: 46px; }
  .vis { height: auto; flex-wrap: wrap; }
  .phone { width: 46%; } .tablet { width: 46%; } .wc-logo { width: 46%; left: 0; top: -20px; }
  /* Phones: the card is too short for the match box below the screenshot, so the apples meet over the screenshot instead. */
  .match { position: absolute; z-index: 3; left: 50%; top: 32%; width: 320px; height: 120px; margin-left: -160px; background: none; box-shadow: none; --tx: 125px; }
  .match .apl { top: 25px; width: 70px; height: 70px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
  .wd { font-size: 30px; }
  .peek { top: -170px; height: 210px; }
  .wc-p .u3, .wc-p .u4, .wc-p .u5 { display: none; }
  .wc-p .u1 { left: 2%; height: 116px; } .wc-p .u2 { left: 36%; height: 120px; } .wc-p .u6 { right: 2%; height: 150px; }
  .arr { width: 80px; } .puff { width: 80px; }
  .mi-p .mouse { height: 210px; right: 4%; } .nc-p .art { height: 170px; }
  .sw-p .swl { scale: .7; transform-origin: 0 100%; left: 4%; }
  .sw-p .swl { scale: .55; left: 2%; bottom: 40px; }
  .sw-p .b1, .sw-p .b2, .sw-p .b3, .sw-p .b4 { display: none; } .sw-p .b5 { height: 110px; right: 2%; }
  .mi-p .mouse { height: 170px; right: 2%; } .mi-p .bee { height: 120px; left: 2%; bottom: 34px; } .mi-p .lady { display: none; }
  .mi .words { left: 0; opacity: .6; } .mi .wd { font-size: 22px; }
  .mu-p .o2, .mu-p .o4 { display: none; } .mu-p .o1 { height: 160px; left: 2%; } .mu-p .o3 { height: 130px; left: 38%; } .mu-p .o5 { height: 150px; right: 2%; }
  .mu .bg .shade { background: linear-gradient(rgba(15,10,46,.2), rgba(15,10,46,.5) 30%, rgba(15,10,46,.6)); }
  .mu-logo { width: 46%; left: 0; top: -20px; } .bub { width: 44px; opacity: .3; } .mote { opacity: .35; } .phage { opacity: .45;  width: 60px; offset-path: path("M -80 200 C 120 120, 260 260, 460 160"); }
  .nc-p .l1, .nc-p .l4 { display: none; } .nc-p .l2 { left: 2%; height: 100px; } .nc-p .l3 { right: 2%; height: 160px; }
  .sun { width: 110px; top: 24px; }
  .bird { offset-path: path("M -60 200 C 120 120, 260 260, 460 160"); } .bird.b2 { offset-path: path("M -60 1200 C 120 1120, 260 1260, 460 1160"); }
  .scene .pano { background-position: 60% 70%; }
  .nl h2 { font-size: 46px; }
  .sw .bg .shade { background: linear-gradient(rgba(31,21,70,.55), rgba(31,21,70,.88) 30%, rgba(31,21,70,.88)); }
  .mi .bg .shade { background: linear-gradient(rgba(16,48,77,.5), rgba(16,48,77,.88) 30%, rgba(16,48,77,.88)); }
  .nc-scene .shade { background: linear-gradient(rgba(21,65,51,.45), rgba(21,65,51,.9) 30%, #154133); }
  .lg-scene .shade { background: linear-gradient(#154133, rgba(28,22,16,.9) 10%, rgba(28,22,16,.85)); }
  .leaf, .mi .fly.f2 { display: none; } .fly { width: 44px; } .bird { width: 34px; }

  .nl { height: auto; }
  .nl .row { grid-template-columns: 1fr; padding: 32px 20px; height: auto; gap: 28px; }
  .nl .row .text, .nl .row .vis, .nl .row.lg-row .text, .nl .row.lg-row .vis { grid-column: 1; grid-row: auto; }
  .road { display: none; }
}

/* Scroll motion: the script writes --p (how far each card has come in), --q (how far the next card has come over it)
   and --w (how far along the road), so it works in every browser. */
html.motion .peek > * { transform: translateY(calc((1 - clamp(0, (var(--p, 1) - var(--p0, .3) - var(--d, 0)) / var(--pd, .45), 1)) * 110%)); }
.peek > :nth-child(2) { --d: .05; } .peek > :nth-child(3) { --d: .1; } .peek > :nth-child(4) { --d: .15; }
.peek > :nth-child(5) { --d: .2; } .peek > :nth-child(6) { --d: .25; }
/* War & Cards: the troop stands up early and quickly, all six up by --p .45 */
.wc-p { --p0: .05; --pd: .25; }
.wc-p > :nth-child(2) { --d: .03; } .wc-p > :nth-child(3) { --d: .06; } .wc-p > :nth-child(4) { --d: .09; }
.wc-p > :nth-child(5) { --d: .12; } .wc-p > :nth-child(6) { --d: .15; }
html.motion .slot .peek { translate: 0 calc(var(--q, 0) * 120px); opacity: calc(1 - var(--q, 0) * 1.6); }
html.motion .card { scale: calc(1 - var(--q, 0) * .06); }
html.motion .card::after { opacity: calc(var(--q, 0) * .55); }
html.motion .vis { translate: 0 calc((1 - clamp(0, var(--p, 1), 1)) * 160px); }
html.motion .text { --tt: clamp(0, (var(--p, 1) - .2) / .8, 1); translate: 0 calc((1 - var(--tt)) * 60px); opacity: calc(.3 + .7 * var(--tt)); }
/* --m0: the --p at which the apples are fully on screen (measured: ~.95 on desktop, ~1.05 on phones, where the card is taller
   than the screen). They slide together over the next .35 and merge over the .45 after that, before the next card covers them. */
.match { --m0: .95; }
@media (max-width: 820px) { .match { --m0: 1.05; } }
html.motion .match { --s: clamp(0, (var(--p, 1) - var(--m0)) / .35, 1); --c: clamp(0, (var(--p, 1) - var(--m0) - .35) / .45, 1); --r: clamp(0, (var(--c) - .1) / .6, 1); --fade: calc(min(1, var(--r) * 5) * (1 - var(--r))); }
html.motion .match .apl { opacity: calc(1 - clamp(0, (var(--c) - .5) * 2, 1)); scale: calc(1 + var(--c) * .9 - var(--c) * var(--c) * 1.9); }
html.motion .match .apl.l { translate: calc(var(--s) * var(--tx, 100px)) 0; rotate: calc((1 - var(--s)) * -12deg + var(--c) * 40deg); }
html.motion .match .apl.r { translate: calc(var(--s) * -1 * var(--tx, 100px)) 0; rotate: calc((1 - var(--s)) * 12deg - var(--c) * 40deg); }
html.motion .match .ring { scale: calc(.2 + var(--r) * 2); opacity: var(--fade); }
html.motion .match .spark { translate: calc(var(--x) * var(--r)) calc(var(--y) * var(--r)); opacity: var(--fade); }
html.motion .match .plus { translate: -50% calc(-50% - var(--r) * 110%); opacity: var(--fade); }
html.motion .walker { offset-distance: calc(var(--w, 1) * 100%); }
html.motion .road .way { stroke-dasharray: 1; }
.sen { height: 0; }

.toggle { position: fixed; z-index: 50; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(19,16,28,.86); color: #f4f1fa; font: 600 15px Outfit, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
.toggle:focus-visible { outline: 2px solid #7c5cff; outline-offset: 2px; }
.peek img { max-width: none; }
.hint svg { display: inline; }
/* The app's own site: a tile with its icon, so it reads as "go see more", next to (not louder than) the store buttons */
.site { margin: 22px 0 0; }
.site .tile { display: inline-flex; align-items: center; gap: 14px; min-width: min(300px, 100%); box-sizing: border-box; padding: 10px 12px 10px 10px; border-radius: 18px;
  text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.site .tile:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.site .tile img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.site .tile .t { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.site .tile strong { color: #fff; font-size: 17px; } .site .tile small { font-size: 14px; font-weight: 600; }
.site .tile .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; background: rgba(255,255,255,.9); color: #160f2e; transition: transform .2s; }
.site .tile:hover .go { transform: translate(2px, -2px); }
.sw .site small { color: #ffc83d; } .sw .site .go { background: #ffc83d; }
.mi .site small { color: #76cbfa; } .mi .site .go { background: #76cbfa; }
.mu .site small { color: #bef264; } .mu .site .go { background: #a3e635; }
.yt-line { margin: 14px 0 0; font-size: 15px; opacity: .85; } .yt-line + .stores { margin-top: 10px; }
.lg-row .sponsor { margin-top: 22px; }
