/* ═══════════════════════════════════════════
   KODAMA MIRAI INC. — Homepage ("Audit Ledger")
   Light, evidence-first system from redesign
   board 1b: paper ground, ink text, forest
   accent, white ledger cards, hairline rules.
   Tokens live in tokens.css.
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Launch banner (fixed, above the nav) ── */
.top-banner {
  position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.top-banner a { color: var(--paper-text); text-decoration: none; }
.top-banner a:hover { text-decoration: underline; }

/* ── Nav ── */
nav.site {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 40px;
  background: var(--paper);
  border-bottom: 1.5px solid var(--rule-hard);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-logo img { height: 26px; width: auto; }
.logo-name { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: .16em; }
.logo-sub { font-family: var(--font-display); font-style: italic; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  color: var(--nav); text-decoration: none; padding-bottom: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active-page { color: var(--ink); border-bottom: 1.5px solid var(--accent); }
.nav-links a.nav-cta {
  background: var(--ink); color: var(--paper-text); font-weight: 600;
  padding: 9px 18px; border-radius: 3px; border-bottom: 0;
}
.nav-links a.nav-cta:hover { background: var(--accent); color: var(--paper-text); }
.nav-links a.nav-cta.active-page { border-bottom: 0; background: var(--accent); }

/* ── Page scaffolding ── */
.page { display: none; padding-top: 100px; min-height: 100vh; }
.page.active { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.sect { padding-top: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.sect:last-of-type { border-bottom: 0; }
.kicker {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.display {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07;
  text-wrap: pretty; max-width: 22ch;
}
.display em { color: var(--accent); }
.display-sm { font-size: clamp(28px, 3.6vw, 44px); max-width: 24ch; }
.lede { font-size: 16px; line-height: 1.6; color: var(--body); max-width: 52ch; }

/* ── Buttons ── */
.btn-solid, .btn-ink, .btn-text, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  text-decoration: none; border-radius: 3px; cursor: pointer;
}
.btn-solid { background: var(--accent); color: var(--paper-text); padding: 13px 24px; }
.btn-solid:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper-text); padding: 13px 24px; }
.btn-ink:hover { background: var(--accent); }
.btn-text { color: var(--ink); font-weight: 500; padding: 13px 6px; }
.btn-text:hover { color: var(--accent); }
.btn-outline { color: var(--ink); font-weight: 500; border: 1px solid rgba(22,29,24,.3); padding: 12px 24px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ── */
.hero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; align-items: end; }
.hero-cta { display: flex; gap: 12px; justify-content: end; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 36px; }
.stats .snum { font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 1.1; }
.stats .snum span { color: var(--accent); }
.stats .slbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ── Ledger table ── */
.ledger-label {
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.ledger-scroll { overflow-x: auto; }
.ledger { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; min-width: 640px; }
.ledger-head, .ledger-row { display: grid; align-items: center; padding: 12px 18px; }
.ledger-head {
  font-family: var(--font-mono); font-weight: 600; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-mid);
}
.ledger-row { border-bottom: 1px solid var(--rule-faint); font-size: 12.5px; }
.ledger-row:last-child { border-bottom: 0; }
.lg-id { font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--accent); }
.lg-mono { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lg-status { font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; letter-spacing: .04em; color: var(--accent); }
.lg-status.is-gap { color: var(--gap); }
.lg-link { font-weight: 600; font-size: 12px; color: var(--accent); text-decoration: none; }
.lg-link:hover { text-decoration: underline; }
.ledger-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* ── Card grid (marketplace pattern, board 3a) ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.kcard {
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.kcard:hover { border-color: var(--accent); }
.kcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kcard-chip {
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  color: var(--accent); background: var(--accent-tint); padding: 6px 8px; border-radius: 3px;
}
.kcard-cat { font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.kcard-title { font-weight: 600; font-size: 15px; }
.kcard-text { font-size: 12.5px; line-height: 1.55; color: var(--body); flex: 1; }
.kcard-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-top: 1px solid var(--rule-soft); padding-top: 12px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.status-chip {
  font-family: var(--font-mono); font-weight: 600; font-size: 9.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(44,92,72,.35); padding: 4px 8px; border-radius: 3px;
}
.status-chip.is-build { color: var(--gap); border-color: rgba(161,91,31,.4); }
.status-chip.is-live { background: var(--accent); color: var(--paper-text); border-color: var(--accent); }

/* ── Pills ── */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--nav);
  border: 1px solid rgba(22,29,24,.25); padding: 8px 16px; border-radius: 100px;
}
.pill.is-on { background: var(--ink); color: var(--paper-text); border-color: var(--ink); }

/* ── Pillar band (board 1b) ── */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--card); margin-top: 28px; }
.pillars.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 26px 24px; border-right: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 8px; }
.pillar:last-child { border-right: 0; }
.pillar-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.pillar-title { font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.pillar-text { font-size: 12.5px; line-height: 1.55; color: var(--body); }

/* ── Step strip (board 3b lifecycle) ── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.step { border-top: 2px solid var(--accent); padding: 16px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.step-title { font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.step-text { font-size: 12px; line-height: 1.5; color: var(--body); }
.step .step-date { font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; letter-spacing: .06em; color: var(--accent); margin-top: auto; }
.step .step-date.is-seq { color: var(--faint); }

/* ── Two-column split ── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.split-stack { display: flex; flex-direction: column; gap: 20px; }

/* ── White panel / list card ── */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }
.panel-pad { padding: 18px 20px; }
.panel-label {
  font-family: var(--font-mono); font-weight: 600; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.list-head { padding: 16px 20px; border-bottom: 1px solid var(--rule-mid); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--rule-faint); }
