/* Knowledge Core website. It takes its look from the app (static/styles.css): one ink colour,
   thin lines, small spaced labels, and the dark grid panel of the app's sign-in screen.
   If the app's colours or type change, change the same values here. */
:root {
  --bg: #ffffff;
  --side: #fafafa;
  --soft: #f5f5f5;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;
  --good: #1f7a4d;
  --good-soft: #edf6f1;
  --warn: #9a5b00;
  --warn-soft: #fbf3e4;
  --dark: #0d0d0d;
  --band: #ececea;        /* the grey of a highlighted section: clearly darker than the page, so white cards stand out on it */
  --radius: 8px;
  --font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, h4, p { margin: 0; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }

/* the small spaced label used for every section heading, as in the app */
.label { font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.wordmark { white-space: nowrap; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.tag { font-style: normal; font-size: 11.5px; line-height: 1.5; border-radius: 999px; padding: 1px 9px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tag.beta { background: var(--warn-soft); color: var(--warn); }
.tag.ready { background: var(--good-soft); color: var(--good); }

/* buttons, as in the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 9px 16px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--line-strong); background: var(--soft); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; border-color: #000; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); padding: 11px 20px; }
.btn.light:hover { background: #e9e9e9; border-color: #e9e9e9; }
.btn.outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; padding: 11px 20px; }
.btn.outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn.icon-only { padding: 8px; }
body:not(.no-app) .app-fallback { display: none; }

/* the navigation: a small floating island that appears once the hero has been scrolled past
   (site.js adds "island-ready" to the page and "show" to the island; without JavaScript it is simply always there) */
.top { position: fixed; top: 14px; left: 50%; z-index: 20; width: 75vw; max-width: 1180px; transform: translateX(-50%);
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -22px rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.island-ready .top:not(.show) { transform: translate(-50%, -150%); opacity: 0; pointer-events: none; }
.top-in { display: flex; align-items: center; gap: 28px; height: 56px; max-width: none; padding: 0 10px 0 22px; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav-only, .menu-btn { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions .btn { padding: 8px 14px; border-radius: 10px; }

/* the top of the hero: just the name and a quiet sign-in link, part of the picture rather than a bar */
.hero { position: relative; }
.hero-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.hero-top .wordmark { color: #fff; }
.hero-top a { color: #b5b5b5; font-size: 14.5px; text-decoration: none; }
.hero-top a:hover { color: #fff; }

/* hero: the dark grid panel from the app's sign-in screen. One message, one picture. */
.hero { background-color: var(--dark); color: #f5f5f5; padding: 148px 0 104px; text-align: center;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero .label { color: #7d7d7d; }
.hero h1 { margin-top: 20px; font-size: clamp(40px, 6vw, 80px); line-height: 1.04; font-weight: 400; letter-spacing: -.035em; color: #fff; max-width: 12em; }
.hero h1 span { display: block; }
.hero h1 span, .closing h2 span { color: #8f8f8f; }
.lede { margin-top: 28px; color: #c9c9c9; font-size: 19px; line-height: 1.55; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 56px; }
.closing .cta { justify-content: flex-start; margin-top: 0; }

/* the hero picture: data flows in, insights come out, the savings add up (played by site.js) */
.stage { margin: 88px 0 0; width: 100%; max-width: 1040px; }
.stage-row { display: grid; grid-template-columns: 150px minmax(40px, 1fr) 132px minmax(40px, 1fr) minmax(0, 380px); align-items: stretch; height: 330px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.col > * { flex: 1 1 0; display: flex; align-items: center; min-height: 0; }
.sources .src { background: none; border: 0; padding: 0; justify-content: flex-end; gap: 9px; color: #d6d6d6; font-size: 14.5px; }
.sources .src svg { width: 16px; height: 16px; color: #8f8f8f; }
.pipe { width: 100%; height: 100%; display: block; overflow: visible; }
.pipe path { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 9; vector-effect: non-scaling-stroke; animation: flow 1.1s linear infinite; }
.pipe.out path { transition: stroke .5s; }
.stage.anim .pipe.out path:not(.on) { stroke: rgba(255,255,255,.14); }
.pipe.out path.on { stroke: rgba(255,255,255,.75); }
@keyframes drip { to { background-position: 0 10px; } }
@keyframes flow { to { stroke-dashoffset: -10; } }
.core { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; }
.core-mark { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: #fff; }
.core-mark span { width: 38px; height: 38px; border-radius: 50%; border: 8px solid var(--ink); }
.core-mark::before, .core-mark::after { content: ""; position: absolute; inset: -1px; border-radius: 24px; border: 1px solid rgba(255,255,255,.5); animation: halo 2.8s ease-out infinite; }
.core-mark::after { animation-delay: 1.4s; }
@keyframes halo { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.core-name { position: absolute; top: calc(50% + 62px); font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; white-space: nowrap; }
.insights > .ins { padding: 9px 0; }
.ins { text-align: left; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.ins > * { min-width: 0; }
.ins-text, .ins b { background: #fff; color: var(--ink); align-self: stretch; display: flex; }
.ins-text { flex: 1; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px 0 20px; border-radius: 14px 0 0 14px; font-size: 15px; line-height: 1.3; }
.ins-text .label { color: var(--faint); }
.ins b { align-items: center; padding: 0 20px 0 12px; border-radius: 0 14px 14px 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.total { margin-top: 64px; text-align: center; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.total b { display: block; font-size: clamp(52px, 7vw, 92px); line-height: 1; font-weight: 400; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.total span { display: block; margin-top: 14px; font-size: 17px; color: #9a9a9a; }
.stage figcaption { margin-top: 22px; font-size: 12.5px; color: #5f5f5f; text-align: center; }
.stage.anim [data-step]:not(.show) { opacity: 0; transform: translateY(10px); }
.stage.anim .ins:not(.show) { transform: translateX(-14px); }
@media (prefers-reduced-motion: reduce) { .pipe path, .core-mark::before, .core-mark::after { animation: none; } }
.how { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px 2px 8px; margin-bottom: 12px; }
.how svg { width: 12px; height: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
.bubble { width: fit-content; background: var(--soft); padding: 9px 15px; border-radius: 18px 18px 4px 18px; }

/* sections: few words, a lot of room */
.band { padding: 136px 0; }
.band.soft { background: var(--band); }
.band.soft .flow-viz, .band.soft .quotes blockquote { background: var(--bg); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.band.soft .card, .band.soft .plan { border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.band.soft .src { background: var(--side); }
.band.soft .flow-viz .bubble { background: var(--soft); border-color: transparent; }
.band.soft .label, .band.soft .num, .band.soft .quotes figcaption { color: #767676; }
.band.soft .flow p, .band.soft .card p { color: #5c5c5c; }
.band.tight { padding: 88px 0; }
.head { max-width: 40em; margin-bottom: 72px; }
.head h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; }
.head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); }
.label.center { text-align: center; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--side); color: var(--ink); }
.ic svg { width: 20px; height: 20px; }
.band.soft .ic, .band.soft .card { background: var(--bg); }

/* product: one idea and one picture per row */
.feat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 96px; }
.feat:first-of-type { margin-top: 0; }
.feat.flip .feat-text { order: 2; }
.feat h3 { margin: 14px 0 12px; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.15; font-weight: 400; letter-spacing: -.02em; }
.feat p { color: var(--muted); font-size: 17px; max-width: 24em; }
.viz { background: var(--side); border: 1px solid var(--line); border-radius: 16px; min-height: 340px; padding: 40px; display: grid; place-items: center;
  background-image: linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px); background-size: 28px 28px; }
.mini { width: 100%; max-width: 400px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px; font-size: 14.5px; box-shadow: 0 24px 48px -32px rgba(0,0,0,.28); }
.mini .how { margin-bottom: 16px; }
.trail { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.trail li { counter-increment: step; position: relative; padding: 0 0 14px 34px; color: var(--muted); line-height: 1.45; }
.trail li:last-child { padding-bottom: 0; }
.trail li b { font-weight: 500; color: var(--ink); }
.trail li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; display: grid; place-items: center; color: var(--muted); }
.trail li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 4px; width: 1px; background: var(--line-strong); }
.people { padding: 6px 20px; }
.people > div { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.people > div:last-child { border-bottom: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 11px; letter-spacing: .03em; flex: none; }
.pname { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; }
.plant { font-size: 12px; border-radius: 999px; padding: 2px 10px; border: 1px dashed var(--line-strong); color: var(--faint); text-decoration: line-through; }
.plant.on { border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; }
.rep-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--good); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.report b { font-weight: 500; font-size: 15.5px; }
.bars { display: block; width: 100%; height: auto; margin: 18px 0 4px; }
.bars rect { fill: #cfcfcf; }
.bars rect.hot { fill: var(--ink); }
.bars .base { stroke: var(--line-strong); fill: none; }

/* what people ask */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.quotes figure { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.quotes blockquote { margin: 0; background: var(--bg); border: 1px solid var(--line); padding: 16px 20px; border-radius: 20px 20px 20px 4px; font-size: 17px; line-height: 1.4; }
.quotes figcaption { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-left: 6px; }

/* how it works: a picture of the journey */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.flow li { position: relative; }
.flow-viz { height: 176px; border: 1px solid var(--line); border-radius: 14px; background: var(--side); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 18px; margin-bottom: 22px; }
.flow li:not(:last-child) .flow-viz::after { content: ""; position: absolute; top: 88px; right: -34px; width: 22px; height: 1px; background: var(--ink); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 84px; right: -35px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.src { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 13px; }
.src svg { width: 14px; height: 14px; color: var(--muted); }
.tile { display: grid; place-items: end start; width: 62px; height: 78px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.tile.dashed { border-style: dashed; }
.flow-viz .bubble { margin: 0; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); }
.spark { width: 78%; height: auto; }
.spark polyline { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.flow h3 { display: inline; margin-left: 8px; font-size: 18px; font-weight: 500; }
.flow p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.roles { margin-top: 112px; }
.roles > .label { margin-bottom: 20px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.card h3 { margin: 22px 0 6px; font-size: 19px; font-weight: 500; }
.card p { color: var(--muted); font-size: 15.5px; }

/* your data: a picture of the wall around a self-hosted install */
.head h2 span { color: var(--faint); }
.wall-fig { margin: 0 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; }
.wall { position: relative; border: 1.5px dashed var(--ink); border-radius: 20px; padding: 64px 36px 44px; background: var(--side);
  background-image: linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px); background-size: 28px 28px; }
.wall-tag { position: absolute; top: -15px; left: 28px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 15px 5px 11px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.wall-tag svg { width: 14px; height: 14px; }
.wall-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.node { flex: 1 1 0; max-width: 210px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px 14px; }
.node svg { width: 22px; height: 22px; margin-bottom: 8px; color: var(--ink); }
.node b { font-size: 15.5px; font-weight: 500; }
.node span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.node.solid { border-color: var(--ink); box-shadow: 0 20px 40px -28px rgba(0,0,0,.4); }
.mark { display: grid !important; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); margin-bottom: 8px; }
.mark span { width: 13px; height: 13px; border-radius: 50%; border: 3px solid #fff; }
.arrow { position: relative; flex: 0 0 34px; height: 1px; background: var(--ink); }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.outside { display: flex; align-items: center; }
.barred { position: relative; flex: 0 0 56px; height: 0; border-top: 1.5px dashed var(--line-strong); }
.barred svg { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; padding: 5px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); stroke-width: 2.2; }
.node.ghost { border-style: dashed; border-color: var(--line-strong); background: transparent; max-width: none; padding: 20px 14px; }
.node.ghost b { color: var(--muted); }
.card.plain { background: var(--side); border-style: dashed; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.card.plain p { color: var(--ink); font-size: 15.5px; }

/* connections: names, with a dot for where each one stands */
.st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); flex: none; }
.st.ready::before { background: var(--good); border-color: var(--good); }
.st.beta::before { background: #d99a2b; border-color: #d99a2b; }
.legend { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.conn-rows { border-top: 1px solid var(--line-strong); }
.conn-rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.conn-rows h3 { font-size: 18px; font-weight: 500; }
.conn-rows p { display: flex; flex-wrap: wrap; gap: 10px; }
.conn-rows .st { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px 7px 12px; font-size: 14.5px; }
.conn-rows .st:not(.ready):not(.beta) { color: var(--faint); }
.fine { margin-top: 24px; font-size: 14px; color: var(--muted); }
.fine b { font-weight: 500; color: var(--ink); }

/* hosting */
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 40px; display: flex; flex-direction: column; }
.plan .label { margin-top: 28px; }
.plan h3 { margin-top: 8px; font-size: 27px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.ticks { list-style: none; margin: 26px 0 34px; padding: 0; flex: 1; }
.ticks li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid var(--line); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 20px; width: 11px; height: 6px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; padding: 11px 20px; }

/* closing band and footer */
.closing { background-color: var(--dark); color: #fff; padding: 84px 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; }
.closing-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.closing .label { color: #7d7d7d; }
.closing h2 { margin-top: 12px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; max-width: 15em; }
.closing .cta { margin-top: 0; }
.foot { background: var(--side); border-top: 1px solid var(--line); padding: 40px 0 44px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot p { margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 420px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* the "page not found" page */
.lost { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; max-width: 560px; margin: 0 auto; padding: 32px; }
.lost .wordmark { margin-bottom: 40px; }
.lost h1 { font-size: 34px; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.lost p { color: var(--muted); margin-bottom: 10px; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lost .label { display: flex; align-items: center; gap: 8px; }
.dot.off { background: transparent; border: 1.5px solid var(--faint); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 1180px) {
  .top { width: calc(100% - 28px); }
}
@media (max-width: 1020px) {
  .stage { max-width: 460px; margin-top: 56px; }
  .stage-row { display: flex; flex-direction: column; align-items: center; height: auto; }
  .sources { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .sources .src { flex: none; }
  .pipe { width: 2px; height: 44px; margin: 14px 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.5) 0 2px, transparent 2px 10px); background-size: 2px 10px; animation: drip 1.1s linear infinite; }
  .pipe path { display: none; }
  .core { height: 128px; justify-content: flex-start; }
  .core-name { top: 106px; }
  .insights { width: 100%; gap: 10px; }
  .insights > .ins { padding: 0; flex: none; }
  .ins-text { padding: 14px 10px 14px 18px; }
  .stage.anim .ins:not(.show) { transform: translateY(-10px); }
  .total { margin-top: 48px; }
  .feat { grid-template-columns: 1fr; gap: 32px; margin-top: 80px; }
  .feat.flip .feat-text { order: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 48px 44px; }
  .flow li:nth-child(2) .flow-viz::after, .flow li:nth-child(2)::after { display: none; }
  .quotes { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .wall-fig { grid-template-columns: 1fr; justify-items: center; }
  .wall { width: 100%; }
  .outside { flex-direction: column; }
  .barred { flex: 0 0 48px; width: 0; height: 48px; border-top: 0; border-left: 1.5px dashed var(--line-strong); }
  .node.ghost { max-width: 320px; }
  .conn-rows > div { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: -1px; right: -1px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; flex-direction: column; gap: 0; padding: 6px 20px 10px; box-shadow: 0 24px 40px -24px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
  .nav-only { display: block; }
  .menu-btn { display: inline-flex; }
  .top-in { justify-content: space-between; gap: 12px; }
  .top-actions .btn:not(.primary):not(.menu-btn) { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 112px 0 72px; }
  .hero-top { height: 64px; }
  .lede { font-size: 17px; }
  .stage { margin-top: 56px; }
  .ins-text { font-size: 14px; }
  .ins b { font-size: 16.5px; padding: 0 16px 0 8px; }
  .total span { font-size: 15.5px; }
  .band { padding: 88px 0; }
  .band.tight { padding: 64px 0; }
  .head { margin-bottom: 44px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .viz { min-height: 0; padding: 22px 16px; }
  .mini { padding: 18px; }
  .people { padding: 2px 14px; }
  .pname { font-size: 13px; }
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .wall { padding: 44px 18px 26px; }
  .wall-tag { left: 18px; }
  .wall-row { flex-direction: column; gap: 10px; }
  .wall-row .node { max-width: none; width: 100%; flex: none; padding: 16px 14px; }
  .wall-row .arrow { flex: 0 0 22px; width: 1px; height: 22px; }
  .wall-row .arrow::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .wall-fig { margin-bottom: 48px; }
  .flow-viz { height: 150px; }
  .flow li .flow-viz::after, .flow li::after { display: none !important; }
  .roles { margin-top: 80px; }
  .plan { padding: 28px 24px; }
  .plan h3 { font-size: 23px; }
  .closing { padding: 72px 0; }
  .closing-in { align-items: flex-start; flex-direction: column; gap: 28px; }
  .cta .btn { flex: 1 1 auto; }
  .foot-in { flex-direction: column; gap: 24px; }
  .foot-end { align-items: flex-start; }
}
@media (max-width: 420px) {
  .top .wordmark { font-size: 12px; letter-spacing: .16em; }
  .top-in { padding-left: 16px; gap: 8px; }
  .top-actions .btn.primary { padding: 8px 12px; font-size: 14px; }
}
