/* FundOps marketing site. Tokens mirror the product (tailwind.config.ts). */
:root {
  --ink: #1c1c1a;
  --muted: #6b6b64;
  --line: #e4e1d9;
  --paper: #faf9f6;
  --panel: #ffffff;
  --accent: #2f3a2f;
  --accent-soft: #eef1ec;
  --amber: #8a6d1f;
  --amber-bg: #f6efdc;
  --green: #2f5d3a;
  --green-bg: #e6efe7;
  --slate: #3a4a5a;
  --slate-bg: #e8edf1;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: 24px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 28, 26, 0.04), 0 1px 8px rgba(28, 28, 26, 0.04);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.9em; }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font-size: 15px;
}
.skip:focus { top: 12px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header { position: relative; border-bottom: 1px solid var(--line); background: var(--paper); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; flex: none; }
.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-desktop li + li { margin-top: 0; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-desktop a:hover { border-bottom-color: var(--line); }
.nav-desktop a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-cta { flex: none; }

.nav-mobile { display: none; margin-left: auto; }
.nav-mobile > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px;
  padding: 8px 14px; font-size: 15px; font-weight: 500; min-height: 44px;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 1px; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 15;
  background: var(--panel); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(28, 28, 26, 0.06);
  padding: 8px var(--gutter) 20px;
}
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li + li { margin-top: 0; border-top: 1px solid var(--line); }
.nav-panel a:not(.btn) { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 17px; }
.nav-panel a[aria-current="page"] { font-weight: 600; color: var(--accent); }
.nav-panel-actions { display: grid; gap: 10px; margin-top: 14px; }

@media (max-width: 1100px) {
  .bar .nav-desktop, .bar .header-cta { display: none; }
  .bar .nav-mobile { display: block; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 8px;
  font: 500 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color 0.15s ease;
}
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3c4a3c; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-note { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: var(--panel); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 14px; margin-bottom: 0; }
.eyebrow {
  display: block; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.prose { max-width: 44rem; }
.prose h2 { margin: 2em 0 0.6em; font-size: 1.5rem; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose > :first-child { margin-top: 0; }

/* page intro (non-home pages) */
.page-intro { padding: 64px 0 56px; }
.page-intro h1 { max-width: 22ch; }
.page-intro .lead { margin-top: 20px; margin-bottom: 0; }

/* home hero */
.hero { padding: 80px 0 72px; }
.hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); line-height: 1.25; max-width: 30em; }
.hero h1 .for { color: var(--muted); }

/* ── grids and cards ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-accent { border-color: var(--accent); }

.proof { border-top: 2px solid var(--accent); padding-top: 20px; }
.proof h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 10px; }
.proof p { color: var(--ink); margin-bottom: 0; }

.callout { background: var(--accent-soft); border: 1px solid #d7ddd4; border-radius: var(--radius); padding: 22px 24px; }
.callout p:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-bottom: 10px; }

.draft-note {
  background: var(--amber-bg); border: 1px solid #e6d7ac; color: #5c4812;
  border-radius: 8px; padding: 12px 16px; font-weight: 600; margin-bottom: 32px;
}

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}

/* ── screenshots ────────────────────────────────────────────────────────── */
.shot { margin: 0; }
.shot .frame { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot a { display: block; }
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shot + .shot { margin-top: 32px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pair .label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.feature + .feature { margin-top: 72px; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text > p:first-of-type { color: var(--muted); font-size: 1.05rem; }

/* ── capital call flow ──────────────────────────────────────────────────── */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.flow li { margin: 0; counter-increment: step; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; }
.flow li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  font: 600 14px/1 var(--sans); margin-bottom: 12px;
}
.flow h3 { margin: 6px 0 6px; }
.flow p { margin: 0; font-size: 15.5px; color: var(--ink); }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; margin-left: 8px; vertical-align: 2px; }
.tag-team { background: var(--slate-bg); color: var(--slate); }
.tag-engine { background: var(--green-bg); color: var(--green); }
.tag-agent { background: var(--amber-bg); color: #6f5718; }
.tag-system { background: #efede7; color: #55554f; }

.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; }
.pipeline li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.pipeline li span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px; }
.pipeline li + li::before { content: "→"; color: var(--muted); }

/* ── tables ─────────────────────────────────────────────────────────────── */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.data caption { text-align: left; padding: 16px 20px 6px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 20px; border-top: 1px solid var(--line); }
table.data thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
table.data tbody th { font-weight: 600; width: 26%; }
table.data td.status { width: 13%; white-space: nowrap; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; }
.badge-yes { background: var(--green-bg); color: var(--green); }
.badge-plan { background: var(--amber-bg); color: #6f5718; }
.badge-no { background: #efede7; color: #55554f; }
.badge-scope { background: var(--slate-bg); color: var(--slate); }
.table-stack + .table-stack { margin-top: 28px; }

table.data.datasheet { table-layout: fixed; }
table.data.datasheet thead th:nth-child(1) { width: 27%; }
table.data.datasheet thead th:nth-child(2) { width: 15%; }

/* ── pricing ────────────────────────────────────────────────────────────── */
.price-card { display: flex; flex-direction: column; }
.price-card .eyebrow { margin-bottom: 6px; }
.price { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 12px; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card .fine { font-size: 15px; color: var(--muted); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 56px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font: 600 13px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-legal p { margin: 0 0 6px; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 52px; }
  .page-intro { padding: 48px 0 40px; }
  .grid-2, .grid-3, .grid-4, .flow, .pair { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-row .btn { flex: 1 1 100%; }
  table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; width: auto !important; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data tr { border-top: 1px solid var(--line); padding: 14px 16px; }
  table.data tbody th, table.data td { border-top: 0; padding: 0; }
  table.data td.status { margin: 6px 0 8px; }
  table.data caption { display: block; padding: 16px 16px 8px; }
  table.data td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 10px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .card, .flow li { padding: 18px; }
}

/* small note under a block */
.note { margin-top: 18px; margin-bottom: 0; font-size: 15px; color: var(--muted); }
.roles { margin-top: 32px; gap: 16px 24px; }
.roles p { margin: 0; font-size: 15.5px; }
.roles .tag { margin-left: 0; margin-right: 6px; }
.after-table { margin-top: 20px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: 0; }
h2.h3 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; letter-spacing: 0; line-height: 1.35; }
.btn-row.tight { margin-top: 16px; }
.pair .shot + .shot { margin-top: 0; }
h1, h2 { text-wrap: balance; }
.card h2 { margin-bottom: 12px; }
h3 + p { margin-top: 6px; }
h2.h3 { margin-bottom: 8px; }
