/* AfriCapital Connect — public site
   One stylesheet, no framework, no webfonts, no external origins.
   Weighs a few KB so the page holds up on a mobile connection (NFR-3.2/3.3)
   and satisfies the first-party-only CSP. */

:root {
  --ink:      #10231f;
  --ink-soft: #4a5c56;
  --ground:   #e9ede8;
  --paper:    #fdfdfb;
  --brass:    #9a7b2f;
  --rule:     #c8d1c9;
  --warn-bg:  #fdf6e6;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --gutter: 1.5rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { padding: 4rem 0; }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink); color: var(--ground); }
.band--tight { padding: 2.5rem 0; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.625rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.1875rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1rem; }

.lead { font-size: 1.1875rem; color: var(--ink-soft); }
.band--ink .lead { color: #b9c7c1; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
.band--ink a { color: var(--ground); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- header / footer ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead__inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: baseline; justify-content: space-between;
  padding-top: 1.125rem; padding-bottom: 1.125rem;
}
.brand {
  font-family: var(--serif); font-size: 1.3125rem;
  text-decoration: none; color: var(--ink);
}
.brand span { color: var(--brass); }
.nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.colophon {
  background: var(--ink); color: #b9c7c1;
  padding: 3rem 0 2rem; font-size: .9375rem;
}
.colophon h3 { color: var(--ground); font-size: .9375rem; margin-bottom: .625rem; }
.colophon a { color: #b9c7c1; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .375rem; }
.colophon__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: 2.5rem;
}
.colophon__fine {
  border-top: 1px solid #23403a; padding-top: 1.5rem;
  font-size: .875rem; max-width: var(--measure);
}

/* ---------- hero ---------- */

.hero { padding: 5rem 0 4rem; background: var(--paper); }
.hero p { max-width: 34rem; }

/* ---------- the boundary: the one bold moment ---------- */

.boundary__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .boundary__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .boundary__grid > :last-child {
    border-left: 1px solid var(--brass);
    padding-left: 3.5rem;
  }
}
.boundary__list { list-style: none; margin: 0; padding: 0; }
.boundary__list li {
  font-family: var(--serif); font-size: 1.25rem;
  padding: .625rem 0; border-bottom: 1px solid #23403a;
}

/* ---------- definition rows (no identical cards) ---------- */

.rows { margin: 0; }
.rows > div {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows h3 { margin-bottom: .375rem; }
.rows p { margin: 0; color: var(--ink-soft); }

/* ---------- sequence (genuinely ordered) ---------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3rem;
  max-width: var(--measure);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--brass); line-height: 1.1;
}
.steps strong { display: block; }
.steps span { color: var(--ink-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: .8125rem 1.5rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none; border: 1px solid var(--ink);
  font-size: 1rem; font-family: var(--sans); cursor: pointer;
}
.btn:hover { background: #1b352f; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- forms ---------- */

.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .9375rem; margin-bottom: .375rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .6875rem .75rem;
  border: 1px solid var(--rule); background: var(--paper);
  font: inherit; color: var(--ink); border-radius: 0;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field__error { display: block; margin-top: .375rem; font-size: .875rem; color: #8c2f21; }
.field--hp { position: absolute; left: -9999px; }

.notice {
  background: var(--warn-bg); border-left: 3px solid var(--brass);
  padding: 1rem 1.25rem; margin-bottom: 2rem; max-width: var(--measure);
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- prose (legal pages) ---------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; font-size: 1.375rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose__meta { color: var(--ink-soft); font-size: .9375rem; }

/* ---------- error pages ---------- */

.oops { min-height: 70vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ACC-AUTH-START */
.masthead__inner { display:flex; align-items:center; gap:2rem; }
.masthead__inner .nav { margin-left:auto; }
.nav-auth { display:flex; align-items:center; gap:1rem; padding-left:1.5rem; border-left:1px solid var(--rule); font-size:.95rem; }
.nav-auth a { text-decoration:none; }
.nav-auth__name { color:var(--ink-soft); }
.nav-auth form { margin:0; }
.linkbtn { background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; }
.linkbtn:hover { text-decoration:underline; }
.btn--sm { padding:.5rem 1rem; font-size:.9rem; }
@media (max-width:760px){ .masthead__inner{flex-wrap:wrap;gap:1rem} .masthead__inner .nav{margin-left:0;order:3;width:100%} .nav-auth{margin-left:auto;border-left:0;padding-left:0} }
.flash { background:#e8f2ec; border-bottom:1px solid var(--rule); color:#2e6b4f; font-size:.95rem; }
.flash .wrap { padding-top:.85rem; padding-bottom:.85rem; }
/* ACC-AUTH-END */


/* ACC-FOOTER-START */
.ft {
  --ft-ink: #10231f;
  --ft-ink-2: #0b1a17;
  --ft-text: #b9c6bf;
  --ft-soft: #8ea096;
  --ft-line: rgba(255,255,255,.1);
  --ft-brass: #c3a35a;
  --ft-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background: var(--ft-ink);
  color: var(--ft-text);
  font-size: .95rem;
  line-height: 1.6;
}
.ft a { color: var(--ft-text); text-decoration: none; transition: color .2s ease; }
.ft a:hover { color: #fff; }

.ft__wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

/* top call-out */
.ft__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2.75rem 0; border-bottom: 1px solid var(--ft-line);
}
.ft__cta h2 {
  margin: 0; font-family: var(--ft-serif); font-weight: 400; color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; max-width: 30ch;
}
.ft__cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.ft__btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem;
  border-radius: 4px; font-weight: 600; font-size: .92rem;
}
.ft__btn--brass { background: #9a7b2f; color: #fff !important; }
.ft__btn--brass:hover { background: #86692a; }
.ft__btn--line { border: 1px solid rgba(255,255,255,.25); color: #fff !important; }
.ft__btn--line:hover { border-color: #fff; }

/* main grid */
.ft__main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  padding: 3.5rem 0 3rem;
}
.ft__brand {
  display: inline-block; font-family: var(--ft-serif); font-size: 1.4rem; color: #fff !important;
  letter-spacing: .005em;
}
.ft__brand span { color: var(--ft-brass); }
.ft__about { margin: 1rem 0 0; max-width: 32ch; color: var(--ft-soft); }
.ft__contact { margin-top: 1.5rem; display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.ft__contact svg { color: var(--ft-brass); flex: none; }

.ft__col h3 {
  margin: 0 0 1.1rem; font-family: inherit; font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ft-brass);
}
.ft__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }

/* regulatory statement */
.ft__notice {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.5rem 1.6rem; margin-bottom: 2.5rem;
  background: rgba(255,255,255,.035); border: 1px solid var(--ft-line); border-radius: 4px;
  font-size: .85rem; line-height: 1.7; color: var(--ft-soft);
}
.ft__notice svg { color: var(--ft-brass); margin-top: .15rem; }
.ft__notice strong { color: var(--ft-text); font-weight: 600; }

/* bottom bar */
.ft__bar { background: var(--ft-ink-2); }
.ft__bar .ft__wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .82rem; color: var(--ft-soft);
}
.ft__bar nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ft__bar a { color: var(--ft-soft); }
.ft__bar a:hover { color: #fff; }

@media (max-width: 900px) {
  .ft__main { grid-template-columns: 1fr 1fr; }
  .ft__main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ft__main { grid-template-columns: 1fr; }
  .ft__cta { flex-direction: column; align-items: flex-start; }
  .ft__bar .ft__wrap { flex-direction: column; align-items: flex-start; }
}
/* ACC-FOOTER-END */

/* ACC-FOOTER-RESET — isolate the footer from global element rules */
footer.ft { margin: 0; padding: 0; border: 0; display: block; }
.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.ft h2, .ft h3, .ft p, .ft ul, .ft li, .ft nav, .ft dl, .ft dd, .ft form {
  margin: 0; padding: 0; border: 0; background: none;
  max-width: none; text-align: left; letter-spacing: normal;
}
.ft ul { list-style: none; }
.ft li { display: block; }
.ft li::before, .ft li::marker { content: none; }
.ft nav a[aria-current] { font-weight: inherit; }

.ft .ft__cta h2 {
  font-family: var(--ft-serif); font-weight: 400; color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; max-width: 30ch;
}
.ft .ft__col h3 {
  margin: 0 0 1.1rem; font-family: var(--sans, inherit); font-size: .72rem; font-weight: 600;
  line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--ft-brass);
}
.ft .ft__col ul { display: grid; gap: .7rem; }
.ft .ft__col li, .ft .ft__col a, .ft .ft__col span, .ft .ft__col button { font-size: .95rem; line-height: 1.5; }
.ft .ft__about { margin-top: 1rem; max-width: 32ch; color: var(--ft-soft); }
.ft .ft__contact { margin-top: 1.5rem; display: flex; align-items: center; gap: .55rem; }
.ft .ft__notice p { margin: 0; font-size: .85rem; line-height: 1.7; color: var(--ft-soft); }
.ft .ft__bar p { margin: 0; font-size: .82rem; color: var(--ft-soft); }
.ft .ft__bar nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ft .ft__bar nav a { font-size: .82rem; color: var(--ft-soft); }
.ft .ft__btn { text-decoration: none; line-height: 1.2; }
.ft .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.ft .linkbtn:hover { color: #fff; }
/* ACC-FOOTER-RESET-END */

/* ACC-FTCTA — single closing call-out */
.ft { position: relative; overflow: hidden; }
.ft::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -240px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(195,163,90,.16), transparent 65%);
}
.ft > * { position: relative; }

.ft .ft__cta {
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 2.5rem;
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--ft-line);
}
.ft .ft__cta h2 {
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; max-width: 20ch; color: #fff;
}
.ft .ft__cta-text p {
  margin-top: 1rem; max-width: 34rem; font-size: 1.05rem; line-height: 1.7; color: #a9b8b0;
}
.ft .ft__cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.ft .ft__btn { padding: .95rem 1.5rem; font-size: .95rem; }
.ft .ft__btn svg { transition: transform .2s ease; }
.ft .ft__btn:hover svg { transform: translateX(3px); }

@media (max-width: 860px) {
  .ft .ft__cta { grid-template-columns: 1fr; gap: 1.75rem; }
  .ft .ft__cta-btns { justify-content: flex-start; }
}
/* ACC-FTCTA-END */

/* ACC-ANNOUNCE */
.announce { font-size: .92rem; line-height: 1.5; border-bottom: 1px solid var(--rule); }
.announce .wrap { padding-top: .75rem; padding-bottom: .75rem; }
.announce a { font-weight: 600; margin-left: .35rem; }
.announce--info { background: #eef2f6; color: #2e4a63; }
.announce--success { background: #e8f2ec; color: #2e6b4f; }
.announce--warning { background: #fdf6e6; color: #7a5f1f; }
