/* market360.africa — one stylesheet for every page.
   Palette lifted from packages/ui/src/tokens.css, not sampled from a mockup —
   the marketing site and the apps have to be the same product. */
:root {
  --forest: #0f3d2e;
  --forest-dk: #0a2c21;
  --gold: #f2c94c;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --mut: #5d6b60;
  --line: #e4e2d9;
  --surface-2: #f3f0e8;
  --mint: #e8efe9;
  --shadow-1: 0 1px 3px rgba(15, 61, 46, 0.05);
  --shadow-2: 0 2px 6px rgba(15, 61, 46, 0.06), 0 18px 44px rgba(15, 61, 46, 0.1);

  /* One gutter, set once. Everything inside a section inherits it, so no
     element can quietly lose its side margin at a narrow width. */
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 1140px;
  --reading: 760px;
  --radius: 14px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.03em; color: var(--forest); font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
/* Anchored sections land below the sticky header, not under it. */
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-read { max-width: calc(var(--reading) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--cream);
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- header ---------------------------------------------------------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-in {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
  padding-block: 12px;
}
.brand {
  font-size: 22px; font-weight: 800; letter-spacing: -0.035em;
  color: var(--forest); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
}
.brand span { color: #d4a514; }
.site-nav { margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a {
  color: #2d3a31; text-decoration: none; font-size: 15px; font-weight: 450;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
/* The nav links are a convenience, not the way in: below 900px they fold away
   and the Contact button — the only thing a visitor must be able to reach —
   stays in the bar rather than hiding behind a menu nobody opens. */
@media (max-width: 899px) { .site-nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dk); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: #d9d6cc; }
.btn-ghost:hover { border-color: var(--forest); }
.btn:active { transform: translateY(1px); }
.header-cta { margin-left: auto; }
@media (min-width: 900px) { .header-cta { margin-left: 0; } }

/* ---- hero ------------------------------------------------------------ */
.hero {
  /* A warm lift towards the top right, the way the design does it — not a
     band, so it reads as light rather than as a coloured block. */
  background:
    radial-gradient(900px 520px at 92% -6%, rgba(242, 201, 76, 0.16), transparent 62%),
    var(--cream);
}
.hero-in {
  display: grid; gap: clamp(32px, 5vw, 56px);
  padding-block: clamp(48px, 8vw, 88px);
  align-items: start;
}
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.4fr 0.8fr; align-items: center; } }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.06; max-width: 14ch; margin-bottom: 26px; }
.hero-lede { font-size: clamp(16.5px, 2vw, 20px); color: var(--mut); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  padding: clamp(22px, 3vw, 26px);
}
.hero-card h2 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.02em; }
.hero-card p { color: var(--mut); font-size: 15px; }
.hero-card ul { margin-top: 18px; display: grid; gap: 12px; }
.hero-card li {
  display: grid; grid-template-columns: 9px 1fr; gap: 12px; align-items: start;
  font-size: 15px; color: var(--ink);
}
.hero-card li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); margin-top: 8px;
}

/* ---- sections -------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-lede { color: var(--mut); max-width: 62ch; font-size: clamp(15.5px, 1.6vw, 17px); }

.grid { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 36px); }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px;
}
.card h3 { font-size: 17px; margin-bottom: 9px; letter-spacing: -0.02em; }
.card p { color: var(--mut); font-size: 14.5px; }
.card-lg { padding: clamp(22px, 3vw, 26px); }
.card ul.dots { display: grid; gap: 5px; margin-top: 14px; }
.card ul.dots li {
  display: grid; grid-template-columns: 5px 1fr; gap: 12px; align-items: start;
  font-size: 14.5px; color: var(--mut);
}
.card ul.dots li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--mut); margin-top: 9px;
}

/* A policy card: the link sits at the foot of the card whatever the length
   of the description above it, the way the design lines them up. */
.policy-card { display: flex; flex-direction: column; }
.policy-card p { flex: 1; }
.policy-card .more {
  align-self: flex-start;
  margin-top: 14px; min-height: 44px;
  display: inline-flex; align-items: center;
  color: var(--forest); font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.policy-card .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.policy-card .soon { margin-top: 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--mut); font-size: 14.5px; font-weight: 600; }

