/* Khuluma landing + shared UI chrome. Import after tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--kh-font-body);
  color: var(--kh-ink);
  line-height: 1.6;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(184, 107, 82, .14), transparent 58%),
    radial-gradient(ellipse 50% 35% at 100% 15%, rgba(212, 160, 53, .08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(74, 92, 56, .1), transparent 45%),
    var(--kh-bg);
  -webkit-text-size-adjust: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.skip {
  position: absolute; left: -9999px; top: auto;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 20;
  background: var(--kh-panel2); color: var(--kh-ink);
  padding: .6rem 1rem; border: var(--kh-stroke) solid var(--kh-ink-stroke);
  font-family: var(--kh-font-head);
}

.wrap { max-width: 820px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }

/* ── Ndebele frame primitives ── */
.ndebele-strip {
  height: 14px;
  margin: 0 -1.2rem;
  background: url("/assets/khuluma/ndebele-strip.svg") repeat-x center;
  background-size: auto 14px;
  border-bottom: var(--kh-stroke) solid var(--kh-ink-stroke);
}

.ndebele-frame {
  position: relative;
  background: var(--kh-panel);
  border: var(--kh-stroke-heavy) solid var(--kh-ink-stroke);
  box-shadow:
    inset 0 0 0 2px var(--kh-cream),
    inset 0 0 0 5px var(--kh-warrior-red);
  padding: 1.2rem 1.3rem;
}

.ndebele-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--kh-mustard);
  pointer-events: none;
}

.ndebele-frame--blue {
  box-shadow:
    inset 0 0 0 2px var(--kh-cream),
    inset 0 0 0 5px var(--kh-ndebele-blue);
}

.ndebele-frame--sunset {
  box-shadow:
    inset 0 0 0 2px var(--kh-cream),
    inset 0 0 0 5px var(--kh-terracotta);
}

.ndebele-frame--olive {
  box-shadow:
    inset 0 0 0 2px var(--kh-cream),
    inset 0 0 0 5px var(--kh-olive);
}

/* ── Header ── */
header.bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .3rem 0 1rem; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--kh-font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--kh-muted); text-decoration: none;
}
.brand img { width: 36px; height: 36px; display: block; }
.brand .kh-mark { width: 36px; height: 36px; flex: none; }
.brand b { color: var(--kh-ink); font-weight: 600; }
.brand .sep { color: var(--kh-dust); font-weight: 500; }

.spacer { flex: 1; }

.pill {
  font-family: var(--kh-font-head);
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: .32rem .7rem;
  border-radius: var(--kh-radius-pill);
  background: var(--kh-panel2);
  color: var(--kh-mustard);
  border: var(--kh-stroke) solid var(--kh-ink-stroke);
  box-shadow: inset 0 0 0 1px var(--kh-mustard);
}

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
  align-items: center; margin-bottom: 1.6rem;
}
@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
}

.hero-visual {
  overflow: hidden;
  border: var(--kh-stroke-heavy) solid var(--kh-ink-stroke);
  box-shadow:
    inset 0 0 0 3px var(--kh-mustard),
    6px 6px 0 var(--kh-ink-stroke);
  background: var(--kh-panel);
}
.hero-visual img { display: block; width: 100%; height: auto; vertical-align: middle; }

.eyebrow {
  font-family: var(--kh-font-head); text-transform: uppercase;
  letter-spacing: .22em; font-size: .72rem;
  color: var(--kh-terracotta); font-weight: 600; margin: 0 0 .65rem;
}

h1 {
  font-family: var(--kh-font-head); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.06;
  font-size: clamp(2rem, 6.5vw, 3rem);
  color: var(--kh-ink); margin: .1rem 0 .65rem;
}
h1 .accent { color: var(--kh-mustard); }

.lede {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  color: var(--kh-muted); max-width: 36ch; margin: 0;
}
.meaning { margin: .85rem 0 0; color: var(--kh-muted); font-size: .95rem; }
.meaning em { color: var(--kh-mustard); font-style: normal; font-weight: 700; }

/* ── Main sections ── */
main { display: flex; flex-direction: column; gap: 1.25rem; }

.card { /* extends ndebele-frame */ }
.card h2, .ndebele-frame h2 {
  font-family: var(--kh-font-head); font-size: 1.1rem;
  color: var(--kh-ink); margin: 0 0 .55rem; letter-spacing: -.01em;
  position: relative; z-index: 1;
}
.card p, .ndebele-frame p { margin: .35rem 0; color: var(--kh-muted); position: relative; z-index: 1; }
.card p strong, .ndebele-frame p strong { color: var(--kh-ink); font-weight: 700; }

