/* =========================================
   VARIABLES
========================================= */
:root {
  --navy:        #0f172a;
  --green-deep:  #064e3b;
  --green-mid:   #065f46;
  --emerald:     #059669;
  --emerald-lt:  #d1fae5;
  --gold:        #fbbf24;
  --gold-hover:  #f59e0b;
  --slate-50:    #f8fafc;
  --slate-100:   #f1f5f9;
  --slate-200:   #e2e8f0;
  --slate-400:   #94a3b8;
  --slate-500:   #64748b;
  --slate-600:   #475569;
  --slate-700:   #334155;
  --slate-900:   #0f172a;
  --font-head:   'General Sans', sans-serif;
  --font-body:   'Satoshi', sans-serif;
}

/* =========================================
   BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; }

/* =========================================
   LAYOUT
========================================= */
.zd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 576px)  { .zd-container { padding: 0 2rem; } }
@media (min-width: 1024px) { .zd-container { padding: 0 2.5rem; } }

/* =========================================
   SHARED UTILITIES
========================================= */
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}
.section-sub {
  font-size: 1rem;
  color: var(--slate-500);
  line-height: 1.75;
}

/* Pill badge */
.zd-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-emerald { background: var(--emerald-lt); color: #065f46; }
.pill-gold    { background: #fef3c7; color: #78350f; }
.pill-amber   { background: #fef3c7; color: #92400e; }
.pill-blue    { background: #eff6ff; color: #1e40af; }
.pill-purple  { background: #f5f3ff; color: #5b21b6; }
.pill-rose    { background: #fff1f2; color: #9f1239; }
.pill-cyan    { background: #ecfeff; color: #155e75; }
.pill-dark    { background: rgba(255,255,255,0.15); color: white; }

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 8px 20px rgba(251,191,36,.3);
}
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); color: var(--navy); }
.btn-gold:active { transform: scale(0.98); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--slate-600);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  border: 2px solid var(--slate-200);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline-light:hover { border-color: var(--slate-400); background: var(--slate-50); color: var(--slate-700); }

.btn-emerald-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-deep);
  color: white;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-emerald-dark:hover { background: var(--green-mid); transform: translateY(-1px); color: white; }

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: white;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-green:hover { background: var(--green-mid); border-color: transparent; color: white; }

/* =========================================
   NAVIGATION
========================================= */
.zd-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.zd-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.zd-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--green-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.05rem;
}
.zd-logo-name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.04em;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  display: block;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links li a:hover { color: var(--emerald); }
.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--slate-200);
  margin: 0 0.5rem;
  flex-shrink: 0;
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-login {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.3rem 0.5rem;
  transition: color 0.18s;
}
.nav-login:hover { color: var(--green-deep); }
.nav-cta {
  background: var(--green-deep);
  color: white;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  transition: background 0.18s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-mid); color: white; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover { background: var(--slate-100); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-links { display: none !important; }
  .nav-divider { display: none !important; }
  .hamburger { display: flex; }
  .nav-login { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--slate-100);
  z-index: 999;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.mobile-menu.is-open { max-height: 600px; }
.mobile-menu-inner { padding: 1.25rem 1.5rem 1.75rem; }
.mobile-menu a {
  display: block;
  padding: 0.78rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.18s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--emerald); }
.mobile-menu .m-divider {
  height: 1px;
  background: var(--slate-200);
  margin: 0.5rem 0;
}
.mobile-menu .m-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.mobile-menu .m-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 120px;
  border: none;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.m-btn-login  { background: var(--slate-100); color: var(--slate-700); border-bottom: none !important; }
.m-btn-login:hover  { background: var(--slate-200) !important; color: var(--slate-900) !important; }
.m-btn-signup { background: var(--green-deep); color: white !important; border-bottom: none !important; }
.m-btn-signup:hover { background: var(--green-mid) !important; }

/* =========================================
   HERO
========================================= */
.hero {
  padding: 5.5rem 0 4.5rem;
  /* background-image is set via inline style in HTML using Django {% static %} */
  /* Fallback gradient in case image fails to load */
  background-color: var(--navy);
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  position: relative;
}

/* Subtle grid overlay — reduced opacity for photo bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Floating orb — toned down on dark bg */
.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-orb-float 8s ease-in-out infinite;
}
@keyframes hero-orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(20px) scale(1.04); }
}

/* Second ambient orb bottom-left */
.hero-orb-2 {
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-orb-float 10s ease-in-out infinite reverse;
}

