/* Onikan Global Solutions LLC house stylesheet.
   Palette and type follow BRAND.md: Onikan Navy #14213C, Tablet Gold #C19A3D,
   Paper Cream #FAF5EA. Noto Serif for display, Noto Sans for functional text. */

:root {
  --navy: #14213C;
  --navy-deep: #0C1628;
  --gold: #C19A3D;
  --gold-dark: #9A7B2D;
  --cream: #FAF5EA;
  --paper: #FFFDF6;
  --ink: #232B3D;
  --muted: #5B6274;
  --line: #E3D9C3;
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .serif {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header (mirrors the letterhead: cream, lockup left, gold rule) ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); border-radius: 8px;
  color: var(--navy); font: inherit; font-weight: 700; padding: 6px 12px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 10px 20px 16px; border-bottom: 3px solid var(--gold); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 8px; }
.hero .lockup { width: min(300px, 68vw); margin: 0 auto 26px; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { max-width: 680px; margin: 0 auto 26px; font-size: 1.13rem; color: var(--ink); }
.gold-rule { width: 92px; height: 3px; background: var(--gold); margin: 26px auto; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--navy); color: var(--cream);
  padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 700;
  border: 2px solid var(--navy);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections and cards ---------- */
.section { padding: 44px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 3px rgba(20, 33, 60, 0.06);
}
.card h3 { margin-top: 0; }
.card .kicker {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 8px;
}

/* ---------- Navy band (the Anzu presides) ---------- */
.band-navy { background: var(--navy); color: var(--cream); }
.band-navy h2, .band-navy h3 { color: var(--cream); }
.band-navy a { color: var(--gold); }
.band-navy .seal { width: 132px; margin: 0 auto 18px; }
.band-navy .center { text-align: center; max-width: 680px; margin: 0 auto; }

/* ---------- Books ---------- */
.book { display: flex; flex-direction: column; }
.book img { border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 33, 60, 0.18); margin-bottom: 16px; }
.book .subtitle { font-family: "Noto Serif", Georgia, serif; font-style: italic; color: var(--muted); margin-bottom: 10px; }
.book .formats { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.book .links { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip img { border-radius: 6px; box-shadow: 0 4px 14px rgba(20, 33, 60, 0.16); }
@media (max-width: 620px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.disclosure { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 30px; }

/* ---------- Apps ---------- */
.chip {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--navy); border: 1.5px solid var(--gold);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 12px; background: #FBF3DC;
}
.app-card img { border-radius: 6px; margin-bottom: 14px; border: 1px solid var(--line); }
.app-card .preview-note { font-size: 0.8rem; color: var(--muted); margin-top: -6px; margin-bottom: 10px; }
.app-card.no-art { border: 1.5px dashed var(--gold); background: #FCF8EC; }

/* ---------- About / Contact ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid figure { margin: 0; }
.about-grid figure img { border-radius: var(--radius); box-shadow: 0 6px 18px rgba(20, 33, 60, 0.16); }
.about-grid figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.facts { list-style: none; padding: 0; margin: 18px 0; }
.facts li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts li strong { color: var(--navy); }
.contact-card .addr { font-size: 1.15rem; font-family: "Noto Serif", Georgia, serif; }
.big-mail { font-size: 1.06rem; font-weight: 700; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #D8DCE6; margin-top: 30px; }
.footer-in { padding: 36px 0 28px; text-align: center; }
.site-footer img { width: 300px; max-width: 78vw; margin: 0 auto 16px; }
.site-footer img.seal-foot { width: 120px; max-width: 40vw; margin: 2px auto 16px; }
.site-footer nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.site-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fine { font-size: 0.86rem; color: #9AA3B8; margin: 4px 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- v1.1 additions ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--navy); color: var(--cream); padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-weight: 700; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--cream); }

.book .inside, .spotlight .inside { color: var(--muted); font-size: 0.97rem; }
.book .inside strong, .spotlight .inside strong { color: var(--navy); }

.spotlight { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: center; }
.spotlight img { border-radius: 6px; box-shadow: 0 8px 22px rgba(20, 33, 60, 0.2); }
.spotlight .kicker {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 8px;
}
.spotlight .subtitle { font-family: "Noto Serif", Georgia, serif; font-style: italic; color: var(--muted); margin-bottom: 10px; }
.spotlight .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 620px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight img { width: 200px; }
}

.group-h { margin-top: 38px; margin-bottom: 4px; }
.group-sub { color: var(--muted); margin-bottom: 24px; }
.section > .group-h:first-of-type { margin-top: 0; }

.site-footer .ch-label {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9AA3B8; font-weight: 700; margin: 16px 0 0;
}

.center-404 { text-align: center; max-width: 640px; }
.center-404 .kicker {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 8px;
}

/* ---------- v1.2 additions (Nigeria fintech interface study) ---------- */

/* Reveal on scroll. The hidden state applies only when JS is active
   (html.js), so no-JS, print, and static renders show everything. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card hover lift, pointer devices only (fintech tile polish). */
@media (hover: hover) {
  .card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 33, 60, 0.13); }
  .strip a img { transition: transform 0.18s ease; }
  .strip a:hover img { transform: translateY(-3px); }
}

/* One primary action in the hero; the second path is a quiet link. */
.hero-alt { font-weight: 700; align-self: center; padding: 12px 4px; }

/* Release pipeline: numbered ship steps band (Apps page). */
.pipe-band .section { padding: 38px 0; }
.pipe-band h2 { margin-bottom: 6px; }
.band-sub { color: #B9C0D0; max-width: 720px; margin-bottom: 26px; }
.ship-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ship-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ship-steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Noto Serif", Georgia, serif;
}
.ship-steps h3 { color: var(--cream); font-size: 1.02rem; margin: 4px 0 4px; }
.ship-steps p { color: #B9C0D0; font-size: 0.9rem; margin: 0; }
@media (max-width: 900px) { .ship-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ship-steps { grid-template-columns: 1fr; } }

/* Per-app progress track. */
.pipe { list-style: none; display: flex; margin: 2px 0 12px; padding: 0; }
.pipe li {
  flex: 1; position: relative; text-align: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); padding-top: 18px;
}
.pipe li::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px;
  background: var(--line);
}
.pipe li:first-child::before { left: 50%; }
.pipe li:last-child::before { right: 50%; }
.pipe .dot {
  position: absolute; top: 0; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--line); z-index: 1;
}
.pipe li.done { color: var(--gold-dark); }
.pipe li.done .dot { background: var(--gold); border-color: var(--gold); }
.pipe li.done::before { background: var(--gold); }
.pipe li.current { color: var(--navy); }
.pipe li.current .dot { background: var(--navy); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193, 154, 61, 0.3); }
.now { font-size: 0.93rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.now strong { color: var(--navy); }

/* Books filter bar. Hidden without JS (buttons would be inert). */
html:not(.js) .filter-bar { display: none; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.fbtn {
  font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
  background: var(--paper); color: var(--navy);
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 6px 15px;
}
.fbtn:hover { border-color: var(--navy); }
.fbtn[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.fcount { color: var(--muted); font-size: 0.9rem; margin-left: auto; }
.book[hidden] { display: none; }

/* Latest from the channels (Home). */
.latest { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; text-align: left; }
.latest li {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  padding: 13px 2px; border-bottom: 1px solid var(--line);
}
.latest li:first-child { border-top: 1px solid var(--line); }
.latest .chip { margin: 0; flex: none; }
.latest-t { font-family: "Noto Serif", Georgia, serif; font-weight: 600; color: var(--navy); flex: 1 1 260px; }
.latest a { font-weight: 700; white-space: nowrap; }
.latest-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* Sticky mobile action bar (contact path stays one tap away). */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--navy); border-top: 3px solid var(--gold);
  }
  .mobile-bar a {
    flex: 1; text-align: center; color: var(--cream); text-decoration: none;
    font-weight: 700; padding: 13px 8px; font-size: 0.95rem;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(250, 245, 234, 0.25); color: var(--gold); }
  body.has-bar { padding-bottom: 52px; }
}

/* ---------- Print (facts and contact pages read well on paper) ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer nav, .site-footer .ch-label, .btn, .nav-toggle,
  .skip-link, .chip, .mobile-bar, .filter-bar, .pipe { display: none !important; }
  .site-header { position: static; }
  .site-footer { background: #fff; color: #000; margin-top: 12pt; }
  .site-footer .fine { color: #333; }
  .site-footer img { filter: invert(1); }
  .band-navy { background: #fff; color: #000; }
  .band-navy h2, .band-navy h3 { color: #000; }
  .card { box-shadow: none; break-inside: avoid; }
  a { color: #000; }
}
