/* Family Hub — website. Tokens on :root, dark mode by the system; three languages via html[data-lang].
   Effects use transform / opacity only and switch off with prefers-reduced-motion. */
:root {
  --bg: #f6f4fb;
  --bg-soft: #efeaf9;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #17142a;
  --muted: #6b6784;
  --line: #e6e1f2;
  --primary: #7c3aed;
  --primary-2: #c026d3;
  --soft: #f1e9ff;
  --good: #16a34a;
  --alert: #e11d48;
  --hero: linear-gradient(135deg, #7c3aed 0%, #a21caf 60%, #db2777 100%);
  --shadow: 0 18px 50px -24px rgba(76, 29, 149, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(76, 29, 149, 0.45);
  --radius: 24px;
  --aurora-a: rgba(124, 58, 237, 0.22);
  --aurora-b: rgba(219, 39, 119, 0.16);
  --aurora-c: rgba(14, 165, 233, 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b16;
    --bg-soft: #141022;
    --card: #19152a;
    --glass: rgba(30, 25, 50, 0.72);
    --text: #f2f0fa;
    --muted: #a19cbc;
    --line: #2b2542;
    --soft: #2a1d4a;
    --good: #22c55e;
    --alert: #fb7185;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
    --aurora-a: rgba(124, 58, 237, 0.28);
    --aurora-b: rgba(219, 39, 119, 0.16);
    --aurora-c: rgba(14, 165, 233, 0.12);
    color-scheme: dark;
  }
}

/* Only the chosen language is shown */
html[data-lang="az"] body [lang="en"], html[data-lang="az"] body [lang="tr"],
html[data-lang="en"] body [lang="az"], html[data-lang="en"] body [lang="tr"],
html[data-lang="tr"] body [lang="az"], html[data-lang="tr"] body [lang="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
main, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Aurora: slow drifting colour behind the page */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, var(--aurora-a), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -30vmax; top: 10vmax; background: radial-gradient(closest-side, var(--aurora-b), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 10vmax; bottom: -45vmax; background: radial-gradient(closest-side, var(--aurora-c), transparent); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-16vmax, 18vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(12vmax, -20vmax) scale(1.15); } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.4); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--hero); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 860px) { .nav { display: flex; } }
.langs { display: inline-flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
@media (min-width: 860px) { .langs { margin-left: 8px; } }
.langs button { border: 0; background: transparent; color: var(--muted); font: 700 12.5px/1 inherit; letter-spacing: 0.04em; padding: 8px 10px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease; }
html[data-lang="az"] .langs [data-set="az"], html[data-lang="en"] .langs [data-set="en"], html[data-lang="tr"] .langs [data-set="tr"] { background: var(--primary); color: #fff; }

/* Phone frame around the real screenshots */
.device { position: relative; width: var(--w, 280px); padding: calc(var(--w, 280px) * 0.03); border-radius: calc(var(--w, 280px) * 0.165); background: linear-gradient(145deg, #2a2640, #0b0a12 40%, #1c1930); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), inset 0 0 0 calc(var(--w, 280px) * 0.012) #050409; }
.device img { width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: calc(var(--w, 280px) * 0.135); background: var(--bg-soft); -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.device::after { content: ""; position: absolute; inset: calc(var(--w, 280px) * 0.03); border-radius: calc(var(--w, 280px) * 0.135); background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 28%); pointer-events: none; }

/* Hero */
.hero { position: relative; padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 40px; } .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--primary); font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6.6vw, 64px); font-weight: 850; letter-spacing: -0.035em; }
.hero h1 em, .shine { font-style: normal; background: linear-gradient(100deg, #7c3aed 0%, #c026d3 30%, #db2777 50%, #c026d3 70%, #7c3aed 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% center; } }
.lead { margin-top: 18px; font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muted); max-width: 560px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 14px; background: var(--text); color: var(--bg); min-width: 190px; transition: transform .2s ease, box-shadow .2s ease; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.2; }
.store b { display: block; font-size: 16px; line-height: 1.2; }
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5); }
.store.soon { cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.hero-stage { position: relative; height: 560px; perspective: 1400px; display: grid; place-items: center; }
@media (min-width: 980px) { .hero-stage { height: 640px; } }
.hero-stage .glow, .story-sticky .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 85, 247, 0.55), rgba(219, 39, 119, 0.25) 55%, transparent); filter: blur(10px); animation: pulse 7s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: 0.8; } }
.device-front { --w: 268px; position: relative; z-index: 2; transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 6deg)) rotateZ(1.5deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.device-back { --w: 236px; position: absolute; z-index: 1; transform: translate(-58%, 4%) rotateY(18deg) rotateZ(-6deg) scale(0.92); opacity: 0.9; filter: saturate(0.95); }
@media (min-width: 980px) { .device-front { --w: 300px; } .device-back { --w: 262px; transform: translate(-66%, 5%) rotateY(18deg) rotateZ(-6deg) scale(0.92); } }
@media (max-width: 520px) { .hero-stage { height: 500px; } .device-front { --w: 230px; } .device-back { --w: 200px; transform: translate(-48%, 6%) rotateY(18deg) rotateZ(-6deg) scale(0.9); } }

.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 20px 40px -22px rgba(30, 10, 60, 0.45); font-size: 13.5px; line-height: 1.3; max-width: 230px; animation: bob 6s ease-in-out infinite; }
.float b { font-weight: 800; }
.float small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.f-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #fff; font-weight: 800; flex: none; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4); }
.f-bar { display: block; width: 130px; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--muted) 22%, transparent); margin-top: 6px; overflow: hidden; }
.f-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #0ea5e9, #22c55e); transform-origin: left; animation: fill 2.4s cubic-bezier(.2, .8, .2, 1) .6s both; }
@keyframes fill { from { transform: scaleX(0); } }
.f-plus { color: var(--primary); }
.f1 { top: 9%; right: 0; animation-delay: -1s; }
.f2 { bottom: 16%; left: 0; animation-delay: -3s; }
.f3 { bottom: 4%; right: 6%; animation-delay: -4.5s; }
@media (max-width: 520px) { .float { max-width: 190px; font-size: 12.5px; padding: 8px 12px 8px 8px; } .f-ava { width: 30px; height: 30px; font-size: 15px; } .f1 { top: 4%; right: -2%; } .f2 { bottom: 14%; left: -2%; } .f3 { display: none; } .f-bar { width: 100px; } }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* Stats strip */
.stats { position: relative; padding: 8px 0 8px; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.stat { padding: 18px 18px 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat b { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.05; background: var(--hero); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 4px; color: var(--muted); font-weight: 650; font-size: 14.5px; }

/* Join (invite link) */
.join { display: none; padding: 48px 0 24px; }
html.is-join .join { display: block; }
html.is-join main > section:not(.join) { display: none; }
.join-card { max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 32px; padding: 32px 22px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line); }
.join-card .badge { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 14px 30px -12px rgba(124, 58, 237, 0.6); }
.join-card h1 { font-size: clamp(26px, 5vw, 34px); }
.join-card .lead { margin: 12px auto 0; }
.code { display: flex; justify-content: center; gap: 8px; margin: 24px 0 8px; }
.code span { width: 46px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--primary); font: 800 26px/1 ui-monospace, "SF Mono", Menlo, monospace; }
@media (max-width: 380px) { .code span { width: 40px; height: 52px; font-size: 22px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 18px; font-weight: 800; font-size: 16.5px; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--hero); color: #fff; box-shadow: 0 14px 30px -14px rgba(124, 58, 237, 0.8); width: 100%; margin-top: 18px; }
.btn-ghost { background: var(--soft); color: var(--primary); width: 100%; margin-top: 10px; }
.steps-mini { text-align: left; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.steps-mini li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--primary); font-weight: 800; font-size: 13px; }

