/* ShareFile website. Colours and shapes follow the app: dark violet surfaces, lavender primary, violet-to-coral gradient. */
:root {
  color-scheme: dark light;
  --bg: #100e1d; --bg-soft: #171430; --surface: #1b1830; --surface-2: #25213f;
  --line: rgba(255, 255, 255, .09); --text: #efecff; --muted: #a49fc8;
  --primary: #b3a7ff; --primary-ink: #1d1550; --danger: #ffb4a2; --ok: #7be0a0;
  --shadow: 0 12px 34px rgba(0, 0, 0, .38);
  --grad: linear-gradient(135deg, #5B4BDD 0%, #8B5CFF 60%, #F97362 100%);
  --radius: 22px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5ff; --bg-soft: #efebff; --surface: #ffffff; --surface-2: #ece8fb;
    --line: rgba(40, 25, 110, .1); --text: #1c1936; --muted: #645f88;
    --primary: #5b46e0; --primary-ink: #ffffff; --danger: #c2361f; --ok: #1b8a45;
    --shadow: 0 12px 34px rgba(60, 40, 140, .15);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; padding-bottom: 100px; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 85% -5%, rgba(139, 92, 255, .30), transparent 70%),
    radial-gradient(40% 35% at -5% 35%, rgba(249, 115, 98, .14), transparent 70%),
    radial-gradient(45% 40% at 50% 110%, rgba(91, 75, 221, .22), transparent 70%);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- icons (mask of the app's own line icons) ---------- */
.i { display: inline-block; width: 1.35em; height: 1.35em; flex: none; background: currentColor; vertical-align: middle;
     -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-send { --m: url(../assets/icons/ic_send.svg); }
.i-receive { --m: url(../assets/icons/ic_receive.svg); }
.i-web { --m: url(../assets/icons/ic_web.svg); }
.i-chat { --m: url(../assets/icons/ic_chat.svg); }
.i-lock { --m: url(../assets/icons/ic_lock.svg); }
.i-block { --m: url(../assets/icons/ic_block.svg); }
.i-video { --m: url(../assets/icons/ic_video.svg); }
.i-folder { --m: url(../assets/icons/ic_folder.svg); }
.i-image { --m: url(../assets/icons/ic_image.svg); }
.i-doc { --m: url(../assets/icons/ic_doc.svg); }
.i-check { --m: url(../assets/icons/ic_check.svg); }
.i-file { --m: url(../assets/icons/ic_file.svg); }
.i-zip { --m: url(../assets/icons/ic_zip.svg); }
.i-settings { --m: url(../assets/icons/ic_settings.svg); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 12px; z-index: 30; margin: 12px auto 0; width: min(1120px, 100% - 24px); }
.nav {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; font: 700 15px var(--font); transition: transform .15s, filter .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 10px 18px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; margin-left: auto; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -5px; left: 0; }
.menu-btn span::after { position: absolute; top: 5px; left: 0; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav .btn { display: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; margin: 0; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; padding: 56px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--primary); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; margin: 18px 0 18px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.platforms span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; } .hero p.lead { margin: 0 auto; } .hero-cta, .platforms { justify-content: center; } }

/* ---------- radar (same idea as the app's Send tab) ---------- */
.radar { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.ring, .wave { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ring { border: 1.5px solid var(--line); }
.ring.r1 { width: 34%; height: 34%; } .ring.r2 { width: 62%; height: 62%; } .ring.r3 { width: 92%; height: 92%; }
.wave { width: 92%; height: 92%; border: 2px solid var(--primary); opacity: 0; animation: wave 4.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.wave.w2 { animation-delay: 1.4s; } .wave.w3 { animation-delay: 2.8s; }
@keyframes wave { 0% { transform: translate(-50%, -50%) scale(.12); opacity: .7; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.me { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
      background: var(--surface-2); display: grid; place-items: center; font-size: 9cqw; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent), var(--shadow); z-index: 3; }
.peer { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); text-align: center; z-index: 2; animation: pop 14s infinite backwards; animation-delay: var(--d); }
.peer .av { position: relative; width: 15cqw; aspect-ratio: 1; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 7.5cqw; margin: 0 auto; box-shadow: var(--shadow); border: 1px solid var(--line); }
.peer b { display: block; font-size: max(11px, 3cqw); margin-top: 5px; white-space: nowrap; }
.peer small { display: block; font-size: max(10px, 2.4cqw); color: var(--muted); white-space: nowrap; margin-top: -2px; }
@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 4% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  6% { transform: translate(-50%, -50%) scale(1); } 90% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 97%, 100% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
}
.peer.hit .av { animation: hit 14s infinite backwards; animation-delay: var(--d); }
@keyframes hit { 0%, 66% { box-shadow: var(--shadow); } 72% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 35%, transparent), var(--shadow); } 82%, 100% { box-shadow: var(--shadow); } }
.tick { position: absolute; right: -2cqw; top: -1cqw; width: 6cqw; aspect-ratio: 1; border-radius: 50%; background: var(--ok); color: #06210f; display: grid; place-items: center; font-size: 4cqw; font-weight: 800; opacity: 0; animation: tick 14s infinite backwards; animation-delay: var(--d); }
@keyframes tick { 0%, 68% { opacity: 0; transform: scale(.3); } 72% { opacity: 1; transform: scale(1.15); } 76%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; } }
.fly { position: absolute; z-index: 4; width: 9cqw; aspect-ratio: 1; border-radius: 2.4cqw; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 5cqw;
       left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; animation: fly 14s infinite; animation-delay: var(--d, 0s); box-shadow: var(--shadow); }
@keyframes fly {
  0%, 55% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  58% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  71% { left: var(--tx); top: var(--ty); opacity: 1; transform: translate(-50%, -50%) scale(.8); }
  74%, 100% { left: var(--tx); top: var(--ty); opacity: 0; transform: translate(-50%, -50%) scale(.2); }
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .scenes { grid-template-columns: 1fr; } }
.scene { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 14px 14px 22px; box-shadow: var(--shadow); }
.scene h3 { font-size: 21px; margin: 18px 10px 6px; display: flex; align-items: center; gap: 10px; }
.scene h3 .i { color: var(--primary); }
.scene p { color: var(--muted); margin: 0 10px; font-size: 15px; }
.stage { container-type: inline-size; position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 20px;
         background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--primary) 16%, var(--bg-soft)), var(--bg-soft)); border: 1px solid var(--line); }
