/**
 * Afripay Sales Funnel homepage — dark neon SaaS (mockup).
 * Scoped to body.afh-premium
 */
body.afh-premium {
  --afh-bg: #020617;
  --afh-bg-2: #07111f;
  --afh-card: rgba(10, 15, 30, 0.75);
  --afh-accent: #22c55e;
  --afh-accent-hover: #16a34a;
  --afh-text: #ffffff;
  --afh-muted: #94a3b8;
  --afh-border: rgba(255, 255, 255, 0.08);
  --afh-glass-bg: rgba(255, 255, 255, 0.03);
  --afh-glass-border: rgba(255, 255, 255, 0.06);
  --afh-glow: 0 0 30px rgba(34, 197, 94, 0.15);
  --afh-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 35%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 35%),
    var(--afh-bg) !important;
  color: var(--afh-text);
  overflow-x: clip;
  scroll-behavior: auto;
}

/* Stable stacking — do not break sticky nav or fixed noise */
body.afh-premium > .noise {
  position: fixed !important;
  z-index: 0 !important;
}

body.afh-premium > header.topnav {
  position: sticky !important;
  top: 0;
  z-index: 100 !important;
}

body.afh-premium > main {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

body.afh-premium .noise {
  opacity: 0.04;
}

body.afh-premium .container {
  max-width: 1180px;
}

/* —— Nav —— */
body.afh-premium .afh-topnav {
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.afh-premium .afh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 0;
}

body.afh-premium .afh-nav-inner > .al-brand {
  flex-shrink: 0;
}

body.afh-premium .afh-nav-inner > .afh-nav-actions {
  flex: 1;
  margin-left: 0;
  justify-content: center;
  min-width: 0;
}

body.afh-premium .afh-nav-inner > .afh-nav-cta--bar {
  flex-shrink: 0;
  margin-left: auto;
}

body.afh-premium .afh-nav-cta--menu {
  display: none;
}

body.afh-premium .afh-nav-menu a:not(.btn) {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s, text-shadow 0.2s;
}

body.afh-premium .afh-nav-menu a:not(.btn):hover {
  color: var(--afh-accent);
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

body.afh-premium .afh-nav-cta {
  background: var(--afh-accent) !important;
  color: #020617 !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-nav-cta:hover {
  background: var(--afh-accent-hover) !important;
  transform: translateY(-1px);
}

@media (min-width: 901px) {
  body.afh-premium .afh-nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  body.afh-premium .afh-nav-inner > .afh-nav-cta--bar {
    display: inline-flex !important;
    margin-left: auto;
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  body.afh-premium .afh-nav-cta--menu {
    display: none !important;
  }

  body.afh-premium .afh-nav-inner > .afh-nav-actions {
    flex: 0 0 auto;
    margin-left: 8px;
  }
}

/* —— Shared —— */
body.afh-premium .afh-section {
  padding: 72px 0;
}

body.afh-premium .afh-section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--afh-text);
}

body.afh-premium .afh-section-sub {
  text-align: center;
  color: var(--afh-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.6;
}

body.afh-premium .afh-accent {
  color: var(--afh-accent);
}

body.afh-premium .glass-card,
body.afh-premium .afh-glass {
  background: var(--afh-glass-bg);
  border: 1px solid var(--afh-glass-border);
  backdrop-filter: blur(14px);
  border-radius: var(--afh-radius);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.08);
}

body.afh-premium .btn-primary {
  background: var(--afh-accent) !important;
  color: #020617 !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: var(--afh-glow);
}

body.afh-premium .btn-primary:hover {
  background: var(--afh-accent-hover) !important;
}

body.afh-premium .btn-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--afh-glass-border) !important;
  color: var(--afh-text) !important;
  border-radius: 999px !important;
}

/* Opacity-only reveals — no transform (prevents scroll/layout jitter) */
body.afh-premium .afh-reveal {
  opacity: 1;
}

body.afh-premium.afh-js .afh-reveal {
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity;
}

body.afh-premium.afh-js .afh-reveal.is-visible {
  opacity: 1;
}

