/* Trolly landing — brand tokens from src/constants/brand.ts */
:root {
  --deep-indigo: #312e81;
  --indigo: #4f46e5;
  --periwinkle: #a5b4fc;
  --panel-bg: #f6f6fd;
  --white: #ffffff;
  --muted: #6366a0;
  --border: #e8e8f2;
  --money: #0d9488;
  --shadow-sm: 0 2px 8px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px rgba(49, 46, 129, 0.1);
  --shadow-lg: 0 24px 64px rgba(49, 46, 129, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--deep-indigo);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--indigo);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    opacity 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
  text-decoration: none;
}

.btn-secondary {
  background: var(--panel-bg);
  color: var(--deep-indigo);
}

.btn-secondary:hover {
  background: #ececf8;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  min-height: 48px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  70%,
  100% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: auto;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 232, 242, 0.8);
  transition: box-shadow 0.3s var(--ease-out);
  padding-top: env(safe-area-inset-top, 0);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-wordmark {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--deep-indigo);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--indigo);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nav-cta:hover {
  background: #4338ca;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep-indigo);
  border-radius: 2px;
  transition: transform 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 0.75rem 0;
  color: var(--deep-indigo);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open {
  display: flex;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(165, 180, 252, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(79, 70, 229, 0.12), transparent),
    radial-gradient(ellipse 40% 50% at 60% 80%, rgba(13, 148, 136, 0.08), transparent);
  animation: mesh-shift 18s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-2%, 2%) scale(1.05);
  }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: blob-float 12s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--periwinkle);
  top: -10%;
  right: -5%;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(79, 70, 229, 0.25);
  bottom: 20%;
  left: -8%;
  animation-delay: -4s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(13, 148, 136, 0.2);
  top: 40%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(20px, -30px);
  }
  66% {
    transform: translate(-15px, 20px);
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 46, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 46, 129, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 2rem 4rem;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--panel-bg);
  border: 1px solid rgba(165, 180, 252, 0.4);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--money);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--indigo) 0%, #7c3aed 50%, var(--money) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  white-space: nowrap;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--deep-indigo);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--indigo);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero visual / phone mock */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.phone-mock {
  position: relative;
  width: 280px;
  background: var(--deep-indigo);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--deep-indigo);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-screen {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  padding: 2.5rem 1rem 1.25rem;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.mock-wheel {
  flex-shrink: 0;
}

.mock-total {
  margin-left: auto;
  color: var(--money);
  font-weight: 800;
}

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

.mock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  background: var(--panel-bg);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: item-in 0.6s var(--ease-out) backwards;
}

.mock-item:nth-child(1) {
  animation-delay: 0.2s;
}
.mock-item:nth-child(2) {
  animation-delay: 0.35s;
}
.mock-item:nth-child(3) {
  animation-delay: 0.5s;
}
.mock-item:nth-child(4) {
  animation-delay: 0.65s;
}
.mock-item:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mock-item.checked span:first-child {
  text-decoration: line-through;
  opacity: 0.55;
}

.mock-item .sale {
  color: var(--money);
  font-weight: 700;
}

.mock-item.adding {
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--muted);
  justify-content: center;
}

.mock-progress {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.mock-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.mock-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--indigo), var(--periwinkle));
  border-radius: 999px;
  animation: progress-grow 2s var(--ease-out) 1s backwards;
}

@keyframes progress-grow {
  from {
    width: 0;
  }
  to {
    width: 60%;
  }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 232, 242, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  z-index: 4;
}

.float-card strong {
  display: block;
  font-weight: 700;
  color: var(--deep-indigo);
}

.float-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.float-card-1 {
  top: 8%;
  right: -4%;
}

.float-card-2 {
  bottom: 18%;
  left: -8%;
}

.sale-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--money), #14b8a6);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
}

.hero-wheel {
  position: absolute;
  bottom: -2%;
  right: 8%;
  opacity: 0.15;
  z-index: 1;
}

.spin-slow {
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.float {
  animation: float 5s ease-in-out infinite;
}

.float-delay-1 {
  animation: float 5s ease-in-out infinite;
}
.float-delay-2 {
  animation: float 5s ease-in-out 0.8s infinite;
}
.float-delay-3 {
  animation: float 5s ease-in-out 1.6s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Marquee */
.marquee-wrap {
  position: relative;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  background: rgba(246, 246, 253, 0.6);
  overflow: hidden;
  margin-top: auto;
}

.marquee {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ─── Sections ─── */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--panel-bg);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: var(--periwinkle);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(165, 180, 252, 0.6);
}

.lottie-wrap {
  width: 100px;
  height: 100px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lottie-wrap lottie-player {
  width: 100px !important;
  height: 100px !important;
}

/* Animated cart illustration */
.anim-cart .cart-body {
  animation: cart-bob 2.5s ease-in-out infinite;
  transform-origin: 60px 70px;
}

.anim-cart .cart-handle {
  animation: cart-handle 2.5s ease-in-out infinite;
  transform-origin: 60px 46px;
}

.anim-cart .cart-wheel {
  animation: cart-wheel 2.5s linear infinite;
  transform-origin: center;
}

.anim-cart .cart-item {
  animation: cart-item-pop 2.5s var(--ease-spring) infinite;
  transform-origin: center;
}

@keyframes cart-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-2deg);
  }
}

