/* www.ravelcrm.software — institutional page (S359, the S356 pattern). Self-hosted IBM Plex (SIL OFL, fonts/OFL.txt); no external resources. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/fonts/IBMPlexSans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3f3f6; --panel: #ffffff; --ink: #17181f; --body: #3a3d48; --muted: #5f6472;
  --line: #e4e5eb; --line-soft: #eeeff3; --line-strong: #cdd4de;
  --accent: #3a44c4; --accent-ink: #2f389e; --accent-soft: #eef1fe; --on-accent: #ffffff;
  --neutral-fg: #465061; --warn-bg: #fcf2e0; --warn-bd: #efcd8e; --warn-fg: #8a5300;
  --band-bg: #17181f; --band-fg: #eceef3; --band-body: #c4c7d0; --band-line: #3a3d48; --band-muted: #9a9fac;
  --band-accent: #94a4f6; --band-ok: #a6dcbd;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Theme: follows the device (Auto) unless the header switch picks Light or Dark. CSS only, no script:
   :has() reads the checked radio. Browsers without :has() stay on Auto. */
@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-light:checked)) {
    --bg: #121319; --panel: #1a1b22; --ink: #eceef3; --body: #c4c7d0; --muted: #9a9fac;
    --line: #282a34; --line-soft: #1f212a; --line-strong: #3a3d48;
    --accent: #94a4f6; --accent-ink: #bcc8fb; --accent-soft: #1c1f3a; --on-accent: #17181f;
    --neutral-fg: #b3bac7; --warn-bg: #2c2312; --warn-bd: #7a5a1e; --warn-fg: #f0c06a;
    --band-bg: #0b0c10; --band-line: #2c2e38; --band-accent: #bcc8fb; --band-ok: #7fd3a3;
    color-scheme: dark;
  }
}
:root:has(#theme-dark:checked) {
    --bg: #121319; --panel: #1a1b22; --ink: #eceef3; --body: #c4c7d0; --muted: #9a9fac;
    --line: #282a34; --line-soft: #1f212a; --line-strong: #3a3d48;
    --accent: #94a4f6; --accent-ink: #bcc8fb; --accent-soft: #1c1f3a; --on-accent: #17181f;
    --neutral-fg: #b3bac7; --warn-bg: #2c2312; --warn-bd: #7a5a1e; --warn-fg: #f0c06a;
    --band-bg: #0b0c10; --band-line: #2c2e38; --band-accent: #bcc8fb; --band-ok: #7fd3a3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
p { margin: 0; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--panel); padding: 8px 12px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 36em; }
.body { color: var(--body); }
.small { font-size: 15px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); }
.brand b { font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.brand span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); text-decoration: underline; }

/* sections */
.section { border-bottom: 1px solid var(--line); }
.section.alt { background: var(--panel); }
.section > .container { padding-top: 88px; padding-bottom: 88px; }
.section h2 { font-size: 34px; line-height: 1.2; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* hero */
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -.015em; }
.hero .stack { gap: 22px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 4px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--ink); font-weight: 500; }

