/* ═══════════════════════════════════════════════════════════════════════════
   Design tokens — mirror the admin panel (AppColors, AppRadius, AppSpacing).
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --primary: #7F00FF;
  --primary-dark: #5C00C2;
  --primary-soft: #EEDCFF;
  --primary-surface: #F8F0FF;
  --primary-gradient: linear-gradient(135deg, #7F00FF 0%, #5C00C2 100%);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --surface: #FFFFFF;
  --surface-alt: #F8F9FC;
  --surface-muted: #F1F2F7;
  --border: #E5E7EF;
  --divider: #EDEFF5;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 14px 30px rgba(127, 0, 255, 0.28);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --container: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
           Helvetica, Arial, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Reset
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.3px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow chips above every section heading */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.eyebrow--chip {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════════════════════════════════════ */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(255,255,255,0.88);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(127, 0, 255, 0.22);
  overflow: hidden;
}
.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand__name {
  font-size: 18px;
  font-weight: 700;
}
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--primary); }
.nav__cta {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color .15s ease, color .15s ease;
}
.nav__cta:hover {
  border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  background:
    radial-gradient(1000px 500px at 20% 10%,
      rgba(127, 0, 255, 0.10), transparent 60%),
    radial-gradient(700px 400px at 80% 90%,
      rgba(92, 0, 194, 0.12), transparent 60%),
    linear-gradient(180deg, var(--primary-surface), var(--surface));
  padding: 96px 0 88px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  margin: 18px 0 14px;
  letter-spacing: -0.6px;
}
.hero__sub {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}
.hero__ctas {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform .14s ease, box-shadow .14s ease,
              background .14s ease, color .14s ease, border-color .14s ease;
  cursor: pointer;
  user-select: none;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
  border: 1px solid transparent;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(127, 0, 255, 0.36);
}
.btn--ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(127, 0, 255, 0.25);
}
.btn--ghost:hover {
  background: var(--primary-soft);
}