body.afh-premium .afh-hero-grid,
body.afh-premium .afh-hero .afh-trust-pills,
body.afh-premium .afh-hero .afh-stats-bar {
  opacity: 1 !important;
}

/* —— Hero —— */
body.afh-premium .afh-hero {
  padding: 48px 0 32px;
}

body.afh-premium .afh-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  body.afh-premium .afh-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
  }
}

body.afh-premium .afh-hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--afh-accent);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

body.afh-premium .afh-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

body.afh-premium .afh-hero-lead {
  color: var(--afh-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 520px;
}

body.afh-premium .afh-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.afh-premium .afh-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 46vw, 520px);
  contain: layout style paint;
}

body.afh-premium .afh-hero-visual .hero-right-visual,
body.afh-premium .afh-hero-visual .al-launch-dash-hero-scaler,
body.afh-premium .afh-hero-visual .al-dash-hero-stage {
  overflow: hidden;
  max-width: 100%;
}

body.afh-premium .afh-hero-glow {
  position: absolute;
  inset: 10% 5% 5%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

body.afh-premium .afh-hero-visual .hero-right-visual {
  position: relative;
  z-index: 1;
}

body.afh-premium .afh-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 36px 0 20px;
}

body.afh-premium .afh-trust-pill {
  font-size: 13px;
  color: var(--afh-muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--afh-glass-border);
  background: var(--afh-glass-bg);
}

body.afh-premium .afh-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  body.afh-premium .afh-stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.afh-premium .afh-stat {
  text-align: center;
  padding: 18px 12px;
  border-radius: 16px;
  background: var(--afh-card);
  border: 1px solid var(--afh-border);
}

body.afh-premium .afh-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--afh-text);
  margin-bottom: 4px;
}

body.afh-premium .afh-stat span {
  font-size: 12px;
  color: var(--afh-muted);
}

/* —— Steps —— */
body.afh-premium .afh-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  body.afh-premium .afh-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.afh-premium .afh-step-card {
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

body.afh-premium .afh-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--afh-accent);
  color: #020617;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

body.afh-premium .afh-step-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

body.afh-premium .afh-step-card p {
  margin: 0;
  font-size: 13px;
  color: var(--afh-muted);
  line-height: 1.5;
}

body.afh-premium .afh-steps-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 1rem;
  color: var(--afh-muted);
}

/* —— Features —— */
body.afh-premium .afh-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  body.afh-premium .afh-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  body.afh-premium .afh-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.afh-premium .afh-feature-card {
  padding: 22px 18px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

body.afh-premium .afh-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-feature-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

body.afh-premium .afh-feature-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

body.afh-premium .afh-feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--afh-muted);
  line-height: 1.5;
}

body.afh-premium .afh-features .offer-premium-geo-banner {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  text-align: left;
}

body.afh-premium .afh-feature-card.offer-premium-card--geo-active {
  border-color: rgba(34, 197, 94, 0.55) !important;
  box-shadow: var(--afh-glow), 0 20px 48px rgba(0, 0, 0, 0.35) !important;
  background: linear-gradient(
    165deg,
    rgba(34, 197, 94, 0.12),
    rgba(255, 255, 255, 0.04)
  ) !important;
}

body.afh-premium .afh-feature-card .offer-premium-card-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: var(--afh-text);
}

body.afh-premium .afh-feature-card.offer-premium-card--geo-active .offer-premium-card-title {
  color: #86efac;
}

body.afh-premium .afh-feature-card .offer-premium-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--afh-muted);
  line-height: 1.5;
}

body.afh-premium .afh-feature-card .offer-premium-geo-live {
  margin-top: 10px;
}

/* —— Dashboard preview —— */
body.afh-premium .afh-dashboard-stage {
  position: relative;
  border-radius: var(--afh-radius);
  overflow: hidden;
  border: 1px solid var(--afh-glass-border);
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-dashboard-stage .dash-preview-iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  background: #0f172a;
}