.list-row:last-child { border-bottom: 0; }
.list-num { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); min-width: 22px; }
.list-name { font-size: 13.5px; flex: 1; }
.list-meta { font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; color: var(--nav);
  border: 1px solid rgba(22,29,24,.2); padding: 5px 10px; border-radius: 3px;
}

/* ── Name-meaning rows (board 3d) ── */
.meaning { display: grid; grid-template-columns: 110px 1fr; gap: 16px; border-top: 1px solid var(--rule); padding-top: 16px; }
.meaning-word { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--accent); padding-top: 3px; }
.meaning-text { font-size: 13.5px; line-height: 1.6; color: var(--body); }

/* ── Fact stack (About, right column) ── */
.fact-stack { display: flex; flex-direction: column; gap: 10px; }
.fact-root { background: var(--card); border: 1px solid var(--accent); border-radius: 4px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.fact-root .fr-name { font-weight: 600; font-size: 15px; }
.fact-root img { height: 22px; width: auto; }
.fact { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 20px; margin-left: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fact .f-name { font-size: 13.5px; }
.fact .f-tag { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.fact a { color: var(--accent); text-decoration: none; }
.fact a:hover { text-decoration: underline; }

/* ── Contact rows + pull quote ── */
.crow { display: flex; gap: 12px; font-size: 13px; color: var(--nav); align-items: baseline; }
.crow-label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); min-width: 96px; }
.crow a { color: inherit; text-decoration: none; }
.crow a:hover { color: var(--accent); }
.pull {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1.5; color: var(--accent);
  border-left: 2px solid var(--accent); padding-left: 18px; margin-top: 8px; max-width: 40ch;
}
.pull-src { font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ── Founder leadership card (board 3d) ── */
.founder-card { display: grid; grid-template-columns: 240px 1fr; gap: 36px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; margin-top: 20px; }
.founder-name { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.founder-role { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.founder-quote { font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 1.4; text-wrap: pretty; }
.cert-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cert-pills span { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; color: var(--accent); border: 1px solid rgba(44,92,72,.35); padding: 4px 9px; border-radius: 3px; }

/* ── Note band ── */
.note { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; padding: 16px 20px; font-size: 13px; line-height: 1.6; color: var(--body); }

/* ── Footer ── */
footer.site {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 40px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--muted);
}
footer.site .f-tag { font-family: var(--font-display); font-style: italic; }
footer.site ul { display: flex; gap: 18px; list-style: none; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cards, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pillars, .pillars.cols-3 { grid-template-columns: 1fr 1fr; }
  .pillar { border-bottom: 1px solid var(--rule-soft); }
  .split, .hero-cols, .founder-card { grid-template-columns: 1fr; }
  .hero-cta { justify-content: start; }
}
@media (max-width: 640px) {
  .top-banner { font-size: 10px; letter-spacing: .08em; }
  .top-banner .banner-more { display: none; }
  nav.site { padding: 10px 20px; }
  .nav-links { gap: 14px; }
  .logo-sub { display: none; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .page { padding-top: 132px; }
  .cards, .cards.cols-4, .steps, .pillars, .pillars.cols-3 { grid-template-columns: 1fr; }
  .pillar { border-right: 0; }
  .display { font-size: 34px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-solid, .hero-cta .btn-ink, .hero-cta .btn-outline { width: 100%; }
  .stats { gap: 20px; flex-wrap: wrap; }
  footer.site { padding: 16px 20px; }
}
