/* Landing, the section about the mobile app and the SDK. Own classes: landing.css is a compiled
   Tailwind build and knows only the utilities already on the page. */
.app-section { position: relative; overflow: hidden; background: #0b0a12; color: #fff; padding: 96px 0; border-top: 1px solid rgba(137, 85, 238, 0.18); }
.app-section .bg { position: absolute; inset: 0; background: url("/app-shots/bg.webp") center / cover no-repeat; opacity: 0.55; pointer-events: none; }
.app-section .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0a12 0%, rgba(11, 10, 18, 0.75) 45%, rgba(11, 10, 18, 0.2) 100%), linear-gradient(0deg, #0b0a12 0%, transparent 25%, transparent 80%, #0b0a12 100%); }
.app-wrap { position: relative; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .app-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .app-wrap { padding: 0 2rem; } }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .app-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }

.app-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(137, 85, 238, 0.16); border: 1px solid rgba(137, 85, 238, 0.35); color: #d9c9ff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 18px; }
.app-badge .material-symbols-outlined { font-size: 16px; }
.app-h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 16px; }
.app-h2 em { font-style: normal; background: linear-gradient(90deg, #b794ff, #8955ee 55%, #e879f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-lead { font-size: 17px; line-height: 1.6; color: #c3bed3; max-width: 34rem; margin: 0 0 28px; }

.app-points { display: grid; gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.app-points li { display: flex; gap: 14px; align-items: flex-start; }
.app-points .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(137, 85, 238, 0.16); color: #c9a9ff; display: grid; place-items: center; }
.app-points .ic .material-symbols-outlined { font-size: 22px; }
.app-points b { display: block; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.app-points span { color: #a9a3bb; font-size: 14px; line-height: 1.5; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; background: #15131f; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.store:hover { border-color: rgba(137, 85, 238, 0.6); transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 10px; color: #8a8699; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; margin-bottom: 3px; }
.store b { display: block; font-size: 15px; font-weight: 600; line-height: 1; }
.store-note { font-size: 13px; color: #8a8699; }

/* The phone and its screens */
.phone-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; perspective: 1400px; }
.phone-glow { position: absolute; top: 10%; left: 50%; width: 520px; height: 520px; transform: translateX(-50%); background: radial-gradient(circle, rgba(137, 85, 238, 0.45), rgba(137, 85, 238, 0.08) 45%, transparent 70%); filter: blur(20px); pointer-events: none; }
.phone { position: relative; width: 292px; aspect-ratio: 1206 / 2622; border-radius: 48px; background: #0f0e16; padding: 10px; box-shadow: 0 0 0 1.5px #2b2838, 0 0 0 5px #0a0910, 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(137, 85, 238, 0.18); transform: rotateY(-10deg) rotateX(4deg); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js .app-grid[data-reveal].in .phone { transform: rotateY(-6deg) rotateX(2deg); }
.phone:hover { transform: rotateY(0deg) rotateX(0deg); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #f5f4fa; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(6%) scale(1.02); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.phone .screen img.on { opacity: 1; transform: none; z-index: 1; }
.phone .screen img.off { transform: translateX(-6%) scale(1.02); }
.phone .island { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 2; }
.phone .btn { position: absolute; right: -7px; width: 3px; border-radius: 2px; background: #2b2838; }
.phone .btn.b1 { top: 150px; height: 60px; }
.phone .btn.b2 { left: -7px; right: auto; top: 110px; height: 30px; }
.phone .btn.b3 { left: -7px; right: auto; top: 160px; height: 56px; }
.phone .btn.b4 { left: -7px; right: auto; top: 230px; height: 56px; }

.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(21, 19, 31, 0.85); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 13px; color: #e7e3f2; white-space: nowrap; animation: hover-float 6s ease-in-out infinite; }
.float b { color: #fff; font-weight: 600; }
.float .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: live-ping 2s infinite; }
.float.f1 { top: 14%; left: calc(50% - 318px); animation-delay: -1.5s; }
.float.f2 { top: 44%; right: calc(50% - 330px); animation-delay: -3.5s; }
.float.f3 { bottom: 22%; left: calc(50% - 305px); animation-delay: -5s; }
.float .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(137, 85, 238, 0.25); color: #c9a9ff; }
.float .ic .material-symbols-outlined { font-size: 18px; }
.float .up { color: #6ee7b7; font-weight: 600; }
@keyframes hover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
@media (max-width: 640px) { .float { display: none; } .phone { width: 250px; } .phone-glow { width: 360px; height: 360px; } }
@media (min-width: 641px) and (max-width: 1023px) { .float.f1 { left: calc(50% - 320px); } .float.f2 { right: calc(50% - 330px); } }

.shot-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; z-index: 3; }
.shot-tab { position: relative; overflow: hidden; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #c3bed3; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.shot-tab:hover { color: #fff; }
.shot-tab.on { color: #fff; background: rgba(137, 85, 238, 0.22); border-color: rgba(137, 85, 238, 0.6); }
.shot-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #b794ff; transform: scaleX(0); transform-origin: left; }
.shot-tab.on i { animation: tab-progress var(--dur, 4000ms) linear forwards; }
.shot-tabs.paused .shot-tab.on i { animation-play-state: paused; }
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shot-cap { text-align: center; min-height: 48px; position: relative; z-index: 3; }
.shot-cap b { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.shot-cap span { font-size: 14px; color: #a9a3bb; }
.shot-cap > div { animation: cap-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* The SDK: traffic of the publisher's own app added to the site's */
.sdk-strip { position: relative; margin-top: 80px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, rgba(137, 85, 238, 0.14), rgba(21, 19, 31, 0.9) 50%, rgba(76, 96, 255, 0.1)); border: 1px solid rgba(137, 85, 238, 0.28); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .sdk-strip { grid-template-columns: 1.1fr 1fr; padding: 36px 40px; } }
.sdk-strip h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 10px; }
.sdk-strip p { color: #c3bed3; font-size: 15px; line-height: 1.6; margin: 0 0 16px; max-width: 32rem; }
.sdk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sdk-tags span { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 12.5px; color: #d9d4e6; }
.flow { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.flow .src { display: grid; gap: 12px; }
.flow .node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #15131f; border: 1px solid rgba(255, 255, 255, 0.1); }
.flow .node .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(137, 85, 238, 0.16); color: #c9a9ff; }
.flow .node .ic .material-symbols-outlined { font-size: 20px; }
.flow .node b { display: block; font-size: 14px; font-weight: 600; }
.flow .node span { font-size: 12.5px; color: #8a8699; font-variant-numeric: tabular-nums; }
.flow .node.sum { background: linear-gradient(135deg, #8955ee, #6d3fd0); border-color: transparent; box-shadow: 0 20px 50px rgba(137, 85, 238, 0.35); }
.flow .node.sum .ic { background: rgba(255, 255, 255, 0.18); color: #fff; }
.flow .node.sum span { color: #e9ddff; }
.flow .node.sum b { font-size: 15px; }
.flow .wires { width: 56px; height: 120px; }
.flow .wires path { fill: none; stroke: rgba(137, 85, 238, 0.45); stroke-width: 2; }
.flow .wires circle { fill: #c9a9ff; animation: wire-dot 2.4s linear infinite; offset-rotate: 0deg; }
.flow .wires circle.w1 { offset-path: path("M2 20 C 30 20, 26 60, 54 60"); }
.flow .wires circle.w2 { offset-path: path("M2 100 C 30 100, 26 60, 54 60"); animation-delay: -1.2s; }
@keyframes wire-dot { from { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
@media (max-width: 420px) { .flow { grid-template-columns: 1fr; } .flow .wires { display: none; } }
@media (prefers-reduced-motion: reduce) { .phone, .float, .flow .wires circle, .shot-tab i, .shot-cap > div { animation: none !important; transition: none !important; } .phone { transform: none; } }
.app-section .ic svg, .app-badge svg { width: 1em; height: 1em; }
.app-badge svg { width: 15px; height: 15px; }
.app-points .ic svg { width: 21px; height: 21px; }
.float .ic svg { width: 17px; height: 17px; }
.flow .node .ic svg { width: 19px; height: 19px; }
/* The top menu got a fifth item; between the tablet and the laptop widths one gives way. */
@media (min-width: 768px) and (max-width: 980px) { nav a[href="#"] span { display: none; } nav .md\:flex { gap: 1.1rem; } }
