/* Deqly story. Every rule is scoped to #deqly so other projects on the page
   cannot clash with it. Screen 1 (owner's choice): the landing page, where the
   hero's card stack flies in and fans out. The page is a capture; the cards and
   icons are the site's own brand assets (capture/deqly-capture.mjs). */
#deqly {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #6B6B6B;
  --line: #ECECEC;
  --red: #FA5252;
  --ui: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
  background: var(--bg); color: var(--ink); font-family: var(--ui);
}
#deqly * { box-sizing: border-box; }

#deqly .track { position: relative; height: 1300vh; } /* screen 1 (with its scroll) + the carousel + screen 2 */
#deqly .pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#deqly .scaler { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
#deqly .stage { position: absolute; left: 0; top: 0; }
#deqly .win { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

#deqly .hero { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); pointer-events: none; z-index: 40; }
#deqly .eyebrow { font: 800 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
#deqly .hero h1 { font: 700 clamp(34px, 6vw, 76px)/1.02 var(--ui); letter-spacing: -.04em; margin: 14px auto 12px; text-wrap: balance; max-width: 13ch; }
#deqly .hero h1 em { font-style: normal; background: linear-gradient(90deg, #FA5252, #D262A8 55%, #A97CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
#deqly .hero p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
#deqly .hint { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 12px var(--ui); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; z-index: 40; }
#deqly .hint i { width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
#deqly .hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: dq-wheel 1.6s ease-in-out infinite; }
@keyframes dq-wheel { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(10px);opacity:0} 100%{opacity:0} }
@media (prefers-reduced-motion: reduce) { #deqly .hint i::after { animation: none; } }

/* frames */
#deqly .browser { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 50px 90px -34px rgba(17,17,17,.28), 0 2px 6px rgba(17,17,17,.05); overflow: hidden; }
#deqly .browser .bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #FAFAFA; }
#deqly .dots { display: flex; gap: 7px; } #deqly .dots i { width: 11px; height: 11px; border-radius: 50%; background: #E4E4E4; }
#deqly .url { flex: 0 1 380px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 500 12px/24px var(--ui); color: var(--muted); text-align: center; }
#deqly .phone { position: absolute; filter: drop-shadow(0 40px 46px rgba(0,0,0,.26)); }
/* the owner's phone image (shared/phone-frame.png, 941 × 1780) drawn over the screen. It
   has its own dark status bar; the see-through screen below it (703 × 1454 at 118, 246)
   shows the app's 390 × 797 page area. The screen element starts 47 px higher so its
   own status bar hides under the image's. */
#deqly .phone::after { content: ""; position: absolute; inset: 0; background: url(../../shared/phone-frame.png?v=2) 0 0 / 100% 100% no-repeat; z-index: 70; pointer-events: none; }
#deqly .phone .scr { position: absolute; left: 65.47px; top: 87.86px; width: 390px; height: 844px; background: #fff; border-radius: 0 0 58px 58px; overflow: hidden; }
#deqly .phone .sb { position: relative; z-index: 5; height: 47px; display: flex; justify-content: space-between; align-items: center; padding: 8px 34px 0; font: 600 15px var(--ui); background: #fff; }
#deqly .phone .sb i { display: flex; gap: 3px; align-items: flex-end; }
#deqly .phone .sb i b { width: 4px; border-radius: 1px; background: var(--ink); display: block; }
#deqly .phone .island { display: none; } /* the Dynamic Island is in the phone image */
#deqly .phone .sb { visibility: hidden; } /* so is the status bar */
#deqly .phone .homebar { position: absolute; bottom: 52px; left: 50%; width: 130px; height: 5px; margin-left: -65px; border-radius: 3px; background: var(--ink); z-index: 60; }

/* the page: a capture that scrolls under the site's own top bar */
#deqly .content { position: absolute; overflow: hidden; background: #fff; }
#deqly .pg { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
#deqly .pg img { display: block; width: 100%; height: auto; }
#deqly .topbar { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; }
#deqly .topbar.stuck { box-shadow: 0 2px 8px rgba(0,0,0,.05); }

/* the hero's card stack and its floating icons, laid over the captured page;
   shadows and corners as on the site */
#deqly .pieces { position: absolute; }
#deqly .piece { position: absolute; display: block; will-change: transform, opacity; }
#deqly .piece.card { border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
#deqly .piece.card.front { box-shadow: 0 24px 64px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.12); }
#deqly .piece.icon { filter: drop-shadow(0 8px 20px rgba(0,0,0,.18)); }
#deqly .mob .piece.card { border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
#deqly .mob .piece.card.front { box-shadow: 0 18px 48px rgba(0,0,0,.2); }

/* screen 2: the showcase cards (desktop) and swipe strip (phone), styled as on the site */
#deqly .scard { position: absolute; border-radius: 20px; box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08); transform-origin: center center; will-change: transform; }
#deqly .strip { position: absolute; overflow: hidden; }
#deqly .strack { position: absolute; inset: 0; will-change: transform; }
#deqly .slide { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04); }
#deqly .slide img { display: block; width: 100%; height: 100%; }
#deqly .sdot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: rgba(10,10,10,.1); transition: none; }
#deqly .sdot.on { background: #999; transform: scale(1.3); }
/* the visitor's finger / tap */
#deqly .touch { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; z-index: 5; will-change: transform, opacity; }
#deqly .touch i { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border-radius: 50%; background: rgba(10,10,10,.22); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 8px 20px rgba(0,0,0,.18); }

#deqly .after { padding-block: 96px 120px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); position: relative; }
#deqly .after .inner { max-width: 1080px; margin: 0 auto; }
#deqly .after h2 { font: 800 clamp(28px, 4vw, 44px)/1.08 var(--ui); letter-spacing: -.03em; margin: 12px 0 40px; max-width: 18ch; text-wrap: balance; }
#deqly .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
#deqly .cols h3 { font: 700 18px var(--ui); letter-spacing: -.01em; margin: 0 0 8px; }
#deqly .cols p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
#deqly .cols .k { font: 800 12px var(--ui); color: var(--red); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 12px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
@media (max-width: 760px) { #deqly .cols { grid-template-columns: 1fr; gap: 28px; } }
/* phone view: this section's type is 2px smaller throughout (as in the other stories) */
@media (max-width: 699px) {
  #deqly .after .eyebrow, #deqly .cols .k { font-size: 10px; }
  #deqly .after h2 { font-size: 26px; }
  #deqly .cols h3 { font-size: 16px; }
  #deqly .cols p { font-size: 13px; }
}
