/* Kituwa Investors — theme built on the `headcount` poster layout.
   Structure, counted-figure art, heavy rules and the ruled table come from
   design.kituwa layout `headcount`. Colour, type and spacing are rethemed to
   the Kituwa Investors palette: obsidian canvas, emerald panels, gold CTAs. */

@import url('/assets/fonts/fonts.css');

:root {
  --max: 1180px;
  --radius: 0px;
  --radius-sm: 2px;

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --bg: #0A1210;
  --surface: #0F2E24;
  --surface-2: #0C231C;
  --ink: #F7F4EC;
  --muted: #9BB3A8;
  --soft: #6F8A7E;
  --line: #174737;
  --rule: #1E5341;
  --accent: #D9A441;
  --accent-2: #F0CE80;
  --accent-ink: #0A1210;
  --success: #52C48A;
  --danger: #E06C75;
  --gold-soft: rgba(217, 164, 65, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.section { padding: 72px 0; position: relative; }
.section-sm { padding: 48px 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: .9;
  letter-spacing: -.055em;
}
.display .coral { color: var(--accent); }
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
}
.h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; }
.lede { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---- buttons : uiverse-astronaut / short-lion-13, retheme ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn-primary, .btn-gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-gold:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-danger { background: rgba(224, 108, 117, .12); border-color: rgba(224, 108, 117, .45); color: #F6A6AC; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-wide { width: 100%; }

/* uiverse-astronaut short-lion-13 element — gold CTA with the arrow nudge */
.uv-btn .cir-btn {
  --ink: var(--accent);
  --cloud: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 16px 30px -20px rgba(217, 164, 65, .55);
  transition: transform 140ms cubic-bezier(.22, 1, .36, 1), background-color 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms cubic-bezier(.22, 1, .36, 1);
}
.uv-btn .cir-btn__arrow { width: 16px; height: 16px; transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.uv-btn .cir-btn:hover { background: var(--accent-2); box-shadow: 0 1px 1px rgba(0,0,0,.4), 0 22px 38px -18px rgba(240, 206, 128, .5); }
.uv-btn .cir-btn:hover .cir-btn__arrow { transform: translate(2px, -2px); }
.uv-btn .cir-btn:active { transform: translateY(1px); }
.uv-btn .cir-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(240, 206, 128, .45); }

/* ---- navigation ---- */
.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 0 18px;
  border-bottom: 2px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.brand-logo { height: 34px; width: auto; }
.brand small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links a { font-size: 13.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- hero ---- */
.hero { position: relative; overflow: clip; }
.hero .wrap { padding-top: 46px; }
.hc-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: 44px; align-items: center; }
.hc-hero .display { margin-top: 14px; }
.hc-hero .lede { margin-top: 20px; color: #C8DDD3; }
.hc-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hc-issue {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: right;
  line-height: 1.9;
  color: var(--muted);
}

/* counted-figure art panel */
.hc-art {
  position: relative;
  border: 2px solid var(--rule);
  background: var(--surface);
  min-height: 400px;
  overflow: hidden;
  contain: paint;
}
.hc-art .sun { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); right: -50px; top: -70px; opacity: .95; }
.hc-art .arc { position: absolute; width: 330px; height: 330px; border-radius: 50%; border: 26px solid var(--rule); left: -120px; bottom: -150px; }
.hc-art .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--accent); }
.hc-art .figures { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 0 14px 14px; flex-wrap: nowrap; }
.hc-art .figures svg { width: 42px; height: 84px; flex: 0 0 auto; }
.hc-art .label { position: absolute; left: 14px; top: 14px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hc-art .bubble {
  position: absolute; left: 14px; bottom: 28px;
  background: var(--bg); border: 2px solid var(--accent);
  padding: 8px 12px;
  font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
}
.hc-art .bubble b { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: -.045em; color: var(--accent-2); }

/* counted-numbers band */
.hc-numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 2px solid var(--rule); margin-top: 40px; }
.hc-num { padding: 20px 16px 16px; border-right: 2px solid var(--rule); min-width: 0; }
.hc-num:last-child { border-right: 0; }
.hc-num b { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.055em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hc-num span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hc-num .glyphs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 9px; min-height: 14px; }
.hc-num .glyphs svg { width: 8px; height: 13px; }

/* milestone */
.milestone { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: end; margin-top: 34px; }
.milestone .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.milestone .value { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); }
.progress-track { grid-column: 1 / -1; height: 12px; background: var(--surface-2); border: 1px solid var(--rule); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .9s cubic-bezier(.22,1,.36,1); }

