:root {
  --sp-white: #f3f3f3;
  --sp-white-rgb: 243, 243, 243;
  --sp-purple: #3b0d7c;
  --sp-purple-rgb: 59, 13, 124;
  --sp-red: #e13333;
  --sp-red-rgb: 225, 51, 51;
  --sp-dark: #1d1d1d;
  --sp-dark-soft: #262626;
  --sp-dark-card: #242424;
  --sp-border: rgba(var(--sp-white-rgb), 0.08);
  --sp-text-muted: rgba(var(--sp-white-rgb), 0.65);
}

* {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sp-white);
  color: var(--sp-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* White sections use purple accents; dark sections use red accents. */
.sp-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-purple);
  margin-bottom: 0.9rem;
}
.sp-section-dark .sp-eyebrow {
  color: var(--sp-red);
}

.sp-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.sp-section-lead {
  max-width: 46rem;
  font-size: 1.05rem;
  color: var(--sp-text-muted);
}

.sp-section-dark .sp-section-lead,
.sp-section-dark p {
  color: rgba(var(--sp-white-rgb), 0.7);
}

/* ===== Buttons ===== */
.btn-sp-primary {
  background-color: var(--sp-purple);
  border: 2px solid var(--sp-purple);
  color: var(--sp-white);
  font-weight: 700;
  border-radius: 5px;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-sp-primary:hover {
  background-color: #2f0a63;
  border-color: #2f0a63;
  color: var(--sp-white);
  transform: translateY(-2px);
}

.btn-sp-outline {
  background-color: transparent;
  border: 2px solid rgba(29, 29, 29, 0.25);
  color: var(--sp-dark);
  font-weight: 700;
  border-radius: 5px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-sp-outline:hover {
  border-color: var(--sp-dark);
  color: var(--sp-dark);
  transform: translateY(-2px);
}

/* ===== Navbar (white bg -> purple) ===== */
.sp-navbar {
  background-color: rgba(var(--sp-white-rgb), 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 29, 29, 0.08);
  transition: box-shadow 0.2s ease;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.sp-navbar.sp-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.sp-brand-mark {
  height: 56px;
  width: auto;
}
.sp-brand-logo {
  height: 24px;
  width: auto;
}
.navbar .nav-link {
  color: var(--sp-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.navbar .nav-link:hover {
  color: var(--sp-purple);
}

/* ===== Hero (white bg -> purple) ===== */
.sp-hero {
  position: relative;
  padding: 8.5rem 0 5rem;
  background: linear-gradient(180deg, var(--sp-white) 0%, #f7eefc 100%);
  overflow: hidden;
}

.sp-hero-mark {
  position: absolute;
  top: 40px;
  right: -40px;
  width: 480px;
  height: auto;
  opacity: 0.1;
  filter: invert(8%) sepia(58%) saturate(4000%) hue-rotate(258deg) brightness(75%) contrast(105%);
  pointer-events: none;
  z-index: 0;
}

.sp-hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
  color: var(--sp-dark);
}

.sp-hero-lead {
  font-size: 1.12rem;
  color: rgba(29, 29, 29, 0.72);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.sp-hero-stats {
  border-top: 1px solid rgba(29, 29, 29, 0.1);
  padding-top: 1.5rem;
}
.sp-stat-num {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--sp-dark);
}
.sp-stat-label {
  font-size: 0.82rem;
  color: rgba(29, 29, 29, 0.55);
}

.sp-hero-phone-wrap {
  position: relative;
}
.sp-hero-phone {
  max-height: 620px;
  width: auto;
  filter: drop-shadow(0 30px 45px rgba(29, 29, 29, 0.22));
}

/* ===== Sub-page header (white bg -> purple) ===== */
.sp-page-header {
  padding: 9.5rem 0 3rem;
  background: linear-gradient(180deg, var(--sp-white) 0%, #f7eefc 100%);
}
/* Single-card page: fill the viewport so the footer never floats mid-screen. */
.sp-page-single {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 6rem);
  padding-bottom: 5rem;
}
.sp-page-single > .container {
  width: 100%;
}
.sp-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--sp-dark);
}

/* ===== Contact card (white bg -> purple) ===== */
.sp-contact-card {
  background-color: var(--sp-white);
  border: 1px solid rgba(var(--sp-purple-rgb), 0.25);
  border-radius: 5px;
  padding: 2.75rem 2rem;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.sp-policy-text {
  font-size: 1.05rem;
  color: rgba(29, 29, 29, 0.72);
  margin-bottom: 2rem;
}
.sp-policy-text a {
  color: var(--sp-purple);
  font-weight: 700;
}

/* ===== Store badges =====
   Both assets are edge-to-edge (no built-in padding), so one shared height
   lines them up despite their different aspect ratios (Apple 2.99:1,
   Google 3.38:1). The links must not shrink and the images must escape the
   global img{max-width:100%}, or a narrow column squeezes the wider Google
   badge more than the Apple one and the two stop matching. */
.sp-store-badges a {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.sp-store-badge {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  transition: transform 0.15s ease;
}
.sp-store-badges a:hover .sp-store-badge {
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.sp-section {
  padding: 6rem 0;
}
.sp-section-dark {
  background-color: var(--sp-dark);
  color: var(--sp-white);
}
.sp-section-dark .sp-h2 {
  color: var(--sp-white);
}

.sp-section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

/* ===== Feature cards (white bg -> purple) ===== */
.sp-card {
  background-color: var(--sp-white);
  border: 1px solid rgba(29, 29, 29, 0.08);
  border-radius: 5px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(29, 29, 29, 0.09);
  border-color: rgba(var(--sp-purple-rgb), 0.35);
}
.sp-icon {
  width: 52px;
  height: 52px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sp-purple-rgb), 0.15);
  color: var(--sp-purple);
  margin-bottom: 1.25rem;
}
.sp-icon svg {
  width: 26px;
  height: 26px;
}
.sp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--sp-dark);
}
.sp-card-text {
  font-size: 0.95rem;
  color: rgba(29, 29, 29, 0.65);
  margin-bottom: 0;
}

/* ===== Dla kogo (dark bg -> red) ===== */
.sp-target-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(var(--sp-white-rgb), 0.1);
}
.sp-target-list li:first-child {
  padding-top: 0;
}
.sp-target-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sp-target-mark {
  flex: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--sp-red);
  border: 2px solid rgba(var(--sp-red-rgb), 0.4);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-target-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sp-white);
  margin-bottom: 0.35rem;
}
.sp-target-text {
  font-size: 0.95rem;
  color: rgba(var(--sp-white-rgb), 0.65);
  margin-bottom: 0;
}