@keyframes cart-handle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

@keyframes cart-wheel {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cart-item-pop {
  0%,
  70%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  80% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.mini-anim {
  flex-shrink: 0;
}

.feature-svg {
  width: 100px;
  height: 100px;
}

.svg-pop {
  transform-origin: center;
  animation: svg-pop 2.5s var(--ease-spring) infinite;
}

@keyframes svg-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.svg-float-1 {
  animation: svg-float 3s ease-in-out infinite;
}
.svg-float-2 {
  animation: svg-float 3s ease-in-out 0.5s infinite;
}

@keyframes svg-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.svg-draw {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: svg-draw 2s var(--ease-out) forwards infinite;
}

@keyframes svg-draw {
  0% {
    stroke-dashoffset: 80;
  }
  50%,
  100% {
    stroke-dashoffset: 0;
  }
}

.svg-compass {
  transform-origin: 60px 60px;
  animation: compass-spin 6s linear infinite;
}

@keyframes compass-spin {
  to {
    transform: rotate(360deg);
  }
}

.svg-card {
  animation: card-tilt 4s ease-in-out infinite;
}

@keyframes card-tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.svg-sync {
  animation: sync-spin 3s ease-in-out infinite;
}

@keyframes sync-spin {
  0%,
  100% {
    transform: rotate(0deg);
    transform-origin: 60px 60px;
  }
  50% {
    transform: rotate(180deg);
    transform-origin: 60px 60px;
  }
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 48rem;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--periwinkle);
  line-height: 1;
}

.step-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-visual {
  width: 100px;
  height: 64px;
  background: var(--panel-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.typing-line {
  height: 8px;
  width: 70px;
  background: var(--periwinkle);
  border-radius: 4px;
  margin: 4px auto;
  animation: typing 1.5s ease-in-out infinite;
}

.typing-line.short {
  width: 45px;
  animation-delay: 0.2s;
}
.typing-line.medium {
  width: 55px;
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.live-total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--money);
}

.live-bar {
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.live-bar-fill {
  height: 100%;
  width: 70%;
  background: var(--indigo);
  border-radius: 999px;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    width: 50%;
  }
  50% {
    width: 85%;
  }
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  margin-left: -8px;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--periwinkle);
  color: var(--deep-indigo);
}

.avatar-stack span:last-child {
  background: var(--panel-bg);
  color: var(--indigo);
}

/* Testimonials carousel */
.testimonials {
  background: linear-gradient(180deg, var(--white) 0%, var(--panel-bg) 100%);
  overflow: hidden;
}

.testimonial-carousel {
  max-width: 40rem;
  margin: 0 auto;
}

.testimonial-viewport {
  position: relative;
  min-height: 220px;
  margin-bottom: 1.75rem;
}

.testimonial-track {
  position: relative;
}

.testimonial-slide {
  margin: 0;
  padding: 2rem 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(32px) scale(0.97);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    visibility 0.55s;
  pointer-events: none;
}

.testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testimonial-slide.is-exiting {
  position: absolute;
  opacity: 0;
  transform: translateX(-32px) scale(0.97);
}

.testimonial-slide p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--deep-indigo);
  font-weight: 500;
}

.testimonial-slide footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-slide .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(49, 46, 129, 0.15);
}