.hero__art {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 480px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-soft) 0%,
                              rgba(127, 0, 255, 0.2) 100%);
  box-shadow: 0 40px 80px rgba(127, 0, 255, 0.22);
  overflow: hidden;
}
.hero__art-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art--image {
  background: transparent;
  box-shadow: none;
}
.hero__art--image img {
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: contain;
  background: transparent;
  transform: scale(1.05);
  transform-origin: center;
}
.hero__glyph {
  width: 160px;
  height: 160px;
  border-radius: 40px;
  background: var(--surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}
.hero__badge-tl, .hero__badge-br {
  position: absolute;
  background: var(--surface);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}
.hero__badge-tl { top: 24px; left: 24px; }
.hero__badge-br { bottom: 24px; right: 24px; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy h1 { font-size: 38px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Stats
   ═══════════════════════════════════════════════════════════════════════════ */
.stats { padding: 48px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat { text-align: center; }
.stat__value {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.stat__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Section wrapper
   ═══════════════════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section--alt { background: var(--surface-alt); }
.section__head { text-align: center; margin-bottom: 44px; }
.section__head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Features
   ═══════════════════════════════════════════════════════════════════════════ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features__grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-xs);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(127, 0, 255, 0.2);
}
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(127, 0, 255, 0.2);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 700; }
.feature p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   How it works
   ═══════════════════════════════════════════════════════════════════════════ */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .steps__grid { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.step__num {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 700; }
.step p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Testimonials
   ═══════════════════════════════════════════════════════════════════════════ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonials__grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.testimonial__stars { display: flex; gap: 2px; color: #FAB005; }
.testimonial__stars svg { width: 18px; height: 18px; }
.testimonial__quote {
  margin: 14px 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
}
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 700; font-size: 13.5px; }
.testimonial__role {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   App download
   ═══════════════════════════════════════════════════════════════════════════ */
.download {
  position: relative;
  background: var(--primary-gradient);
  color: #fff;
  padding: 64px 56px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: 0 44px 80px rgba(127, 0, 255, 0.35);
  overflow: hidden;
  isolation: isolate;
}
/* Decorative floating light blobs */
.download__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.download__blob--a {
  width: 300px; height: 300px;
  top: -80px; left: -100px;
  background: rgba(255, 255, 255, 0.25);
}
.download__blob--b {
  width: 380px; height: 380px;
  bottom: -140px; right: -120px;
  background: rgba(0, 0, 0, 0.25);
}
.download__copy, .download__art { position: relative; z-index: 1; }

.download__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.download h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.download p {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  max-width: 440px;
}

.download__perks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
}
.download__perks-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download__buttons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: #fff;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
.store-btn:hover {
  background: #fff;
  color: var(--text-primary);
  transform: translateY(-1px);
}
.store-btn:hover .store-btn__icon { color: var(--primary); }
.store-btn__icon { color: #fff; }
.store-btn__icon svg { width: 24px; height: 24px; }
.store-btn__sub { font-size: 10.5px; letter-spacing: 0.3px; opacity: 0.8; }
.store-btn__label { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* Greyed-out state shown when the admin hasn't configured a store URL. */
.store-btn--disabled {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  pointer-events: auto; /* keep tooltip visible */
}
.store-btn--disabled:hover {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
  transform: none;
}
.store-btn--disabled:hover .store-btn__icon { color: rgba(255, 255, 255, 0.6); }

/* ── Phone mockup ──────────────────────────────────────────────────────── */
.download__art {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* If the admin set previewImageUrl, JS replaces #download-art's children
   with an <img>. These styles give that image a nice frame. */
.download__art img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 36px;
  border: 10px solid #0f172a;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19;
  background: #0f172a;
  border-radius: 40px;
  padding: 12px 10px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}
.phone__home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #F8F0FF 0%, #FFFFFF 40%);
  border-radius: 28px;
  padding: 40px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-primary);
  overflow: hidden;
}
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 6px;
  margin-top: -20px;
  margin-bottom: 4px;
}
.phone__status-icons { display: flex; gap: 4px; }
.phone__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.7;
}
.phone__app-header { padding: 0 4px; }
.phone__app-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.phone__app-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.phone__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.phone__tile {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.phone__tile--primary {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(127, 0, 255, 0.35);
}
.phone__tile-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone__tile--primary .phone__tile-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.phone__tile-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1px;
}
.phone__tile--primary .phone__tile-name { color: #fff; }

.phone__card {
  margin-top: auto;
  background: var(--surface);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--divider);
}
.phone__card-row { display: flex; align-items: center; gap: 8px; }
.phone__card-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__card-body { flex: 1; min-width: 0; }
.phone__card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone__card-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.phone__card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FEF3C7;
  color: #9A6A00;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.phone__card-rating svg { color: #FAB005; }
.phone__card-progress {
  margin-top: 8px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-muted);
  overflow: hidden;
}
.phone__card-progress-fill {
  height: 100%;
  width: 62%;
  border-radius: 4px;
  background: var(--primary-gradient);
}

@media (max-width: 860px) {
  .download {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
    text-align: center;
  }
  .download p, .download__perks { margin-left: auto; margin-right: auto; }
  .download__perks { max-width: 320px; }
  .download__buttons { justify-content: center; }
  .download__copy { display: flex; flex-direction: column; align-items: center; }
  .download h2 { max-width: 520px; }
  .download__art { margin-top: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.faq__item.open {
  background: rgba(238, 220, 255, 0.45);
  border-color: rgba(127, 0, 255, 0.35);
}
.faq__head { display: flex; align-items: center; gap: 12px; }
.faq__q {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.faq__chev {
  color: var(--primary);
  transition: transform .18s ease;
}
.faq__chev svg { width: 20px; height: 20px; }
.faq__item.open .faq__chev { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease, margin-top .22s ease;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}
.faq__item.open .faq__a { max-height: 600px; margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 56px 0;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { font-size: 22px; font-weight: 800; }
.footer__tag {
  margin-top: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.footer__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.footer__social:hover { background: var(--primary); }
.footer__social svg { width: 18px; height: 18px; }
.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 32px 0 20px;
}
.footer__copy { color: rgba(255,255,255,0.55); font-size: 12px; }