/* Sections */
section.block { padding: 56px 0; }
@media (min-width: 980px) { section.block { padding: 88px 0; } }
.title { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.title h2 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 850; letter-spacing: -0.03em; }
.title p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Scrollytelling: steps on the left, a sticky phone that changes screens on the right */
.story { display: grid; gap: 20px; }
.step { position: relative; padding: 24px 20px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.step-n { align-self: flex-start; display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 10px; border-radius: 999px; font-weight: 850; font-size: 13px; letter-spacing: 0.06em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.step h3 { margin-top: 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 850; letter-spacing: -0.025em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.step ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.step li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.step li::before { content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: var(--hero); }
.step-shot { --w: min(260px, 70vw); margin: 22px auto 0; }
.story-stage { display: none; }
@media (min-width: 980px) {
  .story { grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: start; }
  .story-steps { display: grid; gap: 0; }
  .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 0.32; transition: opacity .5s ease; }
  .step.on { opacity: 1; }
  .step-shot { display: none; }
  .story-stage { display: block; align-self: stretch; }
  .story-sticky { position: sticky; top: max(76px, calc(50vh - 330px)); height: 660px; display: grid; place-items: center; }
  .story-device { --w: 300px; }
  .story-device img { position: absolute; top: calc(var(--w) * 0.03); left: calc(var(--w) * 0.03); width: calc(100% - var(--w) * 0.06); opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
  .story-device img:first-child { position: relative; top: 0; left: 0; width: 100%; }
  .story-device img.on { opacity: 1; transform: none; }
  .story-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
  .story-dots i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: transform .3s ease, background .3s ease; }
  .story-dots i.on { background: var(--primary); transform: scale(1.5); }
}
@media (min-width: 980px) and (max-height: 760px) {
  .story-sticky { height: 560px; top: 72px; }
  .story-device { --w: 250px; }
}

/* Gallery: two rows of screens drifting in opposite directions */
.gallery { overflow: hidden; }
.marquee { --w: 200px; display: flex; overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@media (min-width: 720px) { .marquee { --w: 230px; } }
.track { display: flex; gap: 26px; padding-right: 26px; flex: none; animation: marquee 48s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.device.mini { --w: inherit; width: var(--w); flex: none; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.marquee .device.mini:hover { transform: translateY(-8px) scale(1.03); }

/* Light / dark compare */
.duo { display: grid; gap: 30px; align-items: center; padding: 28px 22px; border-radius: 36px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr auto; padding: 48px 56px; gap: 56px; } }
.duo h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 850; letter-spacing: -0.03em; }
.duo p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 520px; }
.palette { display: flex; gap: 10px; margin-top: 22px; }
.palette i { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 8px 18px -10px var(--a); transition: transform .25s ease; }
.palette i:hover { transform: translateY(-3px) scale(1.08); }
.compare { --w: min(290px, 78vw); justify-self: center; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare .cmp-light { position: absolute; top: calc(var(--w) * 0.03); left: calc(var(--w) * 0.03); width: calc(100% - var(--w) * 0.06); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: calc(var(--w) * 0.03); bottom: calc(var(--w) * 0.03); left: calc(var(--w) * 0.03 + (100% - var(--w) * 0.06) * var(--p, 0.5)); width: 0; z-index: 3; pointer-events: none; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); }
.cmp-handle i { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45); }
.cmp-handle i::before, .cmp-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.cmp-handle i::before { left: 6px; border-right-color: #7c3aed; }
.cmp-handle i::after { right: 6px; border-left-color: #7c3aed; }
.cmp-label { position: absolute; z-index: 2; bottom: 9%; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.cmp-label.l { left: 9%; background: rgba(255, 255, 255, 0.85); color: #17142a; }
.cmp-label.d { right: 9%; background: rgba(13, 11, 22, 0.75); color: #fff; }
.cmp-range { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.compare:focus-within .cmp-handle i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 45%, transparent), 0 8px 24px -6px rgba(0, 0, 0, 0.45); }

/* Rollover example */
.week { display: grid; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 36px; padding: 26px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .week { grid-template-columns: 1fr 1fr; padding: 48px; } }
.week h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 850; letter-spacing: -0.03em; }
.week p { margin-top: 12px; color: var(--muted); }
.flow { display: grid; gap: 10px; }
.flow div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg-soft); font-weight: 700; }
.flow b { font-variant-numeric: tabular-nums; font-size: 18px; }
.flow .plus b { color: var(--good); }
.flow .total { background: var(--hero); color: #fff; box-shadow: 0 16px 30px -18px rgba(124, 58, 237, 0.9); }
.js .flow div { opacity: 0; transform: translateX(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .week.in .flow div { opacity: 1; transform: none; }
.js .week.in .flow div:nth-child(2) { transition-delay: .15s; }
.js .week.in .flow div:nth-child(3) { transition-delay: .3s; }
.js .week.in .flow div:nth-child(4) { transition-delay: .45s; }

/* How it works + cards with a pointer spotlight */
.how { display: grid; gap: 14px; counter-reset: h; padding: 0; margin: 0; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { list-style: none; counter-increment: h; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how li::before { content: counter(h); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--hero); color: #fff; font-weight: 850; margin-bottom: 14px; box-shadow: 0 12px 24px -12px rgba(124, 58, 237, 0.9); }
.how h3 { font-size: 18.5px; font-weight: 800; }
.how p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; background: color-mix(in srgb, var(--c, #7c3aed) 14%, transparent); }
.card h3 { font-size: 18.5px; font-weight: 800; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.spot { position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; transition: box-shadow .3s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 750; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }
.faq details[open] p { animation: open .35s ease; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Call to action */
.cta { position: relative; overflow: hidden; display: grid; gap: 10px; align-items: center; background: var(--hero); color: #fff; border-radius: 40px; padding: 44px 24px 0; }
.cta::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.18), transparent 30%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.cta > * { position: relative; }
.cta-copy { text-align: center; }
.cta h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 850; letter-spacing: -0.03em; }
.cta p { margin-top: 10px; opacity: 0.9; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #17142a; }
.cta-phones { display: flex; justify-content: center; gap: 18px; margin-top: 30px; height: 250px; overflow: hidden; }
.cta-phones .device { --w: 190px; transform: translateY(14px) rotate(-4deg); }
.cta-phones .device + .device { transform: translateY(44px) rotate(5deg); }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.1fr 0.9fr; padding: 56px 56px 0; }
  .cta-copy { text-align: left; padding-bottom: 56px; }
  .cta .stores { justify-content: flex-start; }
  .cta-phones { height: 360px; margin-top: 0; }
  .cta-phones .device { --w: 210px; }
}

/* Documents (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 44px 0 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 850; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .box { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--soft); }
.mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 18px; border-radius: 14px; background: var(--hero); color: #fff; font-weight: 800; }
.mail:hover { text-decoration: none; }

/* Footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); font-weight: 600; }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Copy-code button feedback */
#join-copy .done { display: none; }
#join-copy.copied .idle { display: none; }
#join-copy.copied .done { display: inline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .float, .glow, .hero h1 em, .shine, .f-bar i, .cta::before { animation: none !important; }
  .track { animation: none; }
  .marquee { overflow-x: auto; }
  .js .reveal, .js .flow div { opacity: 1; transform: none; transition: none; }
  .device-front { transition: none; }
  .card, .store, .device.mini, .story-device img { transition: none; }
}
