:root {
  --sp-bg: rgba(13, 18, 32, 0.92);
  --sp-text: #f8fafc;
  --sp-accent: #22d3ee;
  --sp-chip-bg: #ffffff;
  --sp-chip-text: #1f2937;
  --sp-chip-border: #e5e7eb;
  --sp-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-motion-spring: cubic-bezier(0.2, 0.9, 0.25, 1);
}

body.sp-motion-page {
  animation: spPageIn 0.52s var(--sp-motion-ease) both;
}

.sp-motion-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.985);
  will-change: transform, opacity;
  transition:
    opacity 0.56s var(--sp-motion-ease),
    transform 0.56s var(--sp-motion-ease);
  transition-delay: var(--sp-reveal-delay, 0ms);
}

.sp-motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.sp-motion-cta {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transition:
    transform 0.26s var(--sp-motion-spring),
    box-shadow 0.26s var(--sp-motion-spring),
    filter 0.22s ease;
}

.sp-motion-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  pointer-events: none;
  animation: spCtaSheen 2.9s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .sp-motion-cta:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.03);
  }
}

.sp-motion-cta:active {
  transform: translateY(1px) scale(0.985);
}

.sp-floating-proof {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2147483000;
  width: min(92vw, 440px);
  border-radius: 12px;
  background: var(--sp-bg);
  color: var(--sp-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.38);
  display: none !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sp-floating-proof.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sp-floating-proof:not(.is-visible) {
  transform: translateX(-50%) translateY(10px);
}

.sp-floating-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: spPulse 1.5s ease-out infinite;
  flex-shrink: 0;
}

.sp-floating-text {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f3f4f6;
}

.sp-floating-label {
  display: inline-block;
  margin-right: 7px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-topline {
  position: fixed;
  left: 50%;
  top: max(8px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 2147482900;
  width: min(92vw, 460px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 12px;
  pointer-events: none;
}

.sp-inline-chips {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.sp-inline-chip {
  background: var(--sp-chip-bg);
  color: var(--sp-chip-text);
  border: 1px solid var(--sp-chip-border);
  border-radius: 10px;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 6px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.sp-inline-chip strong {
  display: block;
  font-size: 12px;
  color: #111827;
  letter-spacing: 0;
  margin-top: 2px;
}

.sp-proof-panel {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sp-proof-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.sp-proof-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
  letter-spacing: 0.01em;
}

.sp-proof-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
  font-weight: 600;
}

.sp-proof-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-proof-item {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.sp-proof-item-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 7px;
}

.sp-proof-item strong {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 800;
}

.sp-proof-item p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
  font-weight: 600;
}

.sp-proof-meta {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 700;
}

@keyframes spPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes spPageIn {
  from {
    opacity: 0.86;
    transform: translate3d(0, 4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes spCtaSheen {
  0% {
    left: -45%;
  }
  100% {
    left: 118%;
  }
}

@media (max-width: 480px) {
  .sp-inline-chips {
    grid-template-columns: 1fr;
  }

  .sp-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-floating-proof,
  .sp-floating-dot,
  .sp-motion-reveal,
  .sp-motion-cta,
  .sp-motion-cta::after,
  body.sp-motion-page {
    animation: none !important;
    transition: none !important;
  }

  .sp-motion-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

html.perf-lite .sp-topline,
html.perf-lite .sp-floating-proof {
  display: none !important;
}

html.perf-lite .sp-motion-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html.perf-lite .sp-motion-cta,
html.perf-lite .sp-motion-cta::after,
html.perf-lite body.sp-motion-page {
  animation: none !important;
  transition: none !important;
}
