/* Elimu family sites — palette taken from the Elimu E logo (grey strokes, gold stars)
   and the Apjakal type system (League Spartan, as on apjakal.com).
   Apjakal red appears only in the Apjakal logo image in the footer.
   gold      #E5A93F  logo stars: buttons, highlights (always with ink text, 8.4:1)
   gold-text #8A5F14  gold for text on light surfaces (AA 4.9:1 or better)
   grey      #5E615D  logo strokes: muted text (AA 5.5:1 or better) */
@font-face {
  font-family: "League Spartan";
  src: url(fonts/league-spartan-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #1a1a1a;
  --muted: #5e615d;
  --gold: #e5a93f;
  --gold-text: #8a5f14;
  --gold-soft: #f6ead0;
  --bg: #faf8f3;
  --soft: #f3efe4;
  --card: #fff;
  --line: #e6e0d2;
  --line-strong: #cfc7b4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.6 "League Spartan",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 3px;
}
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #faf8f3;
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.05;
}
.logo img {
  width: 40px;
  height: auto;
  flex: none;
}
.logo small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
nav a:not(.btn):hover {
  color: var(--gold-text);
}
.menu {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Buttons — gold with ink text, as the logo's stars on the strokes */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  padding: 13px 26px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  background: #d99a2c;
  border-color: #d99a2c;
}
.btn.secondary {
  background: transparent;
  border-color: var(--ink);
}
.btn.secondary:hover {
  background: var(--ink);
  color: #fff;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}

/* Type */
.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-text);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 800;
  margin: 0 0 18px;
}
h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
}
p {
  margin-top: 0;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 0;
}

/* Hero */
.hero {
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.visual {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  position: relative;
}
.window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -40px rgba(26, 26, 26, 0.45);
  position: relative;
}
.window-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
}
.window-top span:first-child {
  color: var(--gold);
  letter-spacing: 2px;
}
.workspace {
  padding: 26px;
}
.mock-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 4px;
}
.mock-sub {
  font-size: 13px;
  color: var(--muted);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.tile {
  background: var(--soft);
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.tile span {
  display: block;
  color: var(--gold-text);
  font-size: 20px;
  font-weight: 800;
}
.chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.chart i {
  flex: 1;
  background: var(--muted);
  height: var(--h);
  border-radius: 4px 4px 0 0;
}
.chart i:nth-child(even) {
  background: var(--gold);
}
.caption {
  font-size: 12px;
  text-align: right;
  color: var(--muted);
  margin: 14px 0 0;
}

/* Strip and sections */
.strip {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  background: var(--card);
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
section.section {
  padding: 88px 0;
}
.soft {
  background: var(--soft);
}
.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}
.section-head p:last-child {
  color: var(--muted);
  font-size: 18px;
}

/* Product cards */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product {
  padding: 38px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 4px solid var(--gold);
}
.product.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  border-top-color: var(--gold);
}
.product h3 {
  font-size: 32px;
  margin: 20px 0 14px;
}
.product p {
  color: var(--muted);
}
.product.dark p,
.product.dark li {
  color: #d6d6d3;
}
.product .btn {
  margin-top: auto;
}
.product.dark .btn.secondary,
.product.dark .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.pill {
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  padding: 5px 14px;
  background: var(--gold-soft);
  color: #5c3f0b;
}
.product.dark .pill {
  background: #33302a;
  color: #f3dcae;
}
.list {
  list-style: none;
  padding: 0;
  margin: 4px 0 28px;
  width: 100%;
}
.list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 199, 180, 0.5);
  font-size: 16px;
}
.product.dark .list li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Cards, steps, FAQ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--gold-soft);
  color: #5c3f0b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 22px;
}
.card p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.step {
  padding: 0 0 22px 50px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 24px;
  position: relative;
}
.step .num {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-text);
}
.step h3 {
  font-size: 19px;
}
.step p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.faq {
  max-width: 840px;
}
details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}
details p {
  font-size: 16px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* Contact */
.contact-box {
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #d9d2c1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-text);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin: 19px 0;
}
.consent input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--gold-text);
}
.status {
  font-size: 15px;
  margin: 15px 0 0;
}
.status a {
  text-decoration: underline;
  color: var(--gold-text);
  font-weight: 700;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Footer — the one place Apjakal red appears, inside its own logo */
footer {
  padding: 44px 0 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.footer-top {
  margin-bottom: 30px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--gold-text);
}
.endorse {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.endorse img {
  width: 150px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a {
  text-decoration: underline;
}

/* Legal and 404 */
.legal {
  max-width: 760px;
  padding: 64px 0;
}
.legal h1 {
  font-size: 48px;
}
.legal h2 {
  font-size: 25px;
  margin-top: 30px;
}
.legal p {
  color: var(--muted);
}

@media (max-width: 950px) {
  .hero-grid {
    gap: 30px;
  }
  nav {
    gap: 18px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    gap: 35px;
  }
  .visual {
    padding: 20px;
  }
}
@media (max-width: 740px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav {
    min-height: 72px;
  }
  .menu {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 25px 25px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  nav.open {
    display: flex;
  }
  nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  nav .btn {
    margin-top: 14px;
  }
  .hero {
    padding: 48px 0;
  }
  .hero-grid,
  .products,
  .split,
  .cards {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }
  section.section {
    padding: 60px 0;
  }
  .visual {
    max-width: 520px;
    width: 100%;
    margin: auto;
  }
  .strip .wrap {
    justify-content: flex-start;
  }
  .product {
    padding: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .contact-box {
    padding: 23px;
  }
  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* Proof: client names, kept next to the claim */
.proof{font-weight:700;margin:22px 0 0;padding-left:12px;border-left:3px solid var(--gold)}
.section.ink{background:var(--ink);color:#fff}
.section.ink .eyebrow{color:var(--gold)}
.section.ink p{color:#d6d6d3}
.section.ink .section-head p:last-child{color:#d6d6d3}
.clients{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-wrap:wrap;gap:12px}
.clients li{border:1px solid rgba(229,169,63,.6);color:#fff;border-radius:6px;padding:12px 20px;font-size:20px;font-weight:700}

/* Enquiry form: honeypot hidden from people and assistive tech; reCAPTCHA badge
   hidden because each form shows the required notice (Google's terms allow this). */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.grecaptcha-badge{visibility:hidden}
.fineprint{font-size:13px;color:var(--muted);margin:16px 0 0}
.fineprint a{color:var(--ink)}
.status[data-kind=ok]{color:#1d6b3a;font-weight:700}
.status[data-kind=error]{color:#a3261c;font-weight:700}
.status:focus{outline:none}
.btn:disabled{opacity:.6;cursor:wait}

/* Before / after comparison (Campus) */
.compare{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card)}
.compare-row{display:grid;grid-template-columns:1fr 1fr}
.compare-row span{padding:16px 22px;border-top:1px solid var(--line)}
.compare-row span:first-child{color:var(--muted)}
.compare-row span:last-child{border-left:3px solid var(--gold);font-weight:600}
.compare-head span{border-top:0;font-size:13px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--gold-text)!important;background:var(--gold-soft)}
@media(max-width:740px){
.compare-row{grid-template-columns:1fr}
.compare-row span:last-child{border-left:0;border-top:0;padding-top:0}
.compare-head span:last-child{display:none}
}