.stage .abs { position: absolute; }
.paused *, .paused { animation-play-state: paused !important; }

/* shared pieces inside scenes (sizes in cqw so every scene scales with its card) */
.dev { position: absolute; background: var(--surface); border: .7cqw solid var(--surface-2); border-radius: 5cqw; box-shadow: var(--shadow); overflow: hidden; }
.dev::before { content: ""; position: absolute; top: 1.4cqw; left: 50%; width: 8cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--surface-2); transform: translateX(-50%); }
.t { font-size: 3cqw; line-height: 1.25; }
.t.s { font-size: 2.5cqw; color: var(--muted); }
.t.b { font-weight: 700; }
.tile { position: absolute; width: 8.6cqw; height: 8.6cqw; border-radius: 2cqw; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-size: 4.4cqw; }
.badge { position: absolute; right: -1cqw; top: -1cqw; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 2.4cqw; transform: scale(0); }
.pill { white-space: nowrap; position: absolute; display: flex; align-items: center; justify-content: center; gap: 1cqw; border-radius: 99cqw; font-size: 2.8cqw; font-weight: 700; }
.pill.p { background: var(--primary); color: var(--primary-ink); } .pill.g { background: var(--surface-2); color: var(--text); } .pill.d { background: color-mix(in srgb, var(--danger) 22%, var(--surface-2)); color: var(--danger); }
.bar { position: absolute; height: 1.8cqw; border-radius: 1cqw; background: var(--surface-2); overflow: hidden; }
.bar > i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.okc { position: absolute; border-radius: 50%; background: var(--ok); color: #06210f; display: grid; place-items: center; font-weight: 800; }

/* scene 1: send */
.s1 .tile.a { left: 3.2cqw; top: 12cqw; } .s1 .tile.b { left: 13.2cqw; top: 12cqw; } .s1 .tile.c { left: 23.2cqw; top: 12cqw; }
.s1 .tile .badge { animation: s1b 9s infinite; } .s1 .tile.b .badge { animation-delay: .5s; } .s1 .tile.c .badge { animation-delay: 1s; }
@keyframes s1b { 0%, 8% { transform: scale(0); } 11%, 92% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
.s1 .row { left: 3cqw; right: 3cqw; top: 40cqw; height: 11cqw; border-radius: 3cqw; background: var(--surface-2); display: flex; align-items: center; gap: 2cqw; padding: 0 2cqw; animation: s1row 9s infinite; border: .4cqw solid transparent; }
@keyframes s1row { 0%, 24% { border-color: transparent; } 27%, 40% { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 22%, var(--surface-2)); } 46%, 100% { border-color: transparent; } }
.s1 .row .av { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 4cqw; }
.s1 .chip { z-index: 5; position: absolute; left: 14cqw; top: 22cqw; width: 7cqw; height: 7cqw; border-radius: 2cqw; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 3.6cqw; opacity: 0; animation: s1fly 9s infinite; }
.s1 .chip.c2 { animation-delay: .35s; } .s1 .chip.c3 { animation-delay: .7s; }
@keyframes s1fly { 0%, 33% { opacity: 0; transform: translate(0, 0) scale(.6); } 36% { opacity: 1; transform: translate(2cqw, 8cqw) scale(1); } 52% { opacity: 1; transform: translate(50cqw, 4cqw) scale(.9); } 56%, 100% { opacity: 0; transform: translate(54cqw, 4cqw) scale(.3); } }
.s1 .dots { left: 38cqw; top: 36cqw; width: 22cqw; border-top: .6cqw dashed color-mix(in srgb, var(--primary) 55%, transparent); opacity: .6; }
.s1 .fill { animation: s1fill 9s infinite; } @keyframes s1fill { 0%, 36% { transform: scaleX(0); } 58%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
.s1 .done { opacity: 0; transform: scale(.3); animation: s1done 9s infinite; } @keyframes s1done { 0%, 58% { opacity: 0; transform: scale(.3); } 62%, 92% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(.3); } }

/* scene 2: receive */
.s2 .sheet { left: 0; right: 0; bottom: 0; height: 56%; background: var(--surface); border-radius: 5cqw 5cqw 0 0; box-shadow: 0 -1.5cqw 4cqw rgba(0,0,0,.25); animation: s2sheet 9s infinite; }
@keyframes s2sheet { 0%, 4% { transform: translateY(105%); } 12%, 90% { transform: translateY(0); } 97%, 100% { transform: translateY(105%); } }
.s2 .st { position: absolute; inset: 0; padding: 3.5cqw; opacity: 0; }
.s2 .st.req { animation: s2req 9s infinite; } .s2 .st.prog { animation: s2prog 9s infinite; } .s2 .st.fin { animation: s2fin 9s infinite; }
@keyframes s2req { 0%, 8% { opacity: 0; } 14%, 36% { opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes s2prog { 0%, 39% { opacity: 0; } 44%, 64% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes s2fin { 0%, 67% { opacity: 0; } 72%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
.s2 .who { display: flex; align-items: center; gap: 2cqw; }
.s2 .who .av { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 4.6cqw; }
.s2 .th { display: flex; gap: 1.6cqw; margin-top: 3cqw; }
.s2 .th i { width: 7.4cqw; height: 7.4cqw; border-radius: 1.8cqw; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-style: normal; font-size: 3.6cqw; }
.s2 .acc { animation: s2acc 9s infinite; } @keyframes s2acc { 0%, 26% { transform: scale(1); } 29% { transform: scale(.92); } 33%, 100% { transform: scale(1); } }
.s2 .tap { position: absolute; width: 9cqw; height: 9cqw; border-radius: 50%; border: .5cqw solid var(--primary); opacity: 0; animation: s2tap 9s infinite; }
@keyframes s2tap { 0%, 26% { opacity: 0; transform: scale(.4); } 28% { opacity: .9; } 36%, 100% { opacity: 0; transform: scale(1.6); } }
.s2 .ringsvg { position: absolute; left: 50%; top: 4cqw; width: 14cqw; height: 14cqw; transform: translateX(-50%) rotate(-90deg); }
.s2 .ringsvg circle { fill: none; stroke-width: 3; } .s2 .ringsvg .bg { stroke: var(--surface-2); }
.s2 .ringsvg .fg { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: s2ring 9s infinite; }
@keyframes s2ring { 0%, 42% { stroke-dashoffset: 100; } 64%, 100% { stroke-dashoffset: 0; } }
@property --p { syntax: "<integer>"; initial-value: 0; inherits: false; }
.s2 .pct { position: absolute; left: 0; right: 0; top: 8.6cqw; text-align: center; font-weight: 800; font-size: 3.6cqw; counter-reset: p var(--p); animation: s2pct 9s infinite; }
.s2 .pct::after { content: counter(p) "%"; }
@keyframes s2pct { 0%, 42% { --p: 0; } 64%, 100% { --p: 100; } }

/* scene 3: web share */
.s3 .qr { position: absolute; left: 50%; top: 11cqw; width: 15cqw; height: 15cqw; transform: translateX(-50%); border-radius: 1.4cqw; background: #fff; padding: 1cqw; }
.s3 .scan { position: absolute; left: 2cqw; right: 2cqw; top: 12cqw; height: .7cqw; border-radius: 1cqw; background: var(--primary); box-shadow: 0 0 2cqw var(--primary); animation: s3scan 10s infinite; }
@keyframes s3scan { 0%, 6% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 18% { transform: translateY(14cqw); opacity: 1; } 21%, 100% { transform: translateY(14cqw); opacity: 0; } }
.s3 .arrow { left: 29cqw; top: 32cqw; font-size: 5cqw; color: var(--primary); animation: s3arrow 10s infinite; opacity: 0; }
@keyframes s3arrow { 0%, 18% { opacity: 0; transform: translateX(-2cqw); } 22%, 40% { opacity: 1; transform: translateX(0); } 46%, 100% { opacity: 0; } }
.s3 .browser { left: 35cqw; top: 8cqw; width: 60cqw; height: 62cqw; background: var(--surface); border-radius: 3cqw; border: .5cqw solid var(--surface-2); box-shadow: var(--shadow); overflow: hidden; animation: s3br 10s infinite; transform-origin: left center; }
@keyframes s3br { 0%, 18% { opacity: 0; transform: scale(.9); } 24%, 92% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(.9); } }
.s3 .top { height: 7cqw; background: var(--surface-2); display: flex; align-items: center; gap: 1.2cqw; padding: 0 2.4cqw; }
.s3 .top i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--muted); opacity: .6; }
.s3 .top em { margin-left: 2cqw; flex: 1; font-style: normal; font-size: 2.5cqw; background: var(--surface); border-radius: 3cqw; padding: .8cqw 2.4cqw; color: var(--muted); }
.s3 .frow { margin: 0 3cqw; height: 10cqw; display: flex; align-items: center; gap: 2cqw; border-bottom: .3cqw solid var(--line); opacity: 0; animation: s3row 10s infinite; }
.s3 .frow:nth-of-type(2) { animation-delay: .8s; } .s3 .frow:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes s3row { 0%, 26% { opacity: 0; transform: translateY(2cqw); } 31%, 92% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; } }
.s3 .frow .ic { width: 6cqw; height: 6cqw; border-radius: 1.6cqw; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-size: 3.4cqw; }
.s3 .frow .dl { margin-left: auto; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 3cqw; font-weight: 800; animation: s3dl 10s infinite; }
.s3 .frow:nth-of-type(2) .dl { animation-delay: .8s; } .s3 .frow:nth-of-type(3) .dl { animation-delay: 1.6s; }
@keyframes s3dl { 0%, 56% { background: var(--primary); } 60%, 100% { background: var(--ok); color: #06210f; } }
.s3 .pin { left: 50%; transform: translateX(-50%); }

/* scene 4: decline and block */
.s4 .notif { left: 3cqw; right: 3cqw; top: 4cqw; border-radius: 3.5cqw; background: var(--surface-2); padding: 2.6cqw; animation: s4n 9s infinite; box-shadow: var(--shadow); }
@keyframes s4n { 0%, 4% { transform: translateY(-140%); } 12%, 60% { transform: translateY(0); } 68%, 100% { transform: translateY(-140%); } }
.s4 .st { position: absolute; inset: 0; padding: 2.6cqw; }
.s4 .st.a { animation: s4a 9s infinite; } .s4 .st.b { animation: s4b 9s infinite; opacity: 0; display: flex; align-items: center; justify-content: center; gap: 2cqw; }
@keyframes s4a { 0%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes s4b { 0%, 38% { opacity: 0; } 43%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }
.s4 .blk { animation: s4blk 9s infinite; } @keyframes s4blk { 0%, 28% { transform: scale(1); } 31% { transform: scale(.92); } 35%, 100% { transform: scale(1); } }
.s4 .toast { left: 4cqw; right: 4cqw; bottom: 5cqw; border-radius: 3cqw; background: var(--surface); border: .4cqw solid var(--line); padding: 2.6cqw; display: flex; gap: 2cqw; align-items: center; box-shadow: var(--shadow); animation: s4t 9s infinite; }
@keyframes s4t { 0%, 68% { transform: translateY(160%); } 76%, 92% { transform: translateY(0); } 99%, 100% { transform: translateY(160%); } }
.s4 .rings { left: 50%; top: 38cqw; width: 36cqw; height: 36cqw; transform: translate(-50%, -50%); border-radius: 50%; border: .4cqw solid var(--line); }
.s4 .rings::before, .s4 .rings::after { content: ""; position: absolute; border-radius: 50%; border: .4cqw solid var(--line); inset: 7cqw; }
.s4 .rings::after { inset: 14cqw; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.cta-band { text-align: center; padding: 56px 24px; border-radius: 32px; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cta-band p { opacity: .9; margin: 12px auto 24px; max-width: 520px; }
.cta-band .btn { background: #fff; color: #3a2aa8; }

/* ---------- download / contact pages ---------- */
.page-head { text-align: center; padding: 56px 0 20px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.page-head p { color: var(--muted); margin: 14px auto 0; max-width: 560px; font-size: 18px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.dl-card .plat { display: flex; align-items: center; gap: 14px; }
.dl-card .plat .logo { width: 54px; height: 54px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; font-size: 28px; }
.dl-card h3 { font-size: 22px; } .dl-card p { color: var(--muted); font-size: 15px; }
.dl-card .btn { align-self: flex-start; margin-top: auto; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps { padding: 0; margin: 0; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; } .steps span { color: var(--muted); font-size: 15px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; } details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 30px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
input, textarea { width: 100%; font: 16px var(--font); color: var(--text); background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .2s; }
input:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: 150px; resize: vertical; }
.info { display: grid; gap: 14px; align-content: start; }
.info .card { display: flex; gap: 14px; align-items: flex-start; }
.info .card .ico { margin: 0; flex: none; }
.info a { color: var(--primary); font-weight: 700; word-break: break-all; }
.form .note { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
footer { padding: 36px 0 20px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; } .foot a:hover { color: var(--text); }

/* ---------- floating store bar (always visible, like tcgsnap.net) ---------- */
.store-bar {
  position: fixed; z-index: 40; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, 100% - 24px); padding: 10px 12px; border-radius: 24px; text-align: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.store-bar .lbl { font-size: 13px; font-weight: 800; margin-bottom: 8px; letter-spacing: .01em; }
.store-bar .row { display: flex; gap: 10px; }
.store-btn { flex: 1; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn img { height: 52px; width: auto; max-width: 100%; display: block; }
.dl-card .store-btn { flex: none; align-self: flex-start; margin-top: auto; }
.dl-card .store-btn img { height: 56px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave, .eyebrow::before { animation: none; }
  .stage *, .radar * { animation-play-state: paused !important; animation-delay: -4.5s !important; }
}

/* ---------- "Coming soon" message ---------- */
.toast { position: fixed; left: 50%; bottom: 150px; transform: translate(-50%, 20px); z-index: 60; padding: 12px 22px; border-radius: 999px;
         background: var(--surface); color: var(--text); font-weight: 700; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- legal pages ---------- */
body.legal-page { padding-bottom: 0; }
.legal { max-width: 820px; padding-bottom: 20px; }
.legal-body { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 8px 28px 24px; box-shadow: var(--shadow); }
.legal-body h2 { font-size: 20px; margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 22px; margin: 8px 0 12px; }
.legal-body li { margin: 6px 0; }
.legal-body a { color: var(--primary); font-weight: 600; }
.legal-body strong, .legal-body em { color: var(--text); }
.callout { margin-top: 24px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); color: var(--text); border-left: 4px solid var(--primary); }

/* download page: one tab per platform */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 22px; padding: 6px; width: fit-content; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.tab { font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91, 75, 221, .35); }
.tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 560px) { .tabs { border-radius: 22px; width: 100%; } .tab { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 10px 8px; } }
.tab-panel { max-width: 920px; margin: 0 auto; padding: 8px 0 26px; }
.tab-panel[hidden] { display: none; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-top .plat { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 320px; }
.panel-top .logo { width: 58px; height: 58px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.panel-top .logo svg { width: 30px; height: 30px; }
.panel-top h2 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.panel-top p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.panel-action .store-btn { width: 200px; }
.panel-faq { margin-top: 22px; }
.tab .e { display: inline-flex; } .tab .e svg { width: 18px; height: 18px; }
/* brand colours; the Apple mark follows the text colour; the selected tab turns every mark white */
.ico-android { color: #3DDC84; } .ico-windows { color: #0A8CF0; } .ico-ios, .ico-mac { color: var(--text); }
.tab[aria-selected="true"] .e { color: #fff; }