.avatar-a {
  background: linear-gradient(135deg, var(--indigo), var(--periwinkle));
}
.avatar-b {
  background: linear-gradient(135deg, #7c3aed, var(--indigo));
}
.avatar-c {
  background: linear-gradient(135deg, var(--money), #14b8a6);
}
.avatar-d {
  background: linear-gradient(135deg, #312e81, #6366f1);
}
.avatar-e {
  background: linear-gradient(135deg, #4338ca, #a5b4fc);
}
.avatar-f {
  background: linear-gradient(135deg, #0d9488, #4f46e5);
}

.testimonial-slide cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.testimonial-slide footer span {
  font-size: 0.82rem;
  color: var(--muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--deep-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.testimonial-arrow:hover {
  background: var(--panel-bg);
  border-color: var(--periwinkle);
  transform: scale(1.05);
}

.testimonial-arrow:active {
  transform: scale(0.96);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition:
    width 0.35s var(--ease-out),
    background 0.25s;
}

.testimonial-dot.is-active {
  width: 28px;
  background: var(--indigo);
}

.testimonial-dot:hover:not(.is-active) {
  background: var(--periwinkle);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA */
.cta-section {
  padding-bottom: 7rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-indigo) 0%, #1e1b4b 50%, var(--indigo) 100%);
  border-radius: 32px;
  padding: 4rem 3rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
}

.cta-wheel {
  filter: brightness(2);
}

.cta-content {
  position: relative;
  max-width: 32rem;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta-sub {
  color: var(--periwinkle);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.25s,
    transform 0.25s var(--ease-out);
  backdrop-filter: blur(8px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

.store-btn small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.8;
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(165, 180, 252, 0.85);
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--panel-bg);
}

.footer-inner {
  text-align: center;
}

.footer-inner img {
  margin: 0 auto 0.75rem;
  opacity: 0.9;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--indigo);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Invite screen ─── */
.invite-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.invite-screen[hidden] {
  display: none !important;
}

.invite-bg {
  position: absolute;
  inset: 0;
  background: var(--panel-bg);
  overflow: hidden;
}

.invite-bg .blob-a {
  width: 400px;
  height: 400px;
  background: var(--periwinkle);
  top: -20%;
  right: -10%;
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-float 14s ease-in-out infinite;
}

.invite-bg .blob-b {
  width: 300px;
  height: 300px;
  background: rgba(79, 70, 229, 0.3);
  bottom: -10%;
  left: -5%;
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-float 14s ease-in-out -5s infinite;
}

.invite-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.invite-wheel-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  animation: invite-pulse 2s ease-out infinite;
}

@keyframes invite-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.invite-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.invite-status {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.invite-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0;
  line-height: 1.6;
}

.invite-download {
  margin-top: 1rem;
}

.invite-get-app {
  width: 100%;
}

.invite-fallback {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
  line-height: 1.6;
}

.invite-code-wrap {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--panel-bg);
  border-radius: 12px;
}

.invite-code-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.invite-code {
  display: block;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--deep-indigo);
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.invite-home {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.invite-home:hover {
  color: var(--indigo);
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ─── Responsive ─── */

/* Tablet landscape / small desktop */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .testimonial-carousel {
    max-width: 36rem;
  }
}

/* Tablet portrait */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-block: 1.5rem 2.5rem;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 380px;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .float-card-1 {
    right: 0;
  }

  .float-card-2 {
    left: 0;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1.75rem;
  }

  .step-visual {
    margin: 0 auto;
  }

  .cta-bg .cta-wheel {
    width: 120px;
    height: 120px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-head {
    margin-bottom: 2rem;
    padding-inline: 0.25rem;
  }

  .section-sub {
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  }

  .hero-grid {
    padding-block: 1rem 1.75rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    margin-bottom: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    align-items: center;
    text-align: center;
  }

  .stat-num {
    font-size: 1.45rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .phone-mock {
    width: min(260px, 88vw);
  }

  .float-card {
    font-size: 0.72rem;
    padding: 0.55rem 0.7rem;
    max-width: calc(50% - 0.5rem);
  }

  .float-card strong {
    font-size: 0.72rem;
  }

  .float-card span {
    font-size: 0.68rem;
  }

  .float-card-1 {
    top: 4%;
    right: 2%;
  }

  .float-card-2 {
    bottom: 6%;
    left: 2%;
  }

  .hero-wheel {
    width: 72px;
    height: 72px;
    opacity: 0.1;
    right: 4%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.35rem 1.25rem;
  }

  .feature-card:hover {
    transform: none;
  }

  .step {
    padding: 1.25rem 1.15rem;
    gap: 0.85rem;
  }

  .step-num {
    font-size: 1.5rem;
  }

  .testimonial-carousel {
    max-width: 100%;
  }

  .testimonial-viewport {
    min-height: 0;
  }

  .testimonial-slide {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .testimonial-slide p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.15rem;
  }

  .testimonial-controls {
    gap: 0.65rem;
    padding-inline: 0.25rem;
  }

  .testimonial-arrow {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .cta-section {
    padding-bottom: 4rem;
  }

  .cta-card {
    border-radius: 22px;
    padding: 2.25rem 1.35rem;
  }

  .cta-bg {
    opacity: 0.07;
    right: -25%;
  }

  .site-footer {
    padding: 2.5rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.5rem;
  }

  .invite-screen {
    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .invite-card {
    padding: 1.75rem 1.15rem;
    border-radius: 22px;
  }

  .invite-title {
    font-size: 1.3rem;
  }

  .marquee {
    font-size: 0.75rem;
  }
}

/* Small phones */
@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .store-buttons {
    flex-direction: column;
  }

  .store-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, calc(100% - 1.15rem));
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.5vw, 2.35rem);
  }

  .logo-wordmark {
    height: 30px;
    width: auto;
  }

  .float-card-2 {
    display: none;
  }

  .hero-visual {
    min-height: 290px;
  }

  .phone-mock {
    width: min(240px, 86vw);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 14rem;
  }

  .testimonial-dots {
    gap: 0.35rem;
  }

  .testimonial-dot.is-active {
    width: 22px;
  }

  .section {
    padding: 2.75rem 0;
  }

  .btn-lg {
    padding: 0.85rem 1.15rem;
    font-size: 0.92rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-sub {
    font-size: 0.95rem;
  }
}

/* Tablet-only polish */
@media (min-width: 769px) and (max-width: 960px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
  }

  .hero-actions .btn {
    width: auto;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .testimonial-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .testimonial-slide:not(.is-active) {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}