/* ---- section furniture ---- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head .lede { max-width: 46ch; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; align-items: start; }

.card { background: var(--surface); border: 1px solid var(--rule); padding: 24px; }
.card h2, .card h3 { margin: 0 0 6px; }
.card p.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

.chart-wrap { position: relative; height: 264px; width: 100%; }
.chart-legend-line { display: flex; gap: 14px; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.chart-legend-line i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; }

/* ruled ledger table */
.table-scroll, .table-wrap { width: 100%; overflow-x: auto; }
.hc-table { width: 100%; min-width: 620px; border-collapse: collapse; border: 2px solid var(--rule); background: var(--surface); }
.hc-table td { white-space: normal; }
@media (min-width: 981px) { .hc-table { min-width: 0; } }
.hc-table th {
  text-align: left; font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase;
  letter-spacing: .1em; padding: 10px 12px; border-bottom: 2px solid var(--rule);
  color: var(--muted); font-weight: 500; white-space: nowrap;
}
.hc-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.hc-table td:first-child { color: var(--ink); font-weight: 650; }
.hc-table td.amount { color: var(--accent-2); font-weight: 700; font-family: var(--font-mono); white-space: nowrap; }
.hc-table td.date { font-family: var(--font-mono); white-space: nowrap; }
.hc-table tr:last-child td { border-bottom: 0; }
.hc-table tbody tr:hover td { background: rgba(217, 164, 65, .06); }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}
.pill-private { background: rgba(155, 179, 168, .14); color: #B8CEC4; }
.pill-public { background: rgba(82, 196, 138, .16); color: #7EE2AE; }
.pill-pending { background: var(--gold-soft); color: var(--accent-2); }

.hc-callout { background: var(--rule); color: var(--ink); padding: 28px; border: 2px solid var(--accent); }
.hc-callout h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; letter-spacing: -.04em; }
.hc-callout p { margin: 0; color: #CFE3DA; font-size: 13px; }

/* how it works */
.hc-flow { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--rule); }
.hc-step { padding: 22px; border-right: 2px solid var(--rule); background: var(--surface); }
.hc-step:last-child { border-right: 0; }
.hc-step .n { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--accent); }
.hc-step h3 { margin: 14px 0 0; font-size: 15px; }
.hc-step p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  padding: 44px;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
}
.cta-band .h2 { max-width: 16ch; }
.cta-band .lede { margin-top: 12px; }
.cta-band .hc-actions { margin-top: 0; }

/* footer */
.site-footer { border-top: 2px solid var(--rule); padding: 44px 0 30px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .62fr); gap: 30px; }
.footer-brand p { max-width: 34ch; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.footer-col h4 { margin: 0 0 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; margin: 7px 0; font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 11.5px; color: var(--soft); font-family: var(--font-mono); flex-wrap: wrap; }

/* ---- forms / account pages ---- */
.page-head { padding: 42px 0 8px; }
.form-card { max-width: 560px; margin: 40px auto 60px; background: var(--surface); border: 2px solid var(--rule); padding: 28px; }
.form-card .display { font-size: clamp(32px, 4vw, 46px); }
.form-card .lede { margin-top: 12px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 0;
  border: 1px solid var(--rule); background: var(--bg); color: var(--ink);
  font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); width: 20px; height: 20px; }
textarea { resize: vertical; min-height: 96px; }

.toggle-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; background: var(--bg); border: 1px solid var(--rule); }
.toggle-box strong { display: block; font-size: 14px; }
.toggle-box span { font-size: 12px; color: var(--muted); }

.alert { display: none; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; border: 1px solid var(--rule); }
.alert.show { display: block; }
.alert-error { background: rgba(224, 108, 117, .14); border-color: rgba(224, 108, 117, .5); color: #F9B8BD; }
.alert-success { background: rgba(82, 196, 138, .14); border-color: rgba(82, 196, 138, .45); color: #9CF0C2; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); margin: 20px 0; }
.stat-item { padding: 14px 12px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.04em; color: var(--accent-2); }
.stat-item span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.invite-box { display: none; margin-top: 18px; padding: 14px; background: var(--bg); border: 1px solid var(--accent); }
.invite-box strong { color: var(--accent-2); display: block; margin-bottom: 6px; font-size: 13px; }
.invite-box textarea { font-family: var(--font-mono); font-size: 11px; }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 34px 0 22px; }
.total-figure { font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); font-weight: 800; letter-spacing: -.05em; color: var(--accent-2); line-height: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* network bar sizing (the component owns its own look) */
kituwa-network { display: block; min-height: 40px; background: #06100b; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hc-hero, .split { grid-template-columns: 1fr; gap: 34px; }
  .hc-numbers { grid-template-columns: 1fr 1fr; }
  .hc-num:nth-child(2) { border-right: 0; }
  .hc-num:nth-child(3) { border-top: 2px solid var(--rule); }
  .hc-num:nth-child(4) { border-top: 2px solid var(--rule); }
  .hc-flow { grid-template-columns: 1fr; }
  .hc-step { border-right: 0; border-bottom: 2px solid var(--rule); }
  .hc-step:last-child { border-bottom: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hc-issue { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .display { font-size: clamp(38px, 11.5vw, 54px); }
  .h2 { font-size: 30px; }
  .hc-art { min-height: 300px; }
  .hc-numbers { grid-template-columns: 1fr; }
  .hc-num { border-right: 0; border-bottom: 2px solid var(--rule); }
  .hc-num:last-child { border-bottom: 0; }
  .hc-num:nth-child(3) { border-top: 0; }
  .hc-num:nth-child(4) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
  .form-card { padding: 20px; }
  .site-nav { gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-logo { height: 28px; }
  .brand small { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 7px 11px; font-size: 11.5px; }
  .page-head { padding-top: 24px; }
  .hc-table td, .hc-table th { padding: 10px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