/* Hero text — white on dark photo background */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero-title .accent {
  color: #34d399; /* lighter emerald — more visible on dark bg */
  position: relative;
  display: inline-block;
}
/* Underline accent */
.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #34d399, #6ee7b7, transparent);
  border-radius: 2px;
  opacity: 0.7;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.78;
}

/* Dashboard card */
.dashboard-preview {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.22);
  position: relative;
  z-index: 1;
}
.dash-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-60%, -50%);
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: var(--slate-100);
  border-radius: 5px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: #10b981;
}

.stat-mini {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.stat-mini-lbl  { font-size: 0.68rem; color: var(--slate-500); font-weight: 500; margin-bottom: 0.2rem; }
.stat-mini-val  { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }

.mpesa-strip {
  background: var(--green-deep);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.mpesa-strip-label { font-size: 0.6rem; text-transform: uppercase; font-weight: 700; color: #6ee7b7; letter-spacing: 0.1em; }
.mpesa-strip-val   { font-size: 0.875rem; font-weight: 500; }

.av-group { display: flex; }
.av-group img, .av-group .av-extra {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
}
.av-group img:first-child { margin-left: 0; }
.av-extra {
  background: var(--emerald-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green-deep);
}

.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-anim 1.5s ease-in-out infinite;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Mobile hero adjustments */
@media (max-width: 991px) {
  /* Dashboard card is hidden on mobile via d-none d-lg-block in HTML.
     Text column becomes full width — let it breathe. */
  .hero .col-lg-6:first-child {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 3.5rem 0 3rem;
    /* bg-position stays 'right center' (set inline) — faces are on the right side of the image */
  }
  .hero-title { font-size: 2.2rem; }
  .hero-sub   { font-size: 1rem; }
}

/* =========================================
   TRUST BAR
========================================= */
.trust-bar {
  padding: 2.25rem 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: white;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.trust-items:hover { opacity: 0.75; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-item iconify-icon { font-size: 1.2rem; color: var(--emerald); }

/* =========================================
   MISSION / PAS SECTION
========================================= */
.mission-section {
  padding: 5.5rem 0;
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.mission-section::before, .mission-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.mission-section::before {
  width: 300px; height: 300px;
  top: -4rem; right: -4rem;
  background: rgba(16,185,129,0.1);
}
.mission-section::after {
  width: 400px; height: 400px;
  bottom: -5rem; left: -5rem;
  background: rgba(59,130,246,0.07);
}

.mission-img-wrap { position: relative; }
.mission-img-wrap img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.mission-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1rem;
  background: #10b981;
  color: var(--navy);
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.mission-badge-lbl { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mission-badge-val { font-family: var(--font-head); font-size: 0.95rem; font-weight: 800; margin-top: 0.15rem; }

.mission-divider {
  width: 64px; height: 4px;
  background: #10b981;
  border-radius: 2px;
}

/* =========================================
   PRODUCT CARDS
========================================= */
.products-section {
  padding: 5.5rem 0;
  background: white;
}
.prod-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.prod-card:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16,185,129,0.1);
}
.prod-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.prod-card:hover .prod-icon { transform: scale(1.1); }
.prod-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.6rem;
}
.prod-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.prod-preview {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: auto;
}

/* Bookkeeping mini-table */
.mini-table { width: 100%; font-size: 0.7rem; font-family: monospace; }
.mini-table .th { color: var(--slate-400); font-weight: 700; padding-bottom: 0.4rem; border-bottom: 1px solid var(--slate-100); margin-bottom: 0.4rem; display: grid; grid-template-columns: 2fr 1.5fr 1fr; }
.mini-table .tr { display: grid; grid-template-columns: 2fr 1.5fr 1fr; padding: 0.3rem 0; color: var(--slate-600); }

/* MGR payout strip */
.mgr-strip {
  background: var(--green-deep);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin-top: auto;
}
.mgr-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #6ee7b7; }
.mgr-val  { font-size: 0.8rem; font-weight: 600; }

/* Wallet M-Pesa preview */
.wallet-preview {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* =========================================
   CALCULATOR
========================================= */
.calc-section {
  padding: 5.5rem 0;
  background: var(--slate-50);
}
.calc-card {
  background: white;
  border-radius: 36px;
  padding: 3.5rem 4rem;
  box-shadow: 0 20px 60px -8px rgba(0,0,0,.1);
  border: 1px solid var(--slate-100);
}
@media (max-width: 767px) { .calc-card { padding: 2.5rem 1.5rem; } }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 8px;
  background: var(--slate-200);
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  border: none;
}

.calc-result-green {
  background: var(--emerald-lt);
  border: 1px solid #a7f3d0;
  border-radius: 24px;
  padding: 2rem;
}
.calc-result-dark {
  background: var(--navy);
  border-radius: 24px;
  padding: 2rem;
}
.calc-lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.calc-val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.calc-bar-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 1rem; overflow: hidden; }
.calc-bar-fill  { height: 100%; background: #34d399; border-radius: 3px; transition: width 0.5s ease; }

/* =========================================
   HOW IT WORKS
========================================= */
.how-section {
  padding: 5.5rem 0;
  background: white;
}
.step-row { position: relative; }
/* connector between step circles on desktop */
@media (min-width: 768px) {
  .step-connector {
    position: absolute;
    top: 30px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: var(--slate-100);
    z-index: 0;
  }
}
.step-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px white, 0 0 0 9px var(--slate-100);
}
.step-title { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.6rem; }
.step-desc  { font-size: 0.875rem; color: var(--slate-500); line-height: 1.72; }

/* =========================================
   FAQ
========================================= */
.faq-section { padding: 5.5rem 0; background: var(--slate-50); }

.faq-item {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.active { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
}
.faq-q {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.4;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--slate-500);
  transition: transform 0.28s, background 0.2s, color 0.2s;
}
.faq-item.active .faq-icon {
  background: var(--green-deep);
  color: white;
  transform: rotate(45deg);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.active .faq-body { max-height: 400px; }
.faq-answer {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.8;
}

/* =========================================
   FOOTER
========================================= */
.zd-footer {
  background: var(--navy);
  color: white;
  padding: 5.5rem 0 2.5rem;
}

/* CTA card inside footer */
.footer-cta-card {
  background: var(--green-deep);
  border-radius: 40px;
  padding: 4.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
}
.footer-cta-card::before {
  content: '';
  position: absolute;
  bottom: -6rem; right: -6rem;
  width: 300px; height: 300px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.footer-cta-card::after {
  content: '';
  position: absolute;
  top: -5rem; left: -5rem;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.footer-cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.footer-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}
@media (max-width: 576px) { .footer-cta-card { padding: 3rem 1.5rem; } }

/* Footer links grid */
.footer-col-head {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 1.4rem;
}
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { margin-bottom: 0.85rem; }
.footer-link-list a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.18s;
  font-weight: 500;
}
.footer-link-list a:hover { color: white; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: var(--slate-400);
  font-size: 1.05rem;
  transition: background 0.18s, color 0.18s;
}
.footer-social a:hover { background: rgba(255,255,255,.18); color: white; }

.footer-divider { border-color: rgba(255,255,255,0.08); margin: 3rem 0 2rem; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-500);
}
.footer-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #10b981;
}

/* =========================================
   SCROLL ANIMATIONS (lightweight)
========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* =========================================
   PRODUCT SHOWCASE CAROUSEL (Ultra-Compact)
========================================= */
.mission-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 1.5rem !important;
  background: var(--navy);
}

/* Remove decorative blobs for cleaner look */
.mission-section::before,
.mission-section::after {
  display: none;
}

.showcase-carousel {
  position: relative;
  min-height: 140px;
}

.showcase-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.showcase-slide.active {
  display: block;
  opacity: 1;
}

.showcase-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.2);
}

