/* ══════════════════════════════════════════════
   BomaOS Marketing Site — Shared Stylesheet
   bomaos.co.ke
══════════════════════════════════════════════ */

:root {
  --green:        #059669;
  --green-dark:   #047857;
  --green-deep:   #052e16;
  --green-bright: #34d399;
  --green-light:  #d1fae5;
  --green-pale:   #f0fdf4;
  --slate-900:    #0f172a;
  --slate-800:    #1e293b;
  --slate-700:    #334155;
  --slate-600:    #475569;
  --slate-500:    #64748b;
  --slate-400:    #94a3b8;
  --slate-200:    #e2e8f0;
  --slate-100:    #f1f5f9;
  --slate-50:     #f8fafc;
  --white:        #ffffff;
  --amber:        #f59e0b;
  --amber-light:  #fef3c7;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, .nav-logo, .hero-stat-num, .impact-num, .pricing-price, .pricing-tier {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.alt { background: var(--slate-50); }
section.dark { background: var(--slate-50); color: var(--slate-900); }

/* ── Typography ── */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.dark .label { color: var(--green-bright); }
.hero .label { color: var(--green); }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p.lead {
  font-size: 18px;
  color: var(--slate-600);
  line-height: 1.75;
  max-width: 620px;
  margin-top: 16px;
}
.dark p.lead { color: var(--slate-500); }
.hero p.lead { color: var(--slate-600); }
p.body { font-size: 15px; color: var(--slate-600); line-height: 1.7; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(5,150,105,.3);
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-links a.active { color: var(--green); font-weight: 600; }
.btn-nav {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: background .15s;
}
.btn-nav:hover { background: var(--green-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--slate-700);
  margin-left: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(5,150,105,.3);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--green-light); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ── Hero ── */
.hero {
  background: var(--white);
  padding: 80px 0 60px;
  color: var(--slate-900);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 520px; }
.hero h1 { color: var(--slate-900); font-size: 42px; line-height: 1.15; letter-spacing: -0.02em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-sub {
  font-size: 17px;
  color: var(--slate-600);
  line-height: 1.7;
  margin-top: 20px;
}
/* Product screenshot mockup in hero */
.hero-visual {
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(5,150,105,0.1);
  position: relative;
}
.hero-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
/* Placeholder for when no screenshot exists */
.hero-visual-placeholder {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 12px;
  padding: 40px 32px;
  color: white;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-visual-placeholder h3 { color: #34d399; font-size: 14px; margin-bottom: 16px; }
.hero-visual-placeholder .mock-row { display: flex; gap: 12px; margin-bottom: 8px; }
.hero-visual-placeholder .mock-pill { background: rgba(255,255,255,0.08); border-radius: 6px; height: 10px; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-visual { display: none; }
}
  flex-wrap: wrap;
}
.hero-stat-num { font-size: 28px; font-weight: 700; color: var(--green); line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--slate-500); margin-top: 6px; line-height: 1.4; }
.hero-page { padding: 64px 0 56px; }
.hero-page h1 { font-size: clamp(28px, 4vw, 44px); }
.hero-page p.lead { max-width: 600px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--slate-600); line-height: 1.65; }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ── Urgency / accent cards ── */
.urgency-card {
  border-left: 3px solid var(--green);
  padding: 20px 20px 20px 22px;
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.urgency-card h3 { font-size: 15px; margin-bottom: 6px; }
.urgency-card p { font-size: 13.5px; color: var(--slate-600); line-height: 1.6; }

/* ── Flow steps ── */
.flow-pane {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.flow-pane-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 24px;
}
.flow-step { display: flex; gap: 14px; margin-bottom: 20px; }
.flow-step:last-child { margin-bottom: 0; }
.flow-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.flow-step-text { font-size: 14px; color: var(--slate-700); line-height: 1.55; }
.flow-step-text strong { display: block; color: var(--slate-900); margin-bottom: 2px; }

/* ── Impact / dark section ── */
.impact-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.impact-num { font-size: 36px; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 10px; }
.impact-card h3 { font-size: 15px; color: var(--slate-800); margin-bottom: 6px; }
.impact-card p { font-size: 13px; color: var(--slate-500); line-height: 1.65; }
.impact-note { font-size: 12px; color: var(--slate-400); margin-top: 24px; font-style: italic; }

/* ── Pricing ── */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--green);
  box-shadow: 0 8px 32px rgba(5,150,105,.15);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tier { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 6px; }
.pricing-card h3 { font-size: 22px; font-weight: 800; }
.pricing-members { font-size: 13px; color: var(--slate-500); margin-top: 4px; margin-bottom: 24px; }
.pricing-price { font-size: 32px; font-weight: 900; line-height: 1; }
.pricing-price-note { font-size: 12px; color: var(--slate-400); margin-top: 4px; margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--slate-100); margin: 20px 0; }
.pricing-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--slate-700); margin-bottom: 10px; }
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-cta {
  display: block;
  margin-top: 28px;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-700);
  transition: background .15s;
}
.pricing-card.featured .pricing-cta { background: var(--green); color: var(--white); }
.pricing-cta:hover { opacity: .88; }
.pricing-note { text-align: center; font-size: 13px; color: var(--slate-400); margin-top: 24px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--slate-200); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--slate-200); }
.faq-q { font-size: 15px; font-weight: 600; color: var(--slate-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--slate-400); flex-shrink: 0; margin-left: 16px; }
.faq-q.open::after { content: '−'; }
.faq-a { font-size: 14px; color: var(--slate-600); line-height: 1.7; margin-top: 12px; display: none; }
.faq-a.open { display: block; }

