/* =========================================================
   RESET & TOKENS
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: #141414;
  --card-hover: #171717;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #ededed;
  --muted: #8a8a8a;
  --accent: #00A859;
  --kenya-black: #111111;
  --kenya-red: #E31B23;
  --kenya-green: #00A859;
  --accent-hover: #00c266;
  --accent-2: #FF7A00;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --container-max: 1120px;
  --container-pad: 24px;
  --nav-h: 64px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}


.hero h1,
.hero .lead,
.hero {
  cursor: default;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

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

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  word-break: break-word;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-mark { font-size: 20px; line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color .15s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .2s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-cta { display: none; }              /* shown only on mobile menu */
.nav-cta-desktop { display: inline-flex; } /* shown only on desktop */

/* Mobile menu toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.btn-sm { padding: 9px 14px; font-size: 13px; }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-soft); }

.section-head { margin-bottom: 40px; }
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,168,89,0.14), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255,122,0,0.08), transparent 70%);
}
.hero-inner { max-width: 780px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #02924f;
  font-weight: 700;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

/* Smooth fade when the year swaps */
#yearCycler {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#yearCycler.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}
#yearCycler.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(180deg, var(--kenya-black), var(--kenya-red), var(--kenya-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.disclaimer-small {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   GRID & CARDS
   ========================================================= */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.card-icon { font-size: 32px; margin-bottom: 14px; line-height: 1; }
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.card-placeholder { opacity: 0.6; }

/* =========================================================
   SPLIT (For Candidates)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-copy { min-width: 0; }

.feature-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.feature-list li { line-height: 1.5; }

.split-visual { display: flex; justify-content: center; min-width: 0; }

.mock-window {
  width: 100%;
  max-width: 380px;
  background: #0f0f0f;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.mock-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mock-url {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-line {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.mock-line-lg {
  height: 20px;
  width: 70%;
  background: rgba(0,168,89,0.3);
}
.mock-line-sm { width: 40%; }

/* =========================================================
   STEPS
   ========================================================= */
.steps .step {
  text-align: center;
  padding: 20px 12px;
}
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ---------- PRICING (campaign-cycle) ---------- */
.price-seat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 168, 89, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.price-card .price {
  font-size: 32px;
  font-weight: 700;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-card .price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.price-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.55;
}

/* Feature list — clean, no emojis */
.price-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.price-card .feature-list li {
  position: relative;
  padding-left: 22px;
}
.price-card .feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card .feature-list code {
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.price-card .btn { margin-top: auto; }
.price-card {
  display: flex;
  flex-direction: column;
}

/* Featured card */
.price-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(0, 168, 89, 0.10);
}
.price-featured .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-card { position: relative; }

/* Footnote */
.pricing-foot {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.pricing-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.pricing-foot a:hover { text-decoration: underline; }
.pricing-foot strong { color: var(--text); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   PAGE HEAD (used on /candidates)
   ========================================================= */
.page-head {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.filter-input {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s var(--ease);
}
.filter-input:focus { border-color: var(--accent); }
select.filter-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.results-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* =========================================================
   CANDIDATE CARD
   ========================================================= */
.candidate-card { display: flex; flex-direction: column; }
.candidate-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.candidate-party {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.candidate-slogan {
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.candidate-card .card-link { margin-top: auto; }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state h3 { color: var(--text); margin: 12px 0 8px; }
.hidden { display: none !important; }

/* =========================================================
   UTIL
   ========================================================= */
.center { text-align: center; }
.mt-4 { margin-top: 32px; }

/* =========================================================
   RESPONSIVE — TABLET (≤ 900px)
   ========================================================= */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-visual { order: -1; }  /* show mock above copy */
}

/* =========================================================
   RESPONSIVE — MOBILE (≤ 720px)
   ========================================================= */
@media (max-width: 720px) {
  :root {
    --container-pad: 20px;
    --nav-h: 60px;
  }

  /* ----- NAV: collapse into hamburger menu ----- */
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    margin: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
  }
  .nav-links a {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a:hover { background: rgba(255,255,255,0.04); }
  .nav-links.open { display: flex; }
  .nav-cta { display: inline-flex; justify-content: center; margin-top: 8px; }

  /* ----- HERO ----- */
  .hero { padding: 60px 0 50px; }
  .hero h1 { letter-spacing: -0.02em; }
  .lead { margin-bottom: 26px; }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn { width: 100%; }

  /* ----- SECTIONS ----- */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }

  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }

  /* ----- STEPS ----- */
  .steps .step { padding: 16px 8px; }

  /* ----- PRICING ----- */
  .price-featured { order: -1; }

  /* ----- FOOTER ----- */
  .footer { padding: 48px 0 24px; }
  .footer-inner {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
  }
  .footer-links { gap: 16px; font-size: 13px; }

  /* ----- FILTER BAR ----- */
  .filter-bar {
    flex-direction: column;
    padding: 12px;
  }
  .filter-input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
  .filter-bar .btn { width: 100%; }
}

/* =========================================================
   RESPONSIVE — SMALL PHONE (≤ 380px)
   ========================================================= */
@media (max-width: 380px) {
  :root { --container-pad: 16px; }

  .brand-name { font-size: 16px; }
  .btn { padding: 11px 16px; font-size: 14px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }

  .card { padding: 20px 16px; }
  .price { font-size: 24px; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Better focus rings for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}



/* ---------- ABOUT PAGE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.about-prose {
  max-width: 720px;
}
.about-prose h2 {
  margin-bottom: 20px;
}
.about-prose p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-prose p strong {
  color: var(--text);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.about-list li strong { color: var(--text); }
.about-list a {
  color: var(--accent);
  text-decoration: none;
}
.about-list a:hover { text-decoration: underline; }

.about-contact li::before {
  content: '•';
}

.about-note {
  font-size: 13px !important;
  margin-top: 20px !important;
}
.about-note a {
  color: var(--accent);
  text-decoration: none;
}
.about-note a:hover { text-decoration: underline; }


/* ---------- LEGAL PAGES ---------- */
.legal-prose {
  max-width: 760px;
}
.legal-prose h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-prose h2:first-of-type {
  margin-top: 0;
}
.legal-prose h3 {
  font-size: 15px;
  margin: 24px 0 8px;
  color: var(--text);
  font-weight: 600;
}
.legal-prose p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-prose ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.legal-prose li {
  margin-bottom: 6px;
}
.legal-prose strong {
  color: var(--text);
}
.legal-prose a {
  color: var(--accent);
  text-decoration: none;
}
.legal-prose a:hover {
  text-decoration: underline;
}
.legal-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px !important;
}

/* ---------- PRICING PAGE EXTRAS ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.addon-card {
  display: flex;
  flex-direction: column;
}
.addon-card h3 {
  margin-bottom: 6px;
}
.addon-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px !important;
  letter-spacing: 0.01em;
}
.addon-card p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 !important;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color .15s ease;
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
  color: var(--accent);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.faq details p a {
  color: var(--accent);
  text-decoration: none;
}
.faq details p a:hover { text-decoration: underline; }
.faq details p code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}