.showcase-image {
  width: 100%;
  height: auto;
  min-height: 90px;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--slate-400);
}

.testimonial-item {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border-left: 2px solid #34d399;
}

/* Navigation — Minimal */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 16px;
  border-radius: 3px;
  background: #34d399;
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.5);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255,255,255,0.5);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.carousel-prev {
  left: -12px;
}

.carousel-next {
  right: -12px;
}

@media (max-width: 992px) {
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
}

@media (max-width: 768px) {
  .mission-section { padding: 1.5rem 0 !important; }
  .carousel-arrow { display: none; }
}
/* =========================================
   HOW IT WORKS - MODERN DESIGN
========================================= */
.how-section {
  padding: 5rem 0;
  background: white;
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
}

.text-emerald {
  color: #059669;
}

.step-row {
  position: relative;
}

.step-connector {
  position: absolute;
  top: 35px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0 0%, #e2e8f0 45%, #cbd5e1 50%, #e2e8f0 55%, #e2e8f0 100%);
  z-index: 0;
}

.step-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  background: #064e3b;
  color: white;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 6px white, 0 0 0 8px #e2e8f0;
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  background: #059669;
  transform: scale(1.05);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px white, 0 0 0 6px #e2e8f0;
  }
  .step-card {
    padding: 1.25rem 0.75rem;
  }
  .step-desc {
    font-size: 0.8rem;
  }
}

