/* kit.africa — Kit AI
 *
 * The design system: warm ivory paper, deep navy ink, Kit green as the one
 * accent that means "act". Big serif headlines that carry the weight of the
 * claim, sans body that gets out of the way, and cards with generous radii
 * sitting on tinted panels.
 *
 * Colours are the logo's, not a theme's: #122d46 navy and #34b98b green. The
 * green is deepened to #17805f wherever white text sits on it, because brand
 * fidelity is not worth a button nobody can read.
 *
 * Nothing loads from another host. A wholesaler in Kikuubo on a tethered phone
 * should not be waiting on a font CDN in Virginia.
 */

:root {
  --paper: #faf9f5;
  --paper-warm: #f2efe6;
  --paper-sand: #ece7da;
  --surface: #ffffff;

  --navy: #122d46;
  --navy-deep: #0b1d2f;
  --ink: #16212c;
  --ink-soft: #3f4b57;
  --muted: #6a747e;
  --line: #e2ddd0;
  --line-soft: #eeeae0;

  --green: #34b98b;
  --green-act: #17805f;
  --green-deep: #0f6349;
  --green-wash: #e4f4ed;
  --green-tint: #d7efe4;

  --radius-btn: 10px;
  --radius-card: 20px;
  --radius-panel: 28px;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-card: 0 1px 2px rgba(18, 45, 70, .04), 0 12px 32px -22px rgba(18, 45, 70, .30);
  --shadow-lift: 0 2px 4px rgba(18, 45, 70, .05), 0 28px 64px -34px rgba(18, 45, 70, .40);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.mid { max-width: 940px; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 245, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.masthead .wrap { display: flex; align-items: center; gap: 10px; height: 72px; }
.masthead.is-stuck { border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand svg, .brand img { height: 26px; width: auto; display: block; }
.brand .suffix {
  font-family: var(--serif); font-size: 21px; color: var(--navy);
  letter-spacing: -.02em; padding-left: 9px; margin-left: 3px;
  border-left: 1px solid var(--line);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 14px; border-radius: 9px; color: var(--ink-soft);
  font-size: 15px; font-weight: 450; white-space: nowrap;
}
.nav a:hover { background: var(--paper-warm); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 550; }
.nav .sep { width: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-btn);
  border: 1px solid transparent; font-family: var(--sans);
  font-size: 15.5px; font-weight: 550; line-height: 1.2; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-act); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; box-shadow: 0 8px 22px -12px rgba(15, 99, 73, .8); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(18, 45, 70, .04); }
.btn-onnavy { background: #fff; color: var(--navy); }
.btn-onnavy:hover { background: var(--paper); color: var(--navy); }
.btn-onnavy-ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn-onnavy-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 14.5px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------- type */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); letter-spacing: -.021em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.03; margin: 0 0 22px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 18px; }
h3 { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.25; margin: 0 0 10px; }
h4 { font-size: 18.5px; line-height: 1.3; margin: 0 0 8px; }

