/* CampaignPro marketing site — shares the app's design language (emerald + gold,
   card system) but ships standalone: no build step, no framework, Caddy serves it
   as static files. */
:root {
  --brand: #0a7a37;          /* Kenyan highland green — dominant */
  --brand-2: #0c5c2c;        /* deeper green for gradients */
  --accent: #c62828;         /* Kenyan flag red — accents only */
  --accent-dark: #9e1f1f;
  --brand-dark: #063014;
  --brand-soft: #e7f3ea;
  --brand-tint: #f1f8f0;     /* barely-green white for section bands */
  --ink: #13201a;
  --muted: #5b6c60;
  --bg: #f5f9f4;
  --card: #ffffff;
  --line: #e2ebe2;
  --shadow-sm: 0 1px 2px rgba(16, 40, 24, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 40, 24, 0.12);
  --shadow-lg: 0 22px 60px rgba(16, 40, 24, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
section { padding: 88px 24px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 18px;
}
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { color: var(--muted); }
.lede { font-size: 18px; max-width: 640px; margin: 0 auto; }
.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 8px 22px rgba(10, 122, 55, 0.34);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(10, 122, 55, 0.46); transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 8px 22px rgba(198, 40, 40, 0.30);
}
.btn-accent:hover { box-shadow: 0 12px 30px rgba(198, 40, 40, 0.42); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--brand-dark); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 246, 0.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
nav.bar {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(10, 122, 55, 0.35);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--accent); border: 2px solid #fff;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--brand-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

@media (max-width: 780px) {
  .nav-links { position: fixed; inset: 62px 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 18px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform 200ms ease; gap: 16px; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 24px 0; text-align: center;
  background:
    radial-gradient(900px 440px at 15% -12%, var(--brand-soft), transparent 62%),
    radial-gradient(760px 380px at 96% -6%, #fbe9e5, transparent 66%),
    var(--bg);
}
.hero .lede { margin: 22px auto 34px; }
/* Landscape band anchoring the hero — the land the campaign serves */
.hero-scene {
  margin-top: 40px; position: relative; height: clamp(220px, 32vw, 400px);
  background: url('kenya-hero.svg') center bottom / cover no-repeat;
}
.hero-scene .scene-line {
  position: absolute; left: 0; right: 0; bottom: clamp(22px, 4vw, 46px);
  text-align: center; color: #f4fbf1; padding: 0 24px;
  font-size: clamp(16px, 2.1vw, 24px); font-weight: 700; letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(8, 30, 16, 0.55);
}
.hero-scene .scene-line b { color: #ffd7cf; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-strip {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 13px;
  font-weight: 700; color: var(--brand-dark);
}
.hero-strip span {
  background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 160ms ease, box-shadow 160ms ease;
}
.feature { position: relative; }
.feature::before {
  content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
  border-radius: 3px; background: var(--accent); opacity: 0; transition: opacity 160ms ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature:hover::before { opacity: 1; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #fbe6e3);
  border: 1px solid #eef4ee;
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--brand-dark); }
.feature p { font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { position: relative; padding-left: 4px; }
.step .num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.step .num::before { content: counter(step); }

/* ---------- Trust / security ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.trust-card h3 { font-size: 15.5px; }
.trust-card p { font-size: 13.5px; }
.note-honest {
  margin-top: 28px; font-size: 13px; color: var(--muted); max-width: 720px;
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
}

/* ---------- Dark band ---------- */
.band-dark {
  background: linear-gradient(160deg, #0f1713, #16261c 60%, #0f1713); color: #dfe8e1;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: #a9bcac; }

/* ---------- Demo form ---------- */
.demo-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .demo-wrap { grid-template-columns: 1fr; } }
.demo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,122,59,0.14); }
.field textarea { resize: vertical; min-height: 90px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 13.5px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e5f4ea; color: #157f3d; }
.form-msg.err { display: block; background: #fdeceb; color: #c22f24; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 40px 24px; font-size: 13.5px; color: var(--muted);
}
.footer-wrap {
  max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Value band (spread setup fee) ---------- */
.value-band { padding: 0 24px 88px; }
.value-card {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(198,40,40,0.06), transparent 60%),
    linear-gradient(135deg, var(--brand-tint), #ffffff);
  border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 34px 36px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.value-card > div { max-width: 720px; }
.value-card h2 { font-size: clamp(21px, 2.6vw, 28px); }
.value-card p { font-size: 15px; margin-top: 8px; }
.value-card .btn { flex-shrink: 0; }

/* Green section separators using the flag palette lightly */
#platform { background: var(--bg); }