/* —— Compare —— */
body.afh-premium .afh-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  body.afh-premium .afh-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.afh-premium .afh-compare-card {
  padding: 28px 24px;
}

body.afh-premium .afh-compare-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

body.afh-premium .afh-compare-card--bad h3 {
  color: #f87171;
}

body.afh-premium .afh-compare-card--good h3 {
  color: var(--afh-accent);
}

body.afh-premium .afh-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.afh-premium .afh-compare-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--afh-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.afh-premium .afh-compare-list li:last-child {
  border-bottom: none;
}

/* —— Video —— */
body.afh-premium .afh-demo {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

body.afh-premium .afh-video-wrap {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: var(--afh-radius);
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: var(--afh-glow);
  background: #0f172a;
  contain: layout style paint;
}

/* iframe must fill the box — parent supplies height (fixes full-page overlay bug) */
body.afh-premium .afh-video-wrap .demo-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  display: block;
}

body.afh-premium .afh-video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

body.afh-premium .afh-video-cta {
  text-align: center;
  margin-top: 24px;
}

body.afh-premium .afh-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--afh-muted);
}

/* —— Testimonials —— */
body.afh-premium .afh-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  body.afh-premium .afh-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.afh-premium .afh-testimonial {
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

body.afh-premium .afh-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-testimonial-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

body.afh-premium .afh-testimonial blockquote {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

body.afh-premium .afh-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.afh-premium .afh-testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.35);
}

body.afh-premium .afh-testimonial-author strong {
  display: block;
  font-size: 14px;
}

body.afh-premium .afh-testimonial-author span {
  font-size: 12px;
  color: var(--afh-muted);
}

/* —— Final CTA + pricing —— */
body.afh-premium .afh-final-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 28px;
  align-items: center;
}

@media (min-width: 900px) {
  body.afh-premium .afh-final-panel {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 48px 40px;
  }
}

body.afh-premium .afh-final-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 16px;
}

body.afh-premium .afh-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

body.afh-premium .afh-guarantee-seal {
  text-align: center;
}

body.afh-premium .afh-guarantee-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--afh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--afh-accent);
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-pricing {
  text-align: center;
}

body.afh-premium .pricing-premium-inner {
  max-width: 720px;
  margin: 0 auto;
}

body.afh-premium .afh-pricing-card {
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: var(--afh-glow), 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.afh-premium .afh-pricing-discount-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #020617;
  background: var(--afh-accent);
  box-shadow: var(--afh-glow);
}

body.afh-premium .afh-pricing-compare {
  margin: 16px 0 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.06);
}

body.afh-premium .afh-pricing-save {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--afh-accent);
}

body.afh-premium .afh-pricing-save strong {
  font-size: 1.05em;
}

body.afh-premium .afh-final-subhead {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--afh-text);
}

body.afh-premium .afh-pricing-price {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--afh-accent);
  margin: 12px 0 20px;
}

/* —— FAQ —— */
body.afh-premium .faq-accordion-premium-item {
  background: var(--afh-glass-bg);
  border: 1px solid var(--afh-glass-border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}

body.afh-premium .faq-accordion-premium-trigger {
  color: var(--afh-text);
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

body.afh-premium .faq-accordion-premium-panel {
  padding: 0 18px 16px;
  color: var(--afh-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* —— Footer —— */
body.afh-premium .footer-premium {
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  background: linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.06));
  padding-top: 48px;
}

body.afh-premium .footer-premium a {
  color: var(--afh-muted);
}

body.afh-premium .footer-premium a:hover {
  color: var(--afh-accent);
}

@media (max-width: 700px) {
  body.afh-premium main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.afh-premium .mobile-sticky-cta {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(2, 6, 23, 0.96);
    border-top: 1px solid rgba(34, 197, 94, 0.25);
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  body.afh-premium .mobile-sticky-cta--hidden {
    transform: none !important;
    opacity: 1 !important;
  }

  body.afh-premium .mobile-live-activity {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.afh-premium .afh-reveal {
    opacity: 1 !important;
    transition: none !important;
  }
}