p { margin: 0 0 18px; }
.lede { font-size: clamp(18.5px, 2vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-deep); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.tiny { font-size: 13px; }

section { padding: 92px 0; }
section.tight { padding: 60px 0; }
section.snug { padding: 40px 0; }

.panel-warm { background: var(--paper-warm); }
.panel-sand { background: var(--paper-sand); }
.panel-white { background: var(--surface); }
.panel-navy { background: var(--navy); color: #dde6ee; }
.panel-navy h1, .panel-navy h2, .panel-navy h3, .panel-navy h4 { color: #fff; }
.panel-navy .lede { color: #b6c6d4; }
.panel-navy .eyebrow { color: var(--green); }
.panel-navy .eyebrow::before { background: var(--green); }
.panel-navy a { color: #fff; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ------------------------------------------------------------------- hero */

.hero { padding: 108px 0 68px; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.hero-note { margin: 20px 0 0; font-size: 14.5px; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }

/* Product panel — the "screenshot" of a real conversation. */
.panel-app {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.panel-app-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: #fcfbf8;
}
.panel-app-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ded8ca; display: block; }
.panel-app-bar .where { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.panel-app-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--green-deep); font-weight: 600; }
.panel-app-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.panel-app-body { padding: 26px 24px 28px; display: grid; gap: 20px; }

.turn { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.turn .who {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--navy);
}
.turn.ai .who { background: var(--green-act); }
.turn p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.turn p + p { margin-top: 11px; }
.turn strong { color: var(--navy); font-weight: 650; }
.turn .meter {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: -.01em;
}

/* ----------------------------------------------------------------- proof */

.proof { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.proof span { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.proof b { color: var(--navy); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; }
.stat .n { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 56px); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.panel-navy .stat .n { color: #fff; }
.stat .n em { font-style: normal; color: var(--green); }
.stat p { margin: 12px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 26ch; }
.panel-navy .stat p { color: #a9bbcb; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-card); padding: 30px 28px;
}
.card p:last-child { margin-bottom: 0; }
.card .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-wash); color: var(--green-deep); margin-bottom: 18px;
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card-tint { background: var(--paper-warm); border-color: transparent; }

.feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: center;
}
.feature-visual {
  border-radius: var(--radius-panel); padding: 34px;
  background: var(--paper-sand); border: 1px solid var(--line-soft);
}

.bounded { display: grid; gap: 14px; }
.bounded-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 15px 18px; font-size: 15px;
}
.bounded-row .verdict { margin-left: auto; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.bounded-row .verdict.yes { color: var(--green-deep); }
.bounded-row .verdict.no { color: #9a5a3f; }
.bounded-row .role { font-weight: 600; color: var(--navy); }

.steps { counter-reset: step; display: grid; gap: 34px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.step .n {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 19px;
}
.step .n::before { content: counter(step); }
.step p:last-child { margin-bottom: 0; }

.quote { max-width: 26ch; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.22; letter-spacing: -.02em; color: var(--navy);
}
.panel-navy .quote blockquote { color: #fff; }
.quote figcaption { margin-top: 22px; font-size: 15px; color: var(--muted); }
.panel-navy .quote figcaption { color: #9fb3c4; }

/* --------------------------------------------------------------- pricing */

.toggle {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--paper-warm); border: 1px solid var(--line-soft);
}
.toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 14.5px; font-weight: 550; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; transition: background .16s ease, color .16s ease;
}
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-card); }
.toggle .save { color: var(--green-deep); font-weight: 650; margin-left: 6px; }

.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); align-items: stretch; }
.tier {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-card); padding: 30px 26px 28px;
}
.tier.is-featured { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.tier .flag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-wash); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.tier h3 { margin-bottom: 6px; font-size: 24px; }
.tier .who { font-size: 14.5px; color: var(--muted); min-height: 42px; margin-bottom: 18px; }
.tier .amount { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tier .amount .fig { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.tier .amount .per { font-size: 14.5px; color: var(--muted); }
.tier .local { margin: 9px 0 0; font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.tier .billed { margin: 4px 0 22px; font-size: 13.5px; color: var(--green-deep); font-weight: 550; min-height: 20px; }
.tier ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.tier li { position: relative; padding-left: 27px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 13px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.tier li.head { padding-left: 0; font-weight: 600; color: var(--navy); font-size: 14px; }
.tier li.head::before { display: none; }
.tier .cta { margin-top: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-card); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 15px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
thead th { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 650; background: #fcfbf8; }
tbody th { font-weight: 550; color: var(--navy); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.num { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
td.yes { color: var(--green-deep); font-weight: 650; }
td.no { color: var(--muted); }

.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 20.5px;
  color: var(--navy); display: flex; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--sans); font-size: 22px;
  color: var(--green-deep); line-height: 1; transition: transform .18s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); max-width: 68ch; }

/* ------------------------------------------------------------- downloads */

.release { border: 1px solid var(--line-soft); border-radius: var(--radius-card); background: var(--surface); margin-bottom: 20px; overflow: hidden; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding: 24px 28px; border-bottom: 1px solid var(--line-soft); background: #fcfbf8; }
.release-head h3 { margin: 0; }
.release-head .when { font-size: 14px; color: var(--muted); }
.release-head .latest { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--green-wash); color: var(--green-deep); padding: 4px 11px; border-radius: 999px; }
.release-notes { padding: 22px 28px 6px; }
.release-notes ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-soft); }
.release-notes li { margin-bottom: 7px; }
.assets { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 6px 28px 28px; }
.asset { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-soft); border-radius: 14px; padding: 15px 17px; color: var(--ink); }
.asset:hover { border-color: var(--green); background: #fbfefc; text-decoration: none; }
.asset .os { width: 27px; height: 27px; flex: 0 0 27px; color: var(--navy); }
.asset b { display: block; font-weight: 600; font-size: 15px; color: var(--navy); }
.asset span { display: block; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.no-assets { padding: 6px 28px 28px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- contact */

.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
dl.facts { margin: 0; display: grid; gap: 18px; }
dl.facts dt { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
dl.facts dd { margin: 5px 0 0; font-size: 16.5px; color: var(--ink); }

/* ---------------------------------------------------------------- footer */

.foot-site { background: var(--navy); color: #9fb3c4; padding: 68px 0 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
.foot-site h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #7d93a6; margin: 0 0 16px; font-weight: 650; }
.foot-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-site a { color: #cbd8e3; font-size: 15px; }
.foot-site a:hover { color: #fff; }
.foot-site .brand svg { height: 26px; }
.foot-site .brand .suffix { color: #fff; border-left-color: rgba(255, 255, 255, .22); }
.foot-blurb { margin: 18px 0 0; font-size: 15px; color: #8ea3b5; max-width: 32ch; }
.foot-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; color: #7d93a6;
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--navy); padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 90; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green-act); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature { gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .masthead .wrap { height: 64px; }
  .nav a:not(.btn) { display: none; }
  .nav .sep { display: none; }
  .card { padding: 26px 22px; }
  .brand .suffix { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .masthead, .foot-site, .hero-actions, .toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* Download page — the one button that matters, chosen for the visitor. */
.get { margin-top: 30px; }
.get .btn { min-width: 260px; }
.get-alt { display: block; margin-top: 14px; font-size: 15px; color: var(--muted); }
.get-alt a { margin-right: 14px; font-weight: 550; }
.get-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
