/* Reco Social funnel — light, mobile-first, single column */

:root {
  --bg: #faf8fe;
  --card: #ffffff;
  --ink: #1a1426;
  --muted: #5d546e;
  --faint: #8d84a0;
  --line: rgba(26, 20, 38, 0.1);
  --grad: linear-gradient(135deg, #2e63f6 0%, #7b3ff2 48%, #f0559a 100%);
  --purple: #7b3ff2;
  --pink: #f0559a;
  --yellow: #ffd83d;
  --display: "Space Grotesk", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --shadow: 0 18px 45px rgba(123, 63, 242, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 96px;
}

::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

/* Soft pastel background glows */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.orbs i:nth-child(1) { width: 360px; height: 360px; top: -140px; left: 50%; margin-left: -240px; background: rgba(123, 63, 242, 0.28); animation: drift 12s ease-in-out infinite alternate; }
.orbs i:nth-child(2) { width: 280px; height: 280px; top: 36%; right: -120px; background: rgba(240, 85, 154, 0.22); animation: drift 15s ease-in-out -4s infinite alternate-reverse; }
.orbs i:nth-child(3) { width: 300px; height: 300px; bottom: -140px; left: -120px; background: rgba(46, 99, 246, 0.2); animation: drift 18s ease-in-out -8s infinite alternate; }

.funnel {
  width: min(430px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 10px;
  text-align: center;
}

/* Entrance choreography */
.anim { opacity: 0; animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-1 { animation-delay: 60ms; }
.anim-2 { animation-delay: 160ms; }
.anim-3 { animation-delay: 260ms; }
.anim-4 { animation-delay: 360ms; }
.anim-5 { animation-delay: 460ms; }
.anim-6 { animation-delay: 560ms; }
.anim-7 { animation-delay: 660ms; }
.anim-8 { animation-delay: 780ms; }
.anim-9 { animation-delay: 880ms; }

.app-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(123, 63, 242, 0.35);
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms both, logo-float 4s ease-in-out 1s infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 18px;
  border: 1px solid rgba(123, 63, 242, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--purple);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 18px rgba(123, 63, 242, 0.12);
  backdrop-filter: blur(8px);
}

.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: blink 1.6s ease-in-out infinite; }

.title {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 62px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rotator {
  display: inline-block;
  min-height: 1.1em;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.rotator.is-out {
  opacity: 0;
  transform: translateY(14px);
}

.sub { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.sub strong { color: var(--ink); }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stats div { min-width: 0; padding: 16px 4px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stats span { display: block; margin-top: 5px; color: var(--faint); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; }

/* Activity ticker */
.ticker {
  margin-top: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track { display: flex; gap: 10px; width: max-content; animation: tick 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }

.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(123, 63, 242, 0.08);
}

.tick b {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
}

.tick em { color: var(--faint); font-style: normal; }

.tick-amount {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Steps card */
.steps {
  margin-top: 18px;
  padding: 10px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  text-align: left;
  box-shadow: var(--shadow);
}

.steps ol { margin: 0; padding: 0; list-style: none; }

.steps li { position: relative; display: flex; gap: 16px; padding: 18px 0; }
.steps li + li { border-top: 1px solid var(--line); }

.steps .n {
  flex: 0 0 auto;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(240, 85, 154, 0.35);
}

.steps strong { font-size: 16px; letter-spacing: -0.01em; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* Main CTA */
.cta-big {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  margin-top: 22px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(240, 85, 154, 0.4);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cta-big::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  content: "";
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.cta-big span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.cta-big:hover { filter: brightness(1.08); box-shadow: 0 18px 44px rgba(240, 85, 154, 0.5); transform: translateY(-2px); }
.cta-big:active { transform: translateY(2px); }

.trust { margin: 14px 0 0; color: var(--faint); font-size: 12px; font-weight: 500; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 50;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(123, 63, 242, 0.25);
  backdrop-filter: blur(14px);
}

.foot { width: min(430px, calc(100% - 40px)); margin: 26px auto 0; text-align: center; color: var(--faint); font-size: 12px; line-height: 1.6; }
.foot a { color: var(--muted); }
.foot .fine { margin-top: 8px; font-size: 10.5px; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-30px, 30px, 0) scale(1.12); } }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes shine { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

@media (min-width: 520px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim { opacity: 1; }
}
