/* BlvckMarkt Ventures Africa: company website.
   One stylesheet, no framework. Fonts are served from this site (nothing is
   loaded from Google or anywhere else). Light and dark themes: the site
   follows the visitor's device setting until they press the theme button,
   which then remembers their choice (see theme-init.js and theme.js). */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/fonts/outfit-400regular.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/fonts/outfit-500medium.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/fonts/outfit-600semibold.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("/fonts/outfit-700bold.woff2") format("woff2"); }
/* Syne is used only for the BLVCKMARKT wordmark (the logo). */
@font-face { font-family: "Syne"; font-weight: 800; font-display: swap; src: url("/fonts/syne-800extrabold.woff2") format("woff2"); }

/* ---------- Colours ---------- */

/* Light theme */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --line: #e2e3e8;
  --text: #0a0a0b;
  --muted: #4a4e57;
  --quiet: #676b76;
  --header-bg: rgba(247, 247, 248, 0.88);
  --button-hover: #26272b;
  --plugg: #1a57db;
  --plugg-hover: #164bbd;
  --plugg-text: #1a57db;
  --focus: #1a57db;
  --product-start: #eaf0ff;
  --product-border: #c8d6f7;
  --fact-bg: #f4f7ff;
  --fact-border: #d9e3fb;
  --tick-bg: rgba(26, 87, 219, 0.12);
  --dashed: #c4c6ce;
  --live-text: #047857;
  --live-bg: rgba(13, 158, 110, 0.12);
  --soon-text: #92400e;
  --soon-bg: rgba(217, 119, 6, 0.14);
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: light;
}

/* Dark theme: when the device is set to dark and the visitor has not picked
   light, or when the visitor picked dark. Keep the two blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b;
    --surface: #141416;
    --line: #27272c;
    --text: #f5f6f8;
    --muted: #a3a6ae;
    --quiet: #8b8e97;
    --header-bg: rgba(10, 10, 11, 0.88);
    --button-hover: #dcdee3;
    --plugg-text: #8fb0f5;
    --focus: #8fb0f5;
    --product-start: #10172b;
    --product-border: #22305a;
    --fact-bg: #0d1220;
    --fact-border: #1e2a4d;
    --tick-bg: rgba(26, 87, 219, 0.15);
    --dashed: #3a3a42;
    --live-text: #6ee7b7;
    --live-bg: rgba(13, 158, 110, 0.15);
    --soon-text: #f5c46b;
    --soon-bg: rgba(245, 196, 107, 0.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #141416;
  --line: #27272c;
  --text: #f5f6f8;
  --muted: #a3a6ae;
  --quiet: #8b8e97;
  --header-bg: rgba(10, 10, 11, 0.88);
  --button-hover: #dcdee3;
  --plugg-text: #8fb0f5;
  --focus: #8fb0f5;
  --product-start: #10172b;
  --product-border: #22305a;
  --fact-bg: #0d1220;
  --fact-border: #1e2a4d;
  --tick-bg: rgba(26, 87, 219, 0.15);
  --dashed: #3a3a42;
  --live-text: #6ee7b7;
  --live-bg: rgba(13, 158, 110, 0.15);
  --soon-text: #f5c46b;
  --soon-bg: rgba(245, 196, 107, 0.12);
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Headings: Outfit, tightly set. (Syne made big headings look stretched.) */
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.wordmark {
  font-family: "Syne", sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: 0.14em;
  text-decoration: none; white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Theme button. Hidden until theme-init.js has run, since it needs script. */
.theme-toggle {
  display: none;
  width: 38px; height: 38px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--quiet); }
