:root {
  color-scheme: light;
  --page: #f3f5ee;
  --surface: #fff;
  --ink: #17291e;
  --muted: #4c5c51;
  --line: #b2c6a5;
  --forest: #103122;
  --green: #145420;
  --lime: #ccf28e;
  --soft-lime: #e0f3cf;
  --shell: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.5; }
h1, h2, p, ul { margin: 0; }
svg { display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #32744b; outline-offset: 5px; }

.shell {
  width: min(var(--shell), 100% - 3rem);
  margin-inline: auto;
}
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Logo lockup: matches the header on africonnectsolutions.co.za */
.brand { display: inline-flex; align-items: center; gap: 0; font-family: Sora, var(--font-fallback, sans-serif); }
.brand-mark { display: block; flex: none; width: 70px; height: 70px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-word { white-space: nowrap; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.brand-afri { color: #a3d955; }
.brand-sub { margin-top: 4px; white-space: nowrap; color: #8fc93a; font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.header-label { color: var(--muted); font-size: .95rem; font-weight: 550; text-align: right; white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(12rem, 18vw, 15rem);
  display: grid;
  align-items: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid #1c3d2a;
  border-radius: clamp(1rem, 1.6vw, 1.4rem);
  background: linear-gradient(105deg, #102d21, #163c2b);
  color: white;
}
.hero-content { position: relative; z-index: 1; }
.eyebrow { font-size: clamp(.7rem, 1vw, .82rem); font-weight: 750; letter-spacing: .21em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: .65em; color: #f5fbf0; }
.hero-eyebrow span { flex: 0 0 .9em; height: .9em; border-radius: 50%; background: #b9f454; }
.hero h1 { margin-top: .25em; font-size: clamp(2.25rem, 4.5vw, 3.6rem); line-height: 1.04; letter-spacing: -.05em; font-weight: 800; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-content > p:last-child { max-width: 40rem; margin-top: .4em; color: #eef6ed; font-size: clamp(.95rem, 1.4vw, 1.15rem); }
.hero-art { position: absolute; width: 40%; height: 100%; inset: 0 0 0 auto; mask-image: linear-gradient(to right, transparent, #000 27%, #000 86%, transparent); }

.apps { margin-block: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem); }
.apps-header { display: flex; align-items: center; gap: .75rem; margin-bottom: clamp(1rem, 1.6vw, 1.25rem); }
.apps-header h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; letter-spacing: -.04em; }
.app-count { padding: .1em .7em; border: 2px solid #98b67e; border-radius: 999px; color: #386334; background: #e9f2dd; font-size: .85rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 0; list-style: none; }
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.5rem;
  border: 2px solid #c1d4b6;
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 6px 15px #142b2010;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-icon { display: grid; place-items: center; width: 3.25rem; aspect-ratio: 1; border-radius: .8rem; background: var(--soft-lime); color: var(--green); }
.app-icon svg { width: 60%; height: 60%; }
.app-name { margin-top: 1.1rem; color: #151915; font-size: 1.25rem; font-weight: 790; line-height: 1.15; letter-spacing: -.03em; }
.app-description { margin-top: .4rem; color: var(--muted); font-size: .97rem; line-height: 1.45; }
.app-action { display: inline-flex; align-items: center; gap: .3em; margin-top: auto; padding-top: 1.1rem; color: var(--green); font-size: .97rem; font-weight: 760; }
.app-action svg { width: 1em; height: 1em; }
.app-card:focus-visible .app-action { text-decoration: underline; }
@media (hover: hover) {
  a.app-card:hover { transform: translateY(-3px); border-color: #a7be9d; box-shadow: 0 10px 24px #142b2010; }
  a.app-card:hover .app-action { text-decoration: underline; }
}

/* Apps that are planned but not live yet */
.app-card.is-soon { border-style: dashed; background: #fafbf7; box-shadow: none; }
.app-card.is-soon .app-icon { background: #edf0e8; color: var(--muted); }
.app-card.is-soon .app-name { color: var(--muted); }
.soon-badge { margin-top: auto; margin-bottom: 0; padding: .2em .7em; border: 1px solid #c9d3c2; border-radius: 999px; color: var(--muted); background: #f0f2ec; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.app-card.is-soon .app-description { margin-bottom: 1.1rem; }

.login-note { display: flex; align-items: center; gap: .6em; margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }
.login-note svg { width: 1.15em; height: 1.15em; flex: 0 0 1.15em; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem 1.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--green); font-weight: 680; text-decoration: none; text-underline-offset: .18rem; }
.site-footer a:is(:hover, :focus-visible) { text-decoration: underline; }

@media (max-width: 60rem) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .hero { min-height: 12rem; }
  .hero-art { width: 48%; opacity: .37; }
}
@media (max-width: 40rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.25rem; }
  .header-label { font-size: .8rem; }
  .hero { min-height: 11rem; border-radius: 1.1rem; }
  .hero-art { display: none; }
  .app-grid { grid-template-columns: 1fr; gap: .75rem; }
  .app-card { padding: 1.25rem; }
}
@media (max-width: 25rem) {
  .header-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
  a.app-card:hover { transform: none; }
}