/* ---- the forest band ------------------------------------------------- */
.band { background: var(--forest); color: #fff; padding-block: clamp(56px, 8vw, 92px); }
.band h2 { color: #fff; }
.band .section-lede { color: #e2ece6; }
.step {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 22px;
}
.step-n {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #f2c94b !important; margin-bottom: 9px;
}
.step h3 { color: #fff; font-size: 17px; margin-bottom: 9px; letter-spacing: -0.02em; line-height: 1.35; }
.step p { color: #d9e6de; font-size: 14.5px; }

/* ---- company / notes / contact --------------------------------------- */
.note {
  margin-top: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--mut);
  font-size: 14.5px;
}
.note b { color: var(--forest); }

.facts {
  margin: clamp(28px, 4vw, 36px) 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { padding: 16px 20px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
@media (min-width: 700px) { .fact:nth-child(2) { border-top: 0; } }
.fact dt {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 4px;
}
.fact dd { margin: 0; color: #3a463e; }
.fact a { text-underline-offset: 3px; }

.contact-lines { display: grid; gap: 2px; margin-top: 10px; color: #3a463e; font-size: 15px; }
.contact-lines b { color: #3a463e; }
.contact-lines a, .card p a { text-underline-offset: 3px; }
.card p + p { margin-top: 12px; }

/* ---- policy pages ----------------------------------------------------- */
.doc-head { border-bottom: 1px solid var(--line); padding-block: clamp(36px, 6vw, 60px) clamp(28px, 4vw, 40px); }
.back {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--mut); font-size: 15px; text-decoration: none;
}
.back:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.doc-head h1 { font-size: clamp(32px, 5.4vw, 46px); margin: 2px 0 14px; }
.doc-head .lede { color: var(--mut); font-size: clamp(16px, 1.9vw, 18.5px); max-width: 44em; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px;
  border-radius: 999px; background: var(--mint); border: 1px solid #d6e2d9;
  color: var(--forest); font-size: 14px; font-weight: 700;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }

.doc { padding-block: clamp(32px, 5vw, 44px) clamp(56px, 8vw, 80px); color: #3a463e; font-size: 17px; line-height: 1.68; }
.doc h2 { font-size: clamp(20px, 2.6vw, 23px); letter-spacing: -0.02em; margin: 0 0 12px; }
.doc h2:not(:first-child) { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 36px); margin-top: clamp(30px, 4vw, 38px); }
.doc .callout + h2 { border-top: 0; padding-top: 0; margin-top: 26px; }
.doc p { margin: 0 0 13px; }
.doc ul { list-style: disc; padding-left: 22px; margin: 0 0 13px; }
.doc li { margin: 0 0 7px; padding-left: 2px; }
.doc li::marker { color: #3a463e; }
.doc strong { color: #2d3a31; }
.callout {
  background: var(--mint); border: 1px solid #d6e2d9; border-left: 5px solid var(--forest);
  border-radius: var(--radius); padding: 18px 22px; font-size: 16.5px;
}
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; font-size: 15.5px; line-height: 1.75; margin: 0 0 13px;
}
.contact-card b { color: var(--forest); }
.contact-card a { text-underline-offset: 3px; }
.doc-list { display: grid; gap: 16px; padding-block: clamp(32px, 5vw, 44px) clamp(56px, 8vw, 80px); }
.doc-list .note { margin-top: 12px; }

/* ---- footer ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.footer-id { font-size: 14px; color: var(--mut); line-height: 1.55; }
.footer-id b { display: block; color: var(--forest); font-size: 15px; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: -10px; }
.footer-links a {
  color: var(--mut); text-decoration: none; font-size: 14.5px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer-links a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .footer-links { margin-left: 0; margin-top: 0; } }

/* ---- print: the PDF copies are printed from these pages --------------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip, .back, .doc-meta .btn { display: none !important; }
  .doc-head { padding: 0 0 10pt; }
  .doc { font-size: 11pt; padding: 12pt 0 0; }
  .doc h2 { break-after: avoid; }
  .doc li, .doc p, .callout, .contact-card { break-inside: avoid; }
  .wrap-read { max-width: none; padding: 0; }
  a { text-decoration: none; }
}