/* ── Trust / compliance items ── */
.trust-item { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.trust-icon { font-size: 32px; margin-bottom: 10px; }
.trust-item h4 { font-size: 14px; font-weight: 700; }
.trust-item p { font-size: 12px; color: var(--slate-500); margin-top: 4px; line-height: 1.5; }

.compliance-block { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 32px; margin-bottom: 20px; }
.compliance-block h3 { font-size: 18px; margin-bottom: 8px; }
.compliance-block .what { margin-top: 16px; }
.compliance-block .what h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 8px; }
.compliance-detail { font-size: 14px; color: var(--slate-600); line-height: 1.7; }
.compliance-detail li { margin-bottom: 5px; padding-left: 4px; }
.compliance-detail ul { padding-left: 16px; }
.caveat {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: #78350f;
  margin-top: 14px;
  line-height: 1.6;
}

/* ── Phone mockups ── */
.phones-row { display: flex; gap: 24px; justify-content: center; margin-top: 52px; flex-wrap: wrap; align-items: flex-start; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-caption { font-size: 12px; font-weight: 600; color: var(--slate-500); text-align: center; }
.phone { width: 220px; background: #1a1a1a; border-radius: 34px; padding: 9px; box-shadow: 0 32px 64px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.07); }
.phone-screen { border-radius: 26px; overflow: hidden; background: #000; }
.phone-status { background: #075E54; display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; }
.phone-time { color: #fff; font-size: 10px; font-weight: 600; }
.phone-icons { color: #fff; font-size: 9px; }
.wa-header { background: #075E54; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.wa-avatar { width: 30px; height: 30px; border-radius: 50%; background: #34d399; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #065f46; flex-shrink: 0; }
.wa-name { color: #fff; font-size: 12px; font-weight: 600; }
.wa-sub { color: #b2dfdb; font-size: 9px; }
.wa-back { color: #fff; font-size: 13px; margin-right: 2px; }
.wa-chat { background: #e5ddd5; padding: 9px 7px; min-height: 320px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.wa-chat::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.msg { max-width: 88%; font-size: 11.5px; line-height: 1.5; padding: 5px 7px 3px; border-radius: 7px; position: relative; z-index: 1; word-break: break-word; color: #111827; }
.msg-in  { background: #fff; border-radius: 0 7px 7px 7px; align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.msg-out { background: #dcf8c6; border-radius: 7px 0 7px 7px; align-self: flex-end; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.msg-time { font-size: 8.5px; color: #999; text-align: right; margin-top: 1px; }
.msg-time.out { color: #6bcb6b; }
.msg b { font-weight: 700; color: #0f172a; }
.msg hr { border: none; border-top: 1px solid #e2e8f0; margin: 4px 0; }
.msg .g { color: #059669; font-weight: 700; }
.ussd-screen { background: #000; min-height: 320px; padding: 18px 13px; font-family: 'Courier New', monospace; color: #00ff00; font-size: 11px; line-height: 1.8; display: flex; flex-direction: column; }
.ussd-hdr { color: #00cc00; font-weight: bold; border-bottom: 1px solid #00cc00; padding-bottom: 6px; margin-bottom: 10px; font-size: 11.5px; }
.ussd-body { flex: 1; }
.ussd-in { border-top: 1px solid #00cc00; padding-top: 7px; margin-top: 6px; color: #ffff00; font-size: 10.5px; }

/* ── Resources ── */
.article-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; }
.article-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.article-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.article-card p { font-size: 14px; color: var(--slate-600); line-height: 1.65; flex: 1; }
.article-read { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--green); margin-top: 18px; }

/* ── CTA section ── */
.cta-section { background: linear-gradient(135deg, var(--green), var(--green-dark)); padding: 80px 0; text-align: center; }
.cta-section h2 { color: var(--white); }
.cta-section p.lead { color: rgba(255,255,255,.7); margin: 0 auto; margin-top: 16px; }
.cta-contacts { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.15); }
.cta-contact-item { font-size: 12px; color: var(--green-light); }
.cta-contact-item strong { display: block; color: var(--white); font-size: 15px; margin-top: 3px; }
.cta-fine { font-size: 11px; color: rgba(255,255,255,.25); margin-top: 28px; }

/* ── Footer ── */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--slate-500); line-height: 1.65; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--slate-400); margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12px; color: var(--slate-600); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--slate-500); }
.footer-bottom a:hover { color: var(--slate-300); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-center p.lead { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: var(--slate-200); margin: 24px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.chip-green { background: var(--green-light); color: #065f46; }
.chip-amber { background: var(--amber-light); color: #92400e; }
.chip-slate { background: var(--slate-100); color: var(--slate-600); }
.page-hero-dark { background: linear-gradient(140deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%); padding: 72px 0 60px; color: var(--slate-900); }
.page-hero-dark h1 { color: var(--slate-900); }
.page-hero-dark h1 em { color: var(--green); font-style: normal; }
.page-hero-dark .label { color: var(--green); }
.page-hero-dark .lead { color: var(--slate-600); }

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 16px 24px; gap: 4px; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .phones-row { gap: 16px; }
  .phone { width: 180px; }
  .flow-pane { padding: 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .phone { width: 200px; }
}
@media print {
  .nav, footer { display: none; }
  section { padding: 32px 0; }
}