.js .theme-toggle { display: inline-flex; }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the moon in light mode (press for dark), the sun in dark mode. */
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 112px 0 96px; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 20px; color: var(--quiet);
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; max-width: 18ch;
  font-weight: 700;
  font-size: clamp(36px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.035em;
}
.hero .lead { margin: 28px 0 0; max-width: 40rem; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-primary:hover { background: var(--button-hover); border-color: var(--button-hover); }
.button-ghost:hover { border-color: var(--quiet); }
.button-plugg { background: var(--plugg); border-color: var(--plugg); color: #fff; }
.button-plugg:hover { background: var(--plugg-hover); border-color: var(--plugg-hover); }
.arrow { font-size: 18px; line-height: 1; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 48px; }
.section h2 {
  margin: 0; font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.03em;
}
.section-head p { margin: 16px 0 0; color: var(--muted); }

/* About */
.story { max-width: 46rem; }
.story p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.story p:first-child { color: var(--text); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.story p:last-child { margin-bottom: 0; }

.pillars-label { margin: 64px 0 12px; }
.pillars-intro { margin: 0 0 24px; max-width: 44rem; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar .num { color: var(--quiet); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.pillar h3 { margin: 14px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* Products */
.product {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  background: linear-gradient(160deg, var(--product-start) 0%, var(--surface) 55%);
  border: 1px solid var(--product-border); border-radius: 24px; padding: 48px;
}
.product-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-brand img { width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.product-brand .name { font-size: 28px; font-weight: 600; line-height: 1.1; }
.product-brand .site { color: var(--plugg-text); font-size: 15px; }
.product-brand .status { margin-left: auto; }
.product p { margin: 0; color: var(--muted); }
.product p + p { margin-top: 12px; }
.product .problem { color: var(--text); font-weight: 600; }
.product .actions { margin-top: 32px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--fact-bg); border: 1px solid var(--fact-border); border-radius: 12px; padding: 16px 18px;
}
.facts .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tick-bg); color: var(--plugg-text);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px;
}
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--muted); font-size: 15px; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store-note {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--product-border);
  color: var(--muted); font-size: 15px;
}
.store-note b { color: var(--text); font-weight: 600; }
.soon {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soon-text); background: var(--soon-bg); padding: 3px 8px; border-radius: 999px;
}

.status {
  display: inline-block; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.status-live { color: var(--live-text); background: var(--live-bg); }
.status-soon { color: var(--soon-text); background: var(--soon-bg); }

.pipeline {
  margin-top: 16px; padding: 36px 48px;
  border: 1px dashed var(--dashed); border-radius: 24px;
}
.pipeline h3 { margin: 16px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.pipeline p { margin: 0; max-width: 40rem; color: var(--muted); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-weight: 600; text-decoration: none; color: var(--text);
}
.text-link:hover { text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; text-decoration: none;
}
a.contact-card:hover { border-color: var(--quiet); }
.contact-card .label { color: var(--quiet); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-card .value { margin-top: 8px; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.contact-card .hint { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- Legal pages ---------- */

.legal { padding: 72px 0 96px; }
.legal article { max-width: 46rem; }
.legal h1 {
  margin: 0; font-weight: 700;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em;
}
.legal .updated { margin: 14px 0 0; color: var(--quiet); font-size: 15px; }
.legal .intro { margin: 28px 0 0; color: var(--text); font-size: 19px; }
.legal h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.legal h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--plugg-text); }
.legal .note {
  margin: 28px 0 0; padding: 16px 20px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 15.5px;
}

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.legal-name { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
.site-footer p { margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.privacy-line { color: var(--quiet); font-size: 14px; }

/* The home page's last section already draws a line above the footer. */
main > .section:last-child { border-bottom: 0; }

/* ---------- 404 ---------- */

.not-found { min-height: calc(100vh - 69px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found h1 { margin: 0; font-weight: 700; letter-spacing: -0.03em; font-size: clamp(40px, 8vw, 68px); }
.not-found p { color: var(--muted); }
.not-found .actions { justify-content: center; }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .pillars, .contact-grid { grid-template-columns: 1fr; }
  .pillars-label { margin-top: 48px; }
  .product { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .pipeline { padding: 28px 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 60px; }
  .wordmark { font-size: 13px; letter-spacing: 0.08em; }
  .header-right { gap: 14px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .theme-toggle { width: 34px; height: 34px; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .pillar, .contact-card { padding: 22px; }
  .button { width: 100%; justify-content: center; }
  .stores { flex-direction: column; }
  .store-note { justify-content: center; flex-wrap: wrap; border-radius: 14px; text-align: center; }
  .legal { padding: 48px 0 64px; }
}
@media (max-width: 420px) {
  .nav a.nav-about { display: none; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 12px; letter-spacing: 0.06em; }
  .header-right, .nav { gap: 10px; }
  .nav a.nav-products { display: none; }
}
