:root {
  --primary: #0f5132;
  --primary-dark: #0b3d26;
  --accent: #d4a017;
  --accent-soft: #f5e6b8;
  --ink: #14231c;
  --ink-soft: #47564c;
  --ink-faint: #8a978d;
  --bg: #ffffff;
  --bg-alt: #f7f8f5;
  --border: #e3e7de;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 35, 23, 0.05), 0 8px 24px -8px rgba(15, 35, 23, 0.10);
  --shadow-lg: 0 4px 6px rgba(15, 35, 23, 0.05), 0 20px 40px -12px rgba(15, 35, 23, 0.16);
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.1rem; margin-bottom: 6px; }

p { color: var(--ink-soft); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px -6px rgba(15, 81, 50, 0.45); }
.btn-outline { background: white; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: url('logo-mark.svg') center / contain no-repeat;
}
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  flex-wrap: nowrap;
}
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--primary); color: white; }
.lang-switch-mobile { align-self: flex-start; margin-top: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a { padding: 10px 0; font-weight: 500; color: var(--ink-soft); }
.mobile-nav.open { display: flex; }

@media (max-width: 980px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 50% -10%, #eaf5ee 0%, transparent 60%); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-sub { font-size: 1.08rem; margin-top: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-faint); }

.mock-window {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
}
.mock-body { display: flex; min-height: 340px; }
.mock-sidebar { width: 112px; background: var(--bg-alt); border-right: 1px solid var(--border); padding: 14px 8px; display: flex; flex-direction: column; gap: 4px; }
.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.mock-nav-item-active { background: white; color: var(--primary); box-shadow: var(--shadow); }
.mock-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: 0.7; }

.mock-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.mock-stats-row { display: flex; gap: 10px; }
.mock-stat {
  flex: 1;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-stat-value { font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.mock-stat-label { font-size: 0.66rem; color: var(--ink-faint); font-weight: 600; }

.mock-chart-card {
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-chart-title { font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); }
.mock-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.mock-chart-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  opacity: 0.85;
}

.mock-activity { display: flex; flex-direction: column; gap: 8px; }
.mock-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.mock-activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.mock-activity-dot-gold { background: var(--accent); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Pain strip ---------- */

.strip { background: var(--ink); padding: 18px 0; }
.strip-inner p { color: #cfd8d1; text-align: center; font-size: 1rem; font-weight: 500; margin: 0; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-sub { margin-top: 12px; font-size: 1.02rem; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e6f2ea;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card p { font-size: 0.92rem; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Portals ---------- */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.portal-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.portal-card p { font-size: 0.94rem; }

@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }

/* ---------- Split (Africa / Security) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.checklist { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.checklist li { padding-left: 30px; position: relative; font-size: 0.98rem; color: var(--ink-soft); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}
.checklist strong { color: var(--ink); }

.currency-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.security-badges { display: flex; flex-direction: column; gap: 14px; }
.badge-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.badge-card strong { font-size: 1.6rem; color: var(--primary); font-weight: 800; }
.badge-card span { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- AI grid ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ai-card {
  background: linear-gradient(155deg, #e9f4ec, #fdf6e0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.ai-card p { font-size: 0.92rem; }

@media (max-width: 980px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---------- Payments ---------- */

.payments-inner { text-align: center; }
.payments-head { margin-bottom: 32px; }
.payment-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.payment-chips .chip { color: var(--ink); }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,81,50,0.12), var(--shadow-lg); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.price { font-size: 2.1rem; font-weight: 800; margin-top: 6px; color: var(--ink); }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-faint); }
.price-desc { font-size: 0.9rem; margin: 8px 0 18px; min-height: 40px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-card li { font-size: 0.9rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-container { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 18px; font-size: 0.94rem; }

/* ---------- Final CTA ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--primary), #157347);
  padding: 72px 0;
}
.cta-inner { text-align: center; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 14px 0 28px; font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.cta-band .btn-primary:hover { background: #c39316; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); padding: 56px 0 24px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: white; }
.footer-brand p { color: #9fada4; margin-top: 12px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 56px; }
.footer-col h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col a { display: block; color: #9fada4; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 20px; }
.footer-bottom p { color: #6b7a70; font-size: 0.85rem; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
}

/* ---------- Sub-pages (features, modules, pricing, demo, countries) ---------- */

.breadcrumbs { padding-top: 20px; font-size: 0.85rem; color: var(--ink-faint); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

.page-hero { padding: 40px 0 56px; background: radial-gradient(1000px 420px at 50% -20%, #eaf5ee 0%, transparent 65%); }
.page-hero .container { max-width: 820px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-hero .hero-sub { margin: 18px auto 0; max-width: 680px; }
.page-hero .hero-actions { justify-content: center; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; color: var(--ink-soft); font-size: 1.02rem; }
.prose .checklist { margin-top: 18px; }

.feature-card h3 a:hover, .module-card:hover h3 { color: var(--primary); }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.module-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.module-card p { font-size: 0.92rem; color: var(--ink-soft); }
.module-card .more { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--primary); }
@media (max-width: 980px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .module-grid { grid-template-columns: 1fr; } }

.pricing-more, .country-links { margin-top: 28px; text-align: center; font-size: 0.95rem; }
.country-links { text-align: left; color: var(--ink-soft); }
.pricing-more a, .country-links a { color: var(--primary); font-weight: 600; }
.pricing-more a:hover, .country-links a:hover { text-decoration: underline; }
.price-note { min-height: 1.2em; margin-top: -4px; font-size: 0.8rem; color: var(--ink-faint); }

.currency-picker { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -24px 0 36px; font-size: 0.92rem; color: var(--ink-soft); }
.currency-picker select, .demo-form input, .demo-form select, .demo-form textarea {
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.currency-picker select:focus, .demo-form :is(input, select, textarea):focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }

.plan-table-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.94rem; }
.plan-table th, .plan-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.plan-table thead th { background: var(--bg-alt); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table td:first-child { font-weight: 600; }
.plan-table td .price-note { margin-top: 2px; }

.demo-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.demo-form { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.demo-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.demo-form .optional { font-weight: 400; color: var(--ink-faint); }
.demo-form textarea { min-height: 110px; resize: vertical; }
.demo-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-form .fineprint { font-size: 0.8rem; color: var(--ink-faint); }
.form-status { font-size: 0.95rem; }
.form-status-ok { padding: 18px; border-radius: 12px; background: #e6f2ea; color: var(--primary-dark); font-weight: 600; }
.form-status-error { color: #b42318; }
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .demo-form .form-row { grid-template-columns: 1fr; } }
/* The amount itself keeps .price's size; only the "/mo" suffix is small. */
.price [data-plan-price] { font-size: inherit; font-weight: inherit; color: inherit; }
.price-card .price { font-size: clamp(1.5rem, 2.2vw, 2.1rem); overflow-wrap: anywhere; }
.plan-table [data-plan-price] { font-weight: 700; color: var(--ink); }
/* Labels flow inline so "(optional)" stays beside its label text. */
.demo-form label { display: block; }
.demo-form label > :is(input, select, textarea) { display: block; width: 100%; margin-top: 6px; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