.steps {
  margin: .4rem 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: .85rem;
  position: relative; z-index: 1;
}
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }

.step-num {
  width: 2rem; height: 2rem;
  background: var(--kh-panel2);
  border: var(--kh-stroke) solid var(--kh-ink-stroke);
  color: var(--kh-mustard);
  font-family: var(--kh-font-head); font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--kh-ndebele-blue);
}
.steps li b { display: block; color: var(--kh-ink); font-size: 1rem; margin-bottom: .15rem; }
.steps li span { color: var(--kh-muted); font-size: .95rem; }

.features {
  margin: .35rem 0 0; padding: 0; list-style: none;
  display: grid; gap: .55rem; position: relative; z-index: 1;
}
@media (min-width: 520px) { .features { grid-template-columns: 1fr 1fr; } }

.features li {
  padding: .75rem .85rem;
  background: var(--kh-panel2);
  border: var(--kh-stroke) solid var(--kh-ink-stroke);
  color: var(--kh-muted); font-size: .94rem;
  box-shadow: inset 3px 0 0 var(--kh-ndebele-blue);
}
.features li b { display: block; color: var(--kh-ink); margin-bottom: .2rem; font-size: .98rem; }

/* ── CTA ── */
.cta-box {
  text-align: center; padding: 1.6rem 1.3rem 1.4rem;
  position: relative;
}
.cta-box h2 { font-size: 1.25rem; margin: 0 0 .45rem; }
.cta-box p { margin: 0 0 1.1rem; max-width: 38ch; margin-left: auto; margin-right: auto; }

.cta {
  display: inline-block; min-height: 48px; min-width: 48px;
  padding: .85rem 1.5rem; border-radius: var(--kh-radius-pill);
  background: var(--kh-mustard); color: var(--kh-accent-ink);
  font-family: var(--kh-font-head); font-weight: 700;
  text-decoration: none; font-size: 1rem;
  border: var(--kh-stroke-heavy) solid var(--kh-ink-stroke);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--kh-ink-stroke);
}
.cta:hover { background: #e0b84a; }
.cta[aria-disabled="true"] { opacity: .75; cursor: default; }

.cta-note { margin-top: .85rem; font-size: .88rem; color: var(--kh-muted); position: relative; z-index: 1; }
.cta-note a { color: var(--kh-mustard); }

/* ── Tech section ── */
.tech h2 { font-size: 1.15rem; }
.tech h3 {
  font-family: var(--kh-font-head); font-size: 1rem;
  color: var(--kh-ink); margin: 1.1rem 0 .45rem;
  position: relative; z-index: 1;
}
.tech-lead { margin: 0 0 1rem; font-size: .96rem; position: relative; z-index: 1; }

.tech-grid {
  display: grid; gap: .65rem; margin: .5rem 0 0;
  position: relative; z-index: 1;
}
@media (min-width: 520px) { .tech-grid { grid-template-columns: 1fr 1fr; } }

.tech-item {
  padding: .8rem .9rem;
  background: var(--kh-panel2);
  border: var(--kh-stroke) solid var(--kh-ink-stroke);
  font-size: .9rem; color: var(--kh-muted);
  box-shadow: inset 3px 0 0 var(--kh-olive);
}
.tech-item b { display: block; color: var(--kh-ink); font-size: .95rem; margin-bottom: .2rem; }

.tech-list {
  margin: .45rem 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: .55rem;
  position: relative; z-index: 1;
}
.tech-list li {
  padding: .7rem .85rem;
  background: var(--kh-panel2);
  border: var(--kh-stroke) solid var(--kh-ink-stroke);
  color: var(--kh-muted); font-size: .92rem;
}
.tech-list li b { color: var(--kh-ink); }

.tech-note { margin: .85rem 0 0; font-size: .88rem; position: relative; z-index: 1; }
.tech-note a { color: var(--kh-mustard); }

/* ── Footer ── */
footer {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  color: var(--kh-muted); font-size: .9rem;
}
footer .ndebele-strip { margin: 0 0 1.1rem; }
footer a { color: var(--kh-mustard); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .tenant { color: var(--kh-ink); font-family: var(--kh-font-head); font-weight: 600; }

a { color: var(--kh-mustard); }