.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.role { border: 1px solid var(--line-strong); background: var(--panel); padding: 18px 20px; border-radius: 6px; }
.role.issuer { border: 2px solid var(--accent); background: var(--accent-soft); }
.role .kind { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-fg); }
.role.issuer .kind { color: var(--accent-ink); }
.role .who { font-weight: 600; font-size: 19px; }
.role .what { font-size: 14px; color: var(--muted); }
.link { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.link::before { content: ""; width: 2px; height: 34px; background: var(--line-strong); flex: none; }
.link.first::before { background: var(--accent); }

/* rows card */
.rows { margin: 0; padding: 0; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.section.alt .rows { background: var(--bg); }
.rows li { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.rows li:last-child { border-bottom: 0; }
.rows strong { display: block; font-weight: 600; }
.rows span { display: block; color: var(--body); font-size: 16px; }
.rows code { display: block; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* what Tacit issues */
.issues { display: flex; flex-direction: column; gap: 36px; }
.issues > .stack { max-width: 720px; gap: 12px; }
.product { border-top: 3px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product h3 { font-size: 20px; }
.product p { color: var(--body); font-size: 16px; }
.product .mono { font-size: 13px; color: var(--muted); }
.lifecycle { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { background: var(--bg); padding: 14px 16px; border-radius: 4px; font-weight: 600; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }

/* the dark band */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .container { padding-top: 80px; padding-bottom: 80px; align-items: center; }
.band h2 { color: var(--band-fg); font-size: 34px; line-height: 1.2; }
.band .eyebrow { color: var(--band-accent); }
.band .body { color: var(--band-body); }
.claims { display: flex; flex-direction: column; gap: 12px; min-width: 0; font-family: var(--mono); font-size: 15px; }
.claim { padding: 18px 20px; border: 1px solid var(--band-line); border-radius: 6px; overflow-wrap: anywhere; }
.claim.hidden { border-style: dashed; color: var(--band-muted); }
.claim .kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--band-muted); }
.claim .ok { color: var(--band-ok); }
.claims .caption { font-family: var(--sans); font-size: 13px; color: var(--band-muted); }

/* privacy + zero knowledge */
.privacy { display: flex; flex-direction: column; gap: 36px; }
.zk { border: 1px dashed var(--accent); border-radius: 6px; background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.zk header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.zk h3 { font-size: 22px; }
.zk p { color: var(--body); max-width: 52em; }
.badge { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--warn-bd); background: var(--warn-bg); color: var(--warn-fg); border-radius: 999px; }

/* standards strip */
.standards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.standards li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.standards b { display: block; font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--ink); }
.standards span { display: block; font-size: 14px; color: var(--muted); }

/* contact form */
.contact { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.contact .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { min-height: 48px; width: 100%; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; }
.field textarea { min-height: 132px; resize: vertical; }
.contact .note { font-size: 13px; color: var(--muted); }
.contact .submit { display: flex; justify-content: flex-end; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.direct { font-size: 15px; color: var(--body); }

/* footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.site-footer .about b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.site-footer .about p { max-width: 28em; }
.site-footer h2 { font-size: 13px; font-family: var(--mono); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { border-top: 1px solid var(--line); }
.site-footer .legal .container { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; font-size: 13px; }

/* single-column pages: privacy notice, form results */
.page { padding-top: 64px; padding-bottom: 88px; max-width: 760px; }
.page h1 { font-size: 40px; line-height: 1.15; margin-bottom: 18px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page ul { color: var(--body); margin: 0 0 14px; }
.page li { margin-bottom: 6px; }
.page .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 28px; }

@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .hero .container, .two, .three { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero .container { padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 18px; }
  .section > .container { padding-top: 56px; padding-bottom: 56px; }
  .section h2, .band h2 { font-size: 27px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { padding: 20px 16px; }
  .contact .pair { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .about { grid-column: 1 / -1; }
  .page { padding-top: 40px; padding-bottom: 56px; }
  .page h1 { font-size: 32px; }
}
@media (max-width: 420px) { .standards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.stack.wide { gap: 48px; }
.stack.tight { gap: 14px; }

/* theme switch */
.theme { display: inline-flex; margin: 0; padding: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.theme legend { position: absolute; left: -10000px; }
.theme input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.theme label { padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.theme label:hover { color: var(--ink); }
.theme input:checked + label { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.theme input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
.header-end { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .halves { grid-template-columns: minmax(0, 1fr); } }

/* a lifecycle's steps inside a card: chips that wrap, as many as the lifecycle has (S359) */
.steps.flow { display: flex; flex-wrap: wrap; gap: 8px; }
.steps.flow li { padding: 8px 12px; font-size: 15px; }
.steps.flow li::before { display: inline; margin-right: 6px; }
