/* Oxi Group — site styles.
   Layout: ink header and bands alternate with a pale stone ground; one orange accent marks action. */
:root {
  --ink: #0F1724;
  --ink-2: #1A2536;
  --ink-line: #2A3547;
  --ground: #F5F6F4;
  --paper: #FFFFFF;
  --line: #E2E5E9;
  --text: #0F1724;
  --muted: #4B5563;
  --on-ink: #F5F6F4;
  --on-ink-muted: #C9CED6;
  --on-ink-quiet: #9AA3B2;
  --accent: #F97316;
  --accent-ink: #C2410C;
  --accent-ink-hover: #9A3412;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-ink-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.section { padding-block: 96px; }
@media (max-width: 720px) { .section { padding-block: 64px; } }

/* Type */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; }
.h1-sub { font-size: clamp(36px, 5vw, 60px); max-width: 900px; }
.h2 { font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.015em; }
.h3 { font-weight: 600; font-size: 23px; line-height: 1.25; }
.h4 { font-weight: 600; font-size: 19px; line-height: 1.3; }
.narrow { max-width: 760px; }
.eyebrow { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow-dark { color: var(--accent); }
.lead { margin: 20px 0 0; font-size: 18px; color: var(--muted); max-width: 62ch; }
.lead-dark { margin: 24px 0 0; font-size: 19px; color: var(--on-ink-muted); max-width: 62ch; }
.link-dark { color: var(--accent); }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; border: 0; font-family: inherit; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: #FB8B3C; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-outline { background: transparent; color: var(--on-ink); border: 1.5px solid #5B6576; }
.btn-outline:hover { background: var(--ink-2); color: var(--on-ink); }
.btn-block { width: 100%; }
.btn-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-ink); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand:hover { color: var(--on-ink); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
.nav-links a:not(.btn) { color: #D6DAE0; text-decoration: none; padding-block: 10px; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { color: var(--on-ink); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--on-ink); border-bottom-color: var(--accent); }
@media (max-width: 640px) { .nav-links { gap: 4px 18px; width: 100%; } .nav-links .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: 72px 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero-tiles { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--ink-2); border-radius: 16px; padding: 22px; color: var(--on-ink); text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: transform .15s ease, background .15s ease; }
.tile:hover { color: var(--on-ink); background: #223047; transform: translateY(-2px); }
.tile-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.tile-sub { font-size: 14px; color: var(--on-ink-quiet); }
.tile-accent { background: var(--accent); color: var(--ink); grid-column: span 2; }
.tile-accent:hover { background: #FB8B3C; color: var(--ink); }
.tile-accent .tile-name { font-weight: 700; }
.tile-accent .tile-sub { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

.subhero { padding-block: 64px 88px; }

/* Cards */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); }
.card-dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.card-dark p { color: var(--on-ink-muted); }
.card-foot { margin-top: auto; padding-top: 4px; }
.more { font-weight: 600; font-size: 15px; display: inline-block; padding-block: 10px; }
.more::after { content: " →"; }
.more-dark { color: var(--accent); }
.more-dark:hover { color: #FDBA74; }

/* Bands and splits */
.band-dark { background: var(--ink); color: var(--on-ink); }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split-main { flex: 1 1 420px; min-width: 0; }
.split-side { flex: 1 1 420px; min-width: 0; }
.narrow-col { flex: 1 1 320px; }
.wide { flex: 2 1 560px; }

.chips-col { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.chips-label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-quiet); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid #5B6576; border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.note-dark { color: var(--on-ink-muted); font-size: 15px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.steps li { border-top: 3px solid var(--accent-ink); padding-top: 20px; }
.steps p { margin-top: 8px; color: var(--muted); }
.step-n { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.step-t { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-top: 6px; }
.steps-dark { margin-top: 48px; }
.steps-dark li { border-top-color: var(--accent); }
.steps-dark .step-n { color: var(--accent); }
.steps-dark p { color: var(--on-ink-muted); }

.gov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.gov-grid p { margin-top: 8px; color: var(--muted); }

/* Businesses page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 28px 0; }
.jump a { text-decoration: none; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14.5px; font-weight: 500; }
.jump a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.biz { scroll-margin-top: 16px; }
.biz-alt { background: var(--paper); border-block: 1px solid var(--line); }
.biz-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.biz-head { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.biz-head .icon { margin-bottom: 16px; }
.biz-body { flex: 1 1 460px; min-width: 0; padding-top: 8px; }
.biz-products { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--ground); border-radius: 14px; padding: 12px 16px; }
.biz-alt .product { background: var(--ground); }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.product-domain { font-size: 14px; color: var(--muted); }
.feature-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.feature-list li { padding-block: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.feature-list li:first-child { padding-top: 0; }
.feature-list strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.biz-note { margin-top: 24px; font-size: 14.5px; color: var(--muted); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.biz-alt .biz-note { background: var(--ground); }

/* Academy */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.compare-col { background: var(--ink-2); color: var(--on-ink-muted); border-radius: 16px; padding: 24px; }
.compare-head { font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-quiet); }
.compare ul { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.compare-accent { background: var(--accent); color: var(--ink); }
.compare-accent .compare-head { color: var(--ink); font-weight: 700; }

/* About */
.principles { display: flex; flex-direction: column; }
.principles > div { padding-block: 20px; border-bottom: 1px solid var(--line); }
.principles > div:first-child { padding-top: 0; }
.principles p { color: var(--muted); margin-top: 4px; }
.principle-k { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.org { margin-top: 48px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.org-top { align-self: center; width: min(420px, 100%); background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 20px 24px; text-align: center; display: flex; flex-direction: column; gap: 2px; position: relative; }
.org-top .org-sub { color: var(--on-ink-quiet); }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: -32px; width: 2px; height: 32px; background: var(--line); }
.org-grid { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.org-unit { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.org-unit:hover { border-color: var(--accent-ink); color: var(--text); }
.org-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.org-sub { font-size: 14px; color: var(--muted); }

/* Contact */
.contact-list { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.contact-list li { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.contact-list strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--ground); border: 1px solid #C9CED6; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent-ink); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.form-status { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form-status.is-error { color: #B91C1C; }
.form-status.is-ok { color: #166534; }

/* CTA */
.cta { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-text { flex: 999 1 460px; min-width: 0; }
.cta .lead-dark { font-size: 18px; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ground); }
.footer-grid { padding-block: 56px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; font-size: 14.5px; color: var(--muted); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.footer-brand p { margin-top: 8px; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-head { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-base { padding-block: 20px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* OXiAgro, powered by DeepLeaf (attribution required by the DeepLeaf agreement) */
.powered { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 18px 8px 8px; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 14px; max-width: 100%; }
.powered .oa-logo { display: block; height: 46px; width: auto; max-width: 100%; }
.powered-by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-ink-quiet); letter-spacing: 0.02em; border-left: 1px solid var(--ink-line); padding-left: 14px; }
.dl-logo { display: block; height: 30px; width: auto; }
.powered-sm { padding: 4px 14px 4px 4px; gap: 6px 10px; margin-bottom: 6px; }
.powered-sm .oa-logo { height: 32px; }
.powered-sm .powered-by { font-size: 12px; padding-left: 10px; gap: 6px; }
.powered-sm .dl-logo { height: 22px; }
.credit-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--on-ink-quiet); border-radius: 999px; padding: 6px 16px; font-size: 13px; }
.credit-chip .dl-logo { height: 22px; }
.card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ScaleGate story */
.story-head { display: flex; flex-direction: column; gap: 4px; }
.sg-logo { display: block; width: min(320px, 70%); height: auto; margin-bottom: 36px; background: #000; padding: 14px 18px; border-radius: 14px; box-sizing: content-box; }
.story-roles { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.role { background: var(--ink-2); border-radius: 18px; padding: 28px; color: var(--on-ink-muted); }
.role p { margin-top: 10px; }
.role-k { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--on-ink); }
.role-accent { background: transparent; border: 1.5px solid var(--accent); }
.story-sub { margin-top: 64px; color: var(--on-ink); }
.story .steps-dark { margin-top: 28px; }
.story-note { margin-top: 40px; max-width: 78ch; font-size: 14.5px; color: var(--on-ink-quiet); border-top: 1px solid var(--ink-line); padding-top: 20px; }

/* OXiAgro page */
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); color: var(--on-ink); }
.biz-products .btn { margin-top: 4px; }
.powered-hero { margin-bottom: 32px; }
.dl-tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: #1E7742; background: #E8F4EC; border: 1px solid #CBE5D3; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.loop { margin-top: 48px; display: grid; grid-template-columns: 2fr 3fr; gap: 0 24px; }
.loop-owner { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px solid; }
.loop-owner-dl { color: #1E7742; border-color: #2E9E5B; }
.loop-owner-oxi { color: var(--accent-ink); border-color: var(--accent-ink); }
.loop-steps { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.loop-steps li { padding-top: 20px; }
.loop-steps p { margin-top: 8px; color: var(--muted); }
.loop-dl .step-n { color: #1E7742; }
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop-owner-oxi { display: none; }
  .loop-owner-dl { border-bottom: 0; padding-bottom: 0; }
  .loop-steps { grid-template-columns: 1fr; gap: 0; }
  .loop-steps li { border-top: 1px solid var(--line); padding-block: 18px; }
  .loop-steps li:first-child { border-top: 0; }
  .loop-dl { border-left: 3px solid #2E9E5B; padding-left: 16px; }
  .loop-oxi { border-left: 3px solid var(--accent-ink); padding-left: 16px; }
}
.caps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.cap { background: var(--ground); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cap p { color: var(--muted); }
.caps-plain .cap { background: var(--paper); }
.caps-note { margin-top: 28px; max-width: 78ch; font-size: 14.5px; color: var(--muted); }
.audience { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 24px; }
.audience > div { border-top: 1px solid var(--ink-line); padding-top: 18px; }
.audience p { margin-top: 8px; color: var(--on-ink-muted); }
.agro-credit { padding-block: 0 48px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted); }
.agro-mark { display: block; height: 60px; width: auto; margin-bottom: 28px; }
.loop-5 { margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.agro-credit { padding-block: 0 40px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dl-logo-min { height: 16px; width: auto; background: var(--ink); border-radius: 4px; padding: 3px 6px; box-sizing: content-box; }

/* OxiAI / OxiAcademy streams */
.streams { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.stream { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: border-color .15s ease; }
.stream:hover { color: var(--text); border-color: var(--accent-ink); }
.stream-accent { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.stream-accent:hover { color: var(--on-ink); border-color: var(--accent); }
.stream-k { font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.stream-accent .stream-k { color: var(--accent); }
.stream-t { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.25; }
.stream-p { color: var(--muted); }
.stream-accent .stream-p { color: var(--on-ink-muted); }
.stream-intro { padding-bottom: 0; }
.gov-dark p { color: var(--on-ink-muted); }
.card-foot .more + .more { padding-top: 0; }
.deploy-steps { margin-top: 48px; }

/* AIS Framework / Matican strip */
.ais-strip { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
.ais-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ais-logos img { display: block; height: 36px; width: auto; max-width: 100%; }
.ais-strip p { flex: 1 1 320px; min-width: 0; font-size: 14.5px; color: var(--muted); }
.biz-products .ais-strip { margin-top: 12px; flex-basis: 100%; }
.compare-light .compare-col:not(.compare-accent) { background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
.compare-light .compare-col:not(.compare-accent) .compare-head { color: var(--text); }

/* OxiAi page — updated from the oxiai.africa landing page (Oct 2026) */
.accent-text { color: var(--accent); }
.stream-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.stream-list li { position: relative; padding-left: 20px; }
.stream-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.stream-accent .stream-list { color: var(--on-ink-muted); }
.agent-tbl { margin-top: 40px; overflow-x: auto; border-radius: var(--radius); }
.agent-t { width: 100%; border-collapse: collapse; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.agent-t th, .agent-t td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agent-t tr:last-child td { border-bottom: 0; }
.agent-t thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.agent-t thead th.on { color: var(--accent-ink); }
.agent-t td:first-child { color: var(--muted); width: 34%; }
.agent-t td:last-child { color: var(--text); font-weight: 500; }
.scenes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .scenes { grid-template-columns: 1fr; max-width: 560px; } }
.scene { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.scene-badge { background: var(--ink); color: var(--on-ink); padding: 18px 20px; display: grid; gap: 4px; }
.scene-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.scene-badge strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.scene-badge dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.scene-badge dt { color: var(--on-ink-quiet); }
.scene-badge dd { margin: 0; color: var(--on-ink-muted); }
.chat { padding: 18px 16px; display: grid; gap: 8px; align-content: start; background: #EEF0EC; }
.msg { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-c { justify-self: end; background: var(--paper); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.msg-a { justify-self: start; background: var(--ink); color: var(--on-ink); border-bottom-left-radius: 4px; }
.msg-h { justify-self: center; max-width: 100%; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; padding: 4px 0; text-align: center; }
.msg-who { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }
.scene-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.scene-foot b { color: var(--text); font-weight: 600; }
.scene-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.ais-strip-top { margin-top: 0; }
.cta-gap { margin-top: 48px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .agent-t { font-size: 14.5px; } .agent-t th, .agent-t td { padding: 12px 14px; } .agent-t td:first-child { width: 40%; } }

/* Oxi-Pay demo link */
.biz-cta { margin: 24px 0 0; }


/* ScaleGate Africa partner page */
.sgp-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sgp-hero-text { flex: 999 1 520px; min-width: 0; }
.sgp-accent { color: var(--accent); }
.sgp-pair { flex: 1 1 340px; max-width: 420px; min-width: 0; display: grid; gap: 12px; }
.sgp-co { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px; padding: 20px 22px; display: grid; gap: 10px; justify-items: start; }
.sgp-co p { color: var(--on-ink-muted); font-size: 14.5px; }
.sgp-k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sgp-oxi { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--on-ink); }
.sgp-x { justify-self: center; font-size: 12.5px; color: var(--on-ink-quiet); border: 1px solid var(--ink-line); border-radius: 999px; padding: 5px 12px; }
.sgp-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; border-radius: 12px; padding: 10px 14px; }
.sgp-badge img { display: block; height: 28px; width: auto; }
.sgp-badge span { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.sgp-note { margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 18px; padding: 18px 22px; color: #7C2D12; font-size: 15.5px; max-width: 900px; }
.sgp-note svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.sgp-note b { color: #431407; }
.sgp-ic { width: 28px; height: 28px; color: var(--accent-ink); }
.sgp-chips { margin-top: 40px; }
.sgp-chips span { color: var(--on-ink-muted); }
.steps-dark .more { margin-top: 6px; }
.sgp-more { margin-top: 12px; }
.sgp-cta-h { margin-top: 24px; }
.sgp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.dev-credit { color: var(--muted); }

/* Not-yet-active button */
.btn-soon { background: transparent; color: #9AA3B2; border: 1.5px dashed #5B6576; cursor: not-allowed; gap: 10px; }
.btn-soon:hover { background: transparent; color: #9AA3B2; }
.btn-soon em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--accent); border: 1px solid #5B6576; border-radius: 999px; padding: 2px 8px; }

/* ---------- Oxi Market additions ---------- */
.brand-sub { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--on-ink-quiet); margin-left: 4px; text-decoration: none; }
.brand-sub:hover { color: var(--accent); }
.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
.status-live { background: #FFEDD5; color: var(--accent-ink); border-color: #FDBA74; }
.tile .status { background: transparent; color: var(--on-ink-quiet); border-color: var(--ink-line); margin-top: 8px; align-self: flex-start; }
.tile-accent .status { color: var(--ink); border-color: rgba(15,23,36,.35); }
.mkt-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.mkt { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mkt p { color: var(--muted); margin: 0; }
.mkt ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.mkt .more { margin-top: auto; }
.mkt-feature { border: 2px solid var(--accent); }
.ladder { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; counter-reset: lad; }
.ladder li { background: var(--ink-2); border-radius: 16px; padding: 20px; color: var(--on-ink-muted); }
.ladder b { display: block; color: var(--on-ink); font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.ladder li:last-child { background: var(--accent); color: var(--ink); }
.ladder li:last-child b { color: var(--ink); }

/* Contract builder */
.builder { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.b-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 480px) { .b-form { padding: 20px; } }
.b-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.b-group legend { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; padding: 0; }
.b-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.seg label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #C9CED6; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--ground); font-size: 15px; line-height: 1.35; }
.seg input { margin-top: 3px; accent-color: var(--accent-ink); }
.seg label:has(input:checked) { border-color: var(--accent-ink); background: #FFF7ED; box-shadow: inset 0 0 0 1px var(--accent-ink); }
.seg b { display: block; font-weight: 600; }
.seg span small { color: var(--muted); }
.ms-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.ms-inputs input { text-align: right; }
.b-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.b-warn { color: #B91C1C; }
.sum { position: sticky; top: 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) { .sum { position: static; } }
.sum-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sum-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--on-ink-quiet); }
.sum h3 { font-family: var(--font-display); font-size: 22px; margin: 0; }
.sum dl { margin: 0; display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; }
.sum dt { color: var(--on-ink-quiet); }
.sum dd { margin: 0; color: var(--on-ink); overflow-wrap: anywhere; }
.sum-sec { border-top: 1px solid var(--ink-line); padding-top: 16px; }
.sum-k { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.ms-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--ink-2); }
.ms-bar span { display: block; height: 100%; }
.ms-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.ms-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--on-ink-muted); }
.ms-list i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.ms-list b { color: var(--on-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 20px; }
.sum-party { font-size: 14.5px; color: var(--on-ink-muted); margin: 0; }
.sum .btn { align-self: flex-start; }
.sum-demo { font-size: 12.5px; color: var(--on-ink-quiet); margin: 0; }

/* Conditions reference */
.conds { margin-top: 40px; display: grid; gap: 10px; }
.cond { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.cond summary { cursor: pointer; list-style: none; padding: 18px 20px; display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.cond summary::-webkit-details-marker { display: none; }
.cond summary::after { content: "+"; margin-left: auto; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.cond[open] summary::after { content: "\2212"; }
.cond-l { color: var(--accent-ink); min-width: 1.4em; }
.cond ul { margin: 0; padding: 0 20px 18px 54px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 480px) { .cond ul { padding-left: 38px; } }
.field .seg input, .seg input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; border-radius: 4px; background: none; }
.caps-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------- Portal ---------- */
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: start; }
.form h2 { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-ink); flex: none; }
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-quiet { background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--ground); color: var(--text); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { margin: 0 0 14px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 32px; }
@media (max-width: 960px) { .p-grid { grid-template-columns: 1fr; } }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: var(--ground); }
.row:hover { border-color: var(--accent-ink); color: var(--text); }
.row-t { font-weight: 600; font-family: var(--font-display); }
.row-m { font-size: 13.5px; color: var(--muted); grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill-open { background: #FFEDD5; color: var(--accent-ink); border-color: #FDBA74; }
.pill-live { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.pill-closed { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.badge { background: var(--accent-ink); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 8px; }
.empty { color: var(--muted); font-size: 15px; margin: 0; }
.track { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.track li { border-top: 4px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); }
.track li.done { border-color: var(--accent-ink); color: var(--text); }
.track li.now { border-color: var(--accent); color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }
.terms { margin: 0; display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; overflow-wrap: anywhere; }
.ms { display: grid; gap: 10px; }
.ms-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.ms-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.ms-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.ms-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-act input { flex: 1 1 200px; font: inherit; font-size: 14px; border: 1px solid #C9CED6; border-radius: 10px; padding: 8px 10px; background: var(--ground); min-width: 0; }
.st-pending { } .st-submitted { background: #FEF9C3; color: #854D0E; border-color: #FDE047; } .st-verified { background: #DCFCE7; color: #166534; border-color: #86EFAC; } .st-released { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.parties { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.parties li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.parties small { color: var(--muted); }
.inline-form { display: grid; gap: 10px; margin-top: 14px; }
.inline-form .b-row { gap: 10px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 85%; background: var(--ground); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14.5px; }
.msg-mine { align-self: flex-end; background: #FFF7ED; border-color: #FDBA74; border-radius: 14px 14px 4px 14px; }
.msg-who { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form textarea { flex: 1; font: inherit; border: 1px solid #C9CED6; border-radius: 12px; padding: 10px 12px; min-height: 48px; resize: vertical; background: var(--ground); min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.timeline li { border-left: 3px solid var(--line); padding-left: 12px; }
.timeline time { display: block; font-size: 12.5px; color: var(--muted); }
.note-box { font-size: 13.5px; color: var(--muted); background: var(--ground); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }
.p-status { font-size: 15px; min-height: 1.4em; margin: 0; }
.p-status.is-error { color: #B91C1C; } .p-status.is-ok { color: #166534; }
[hidden] { display: none !important; }

.mkt .h3, .mkt h3 { color: var(--text); }

.steps li li { border-top: 0; padding-top: 0; }

.st-skipped { opacity: .6; }
.board th, .board td { vertical-align: top; }
.board td:first-child, .board th:first-child { width: 1%; white-space: nowrap; }
.board td:nth-child(5) { min-width: 150px; }
.board .btn { white-space: nowrap; }

/* v2: quiet group mention under the brand (no link), and OXiAgro tracking panel */
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; }
.brand-note { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.02em; color: var(--on-ink-quiet); margin-top: 3px; }
.agro-panel { border: 2px solid #2E9E5B; }
.agro-panel .h4 { display: flex; align-items: center; gap: 8px; }
.agro-chip { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #1E7742; background: #E8F4EC; border: 1px solid #CBE5D3; border-radius: 999px; padding: 2px 9px; }
.agro-panel ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.agro-panel .btn { margin-top: 14px; }
.agro-link { font-weight: 600; }