/* =========================================
   FAQ - MODERN ACCORDION DESIGN
========================================= */
.faq-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.faq-item-modern {
  background: white;
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #059669;
  transition: all 0.3s ease;
}

.faq-item-modern:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-btn-modern {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  border-radius: 20px;
}

.faq-question {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.faq-icon-modern {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.28s ease;
}

.faq-icon-modern .plus-icon {
  font-size: 1rem;
  color: #64748b;
  transition: transform 0.28s ease;
}

.faq-item-modern.active .faq-icon-modern {
  background: #064e3b;
}

.faq-item-modern.active .faq-icon-modern .plus-icon {
  color: white;
  transform: rotate(45deg);
}

.faq-body-modern {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item-modern.active .faq-body-modern {
  max-height: 300px;
}

.faq-answer-modern {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
}
/* =========================================
   REBRAND ANNOUNCEMENT BANNER
   (Remove after ~60 days)
========================================= */

.rebrand-banner {
  width: 100%;
  background: rgba(15, 23, 42, 0.97);
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
  position: relative;
  overflow: hidden;
  z-index: 999;

  /* Hidden state — transitions to visible via JS */
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  transition:
    opacity    0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Visible state (added by JS) */
.rebrand-banner.zd-rb-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 80px;
}

/* Dismissed state (added by JS) */
.rebrand-banner.zd-rb-dismissed {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  pointer-events: none;
}

/* Emerald left accent line */
.rebrand-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

/* One-shot shimmer sweep on entrance */
.rebrand-banner::after {
  content: '';
  position: absolute;
  top: 0; left: -60%; width: 55%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: zd-shimmer 1.8s ease 0.7s 1 forwards;
  pointer-events: none;
}

@keyframes zd-shimmer {
  from { left: -60%; }
  to   { left: 115%; }
}

/* Inner layout */
.rebrand-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 1.5rem;
}

/* "NEW NAME" badge */
.rebrand-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

/* Body copy */
.rebrand-copy {
  flex: 1;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

/* "ChamaSpace" — faded, struck-through */
.rebrand-old {
  color: #64748b;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.45);
  text-decoration-thickness: 1px;
}

/* "Zedek" — bright, one-pulse glow */
.rebrand-new {
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
  animation: zd-glow-pulse 2.5s ease 0.8s 1 forwards;
}

@keyframes zd-glow-pulse {
  0%   { text-shadow: 0 0 14px rgba(16, 185, 129, 0.35); }
  40%  { text-shadow: 0 0 24px rgba(16, 185, 129, 0.65); }
  100% { text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);  }
}

/* "Learn more" link */
.rebrand-learn {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ee7b7;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 183, 0.3);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.rebrand-learn:hover {
  color: #a7f3d0;
  border-color: rgba(167, 243, 208, 0.55);
}

/* Progress drain bar */
.rebrand-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 100%;
  background: rgba(16, 185, 129, 0.45);
  transform-origin: left;
}
.rebrand-progress.zd-draining {
  animation: zd-drain 50s linear forwards;
}

@keyframes zd-drain {
  from { width: 100%; }
  to   { width: 0%;   }
}

/* Close (×) button */
.rebrand-close {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.rebrand-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* ── Mobile: prominent two-line layout ── */
@media (max-width: 640px) {

  /* Allow banner to grow to two lines */
  .rebrand-banner.zd-rb-visible {
    max-height: 120px;
  }

  /* Stack badge above copy, let copy wrap */
  .rebrand-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 1rem 14px;
    align-items: flex-start;
  }

  /* Badge stays full-width on its own row */
  .rebrand-badge {
    flex-basis: 100%;
    width: fit-content;
  }

  /* Copy takes all remaining space, wraps naturally */
  .rebrand-copy {
    font-size: 0.82rem;
    flex: 1 1 calc(100% - 42px); /* full width minus close button */
    line-height: 1.55;
  }

  /* Close button anchors to top-right of the flex row */
  .rebrand-close {
    align-self: flex-start;
    margin-top: 1px;
  }

  /* Hide "Learn more" — too cramped on mobile */
  .rebrand-learn { display: none; }

  /* Stronger background so it never bleeds into the hero */
  .rebrand-banner {
    background: rgba(10, 16, 30, 1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  }
}