/* ===== Screenshots (white bg -> purple) ===== */
.sp-screen-glow {
  position: relative;
  display: inline-block;
  padding: 1.5rem;
  border-radius: 5px;
}
.sp-screen-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: radial-gradient(circle at 50% 30%, rgba(var(--sp-purple-rgb), 0.22), transparent 70%);
  z-index: 0;
}
.sp-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  border-radius: 5px;
  box-shadow: 0 25px 45px rgba(29, 29, 29, 0.16);
}
.sp-screen-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(29, 29, 29, 0.6);
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Jak to działa (dark bg -> red) ===== */
.sp-soon-card {
  background-color: var(--sp-dark-card);
  border: 1px solid var(--sp-border);
  border-radius: 5px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sp-soon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--sp-red-rgb), 0.5);
}
.sp-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-red);
  background-color: rgba(var(--sp-red-rgb), 0.14);
  border: 1px solid rgba(var(--sp-red-rgb), 0.35);
  border-radius: 5px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.9rem;
}
.sp-soon-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sp-white);
  margin-bottom: 0.5rem;
}
.sp-soon-text {
  font-size: 0.9rem;
  color: rgba(var(--sp-white-rgb), 0.6);
  margin-bottom: 0;
}

/* ===== Footer (white bg -> purple) ===== */
.sp-footer {
  background-color: var(--sp-white);
  color: rgba(29, 29, 29, 0.7);
  padding: 3rem 0;
  border-top: 1px solid rgba(29, 29, 29, 0.1);
}
/* Light ground, so the logo renders exactly as drawn -- no filter, no variant. */
.sp-footer-logo {
  height: 30px;
  margin-bottom: 0.9rem;
}
.sp-footer-text {
  font-size: 0.9rem;
  color: rgba(29, 29, 29, 0.62);
}
.sp-footer-muted {
  font-size: 0.8rem;
  color: rgba(29, 29, 29, 0.45);
}
.sp-footer-links li {
  margin-bottom: 0.6rem;
}
.sp-footer-links a {
  color: rgba(29, 29, 29, 0.7);
  font-size: 0.92rem;
}
.sp-footer-links a:hover {
  color: var(--sp-purple);
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

@media (max-width: 991.98px) {
  .sp-hero { padding: 7rem 0 3.5rem; }
  .sp-hero-phone { max-height: 420px; }
}

@media (max-width: 575.98px) {
  .sp-store-badge { height: 42px; }
}
