/* ZeroGap design tokens and components (from the ZeroGap UI design). */
:root {
  --bg: #070708; --card: #111113; --line: #222226; --line2: #2E2E33; --chip: #1A1A1D;
  --ink: #F2F2F4; --ink2: #CFCFD5; --mute: #A5A5AD; --dim: #8A8A93;
  --green: #C9C5FF; --green2: #E4E1FF; --greenbg: #1C1B2A; --blue: #8F8AE6; --lav1: #f1efff; --lav2: #c9c5ff;
  --amber: #E8C46A; --amberbg: #15130C; --amberline: #3A3320; --red: #FF8A80; --redbg: #2A1414; --redline: #5A2A2A;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; --sans: 'Geist', 'Space Grotesk', system-ui, sans-serif; --display: 'Geist', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
a { color: var(--green2); } a:hover { color: #B9F5D8; }
.mono { font-family: var(--mono); }
.zg-grid { background-color: var(--bg); background-image: linear-gradient(rgba(74,222,128,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(74,222,128,.06) 1px, transparent 1px); background-size: 48px 48px; }
/* Floating pill navigation, same on every page. */
header.top { position: sticky; top: 16px; z-index: 50; max-width: 1340px; margin: 16px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: linear-gradient(90deg, rgba(24,32,29,.82), rgba(12,16,15,.82)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0,0,0,.45); }
header.top .navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
header.top .navlinks a:not(.btn) { padding: 10px 16px; color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 999px; }
header.top .navlinks a:not(.btn):hover, header.top .navlinks a.on { color: var(--ink); background: rgba(255,255,255,.06); }
.brand b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand b { font-size: 20px; letter-spacing: -.02em; }
.brand span { font-size: 13px; color: var(--dim); }
nav.sections { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
nav.sections a { padding: 10px 14px; border-radius: 8px; color: var(--mute); text-decoration: none; }
nav.sections a.on { background: var(--chip); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: linear-gradient(180deg, #6BF7BA, var(--green)); color: #06110D; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:hover { color: #06110D; filter: brightness(1.08); box-shadow: 0 0 28px rgba(69,240,166,.35); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid #2A4A3E; color: var(--ink); }
.card { padding: 24px; border-radius: 20px; background: linear-gradient(180deg, #111816, var(--card)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.card.big { padding: 32px; border-radius: 20px; gap: 20px; }
.label { font-size: 13px; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.pill.live { background: var(--greenbg); color: var(--green2); }
.pill.warn { border: 1px solid var(--amberline); color: var(--amber); }
.pill.bad { border: 1px solid var(--redline); color: var(--red); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.status.Balanced { background: var(--greenbg); color: var(--green2); }
.status.Drift, .status.Incomplete { background: var(--amberbg); color: var(--amber); border: 1px solid var(--amberline); }
.status.Needs { background: var(--redbg); color: var(--red); border: 1px solid var(--redline); }
.note { padding: 14px 16px; border-radius: 12px; background: var(--amberbg); border: 1px solid var(--amberline); font-size: 14px; line-height: 1.5; color: #E8DDB5; }
.note.red { background: var(--redbg); border-color: var(--redline); color: #F3C6C1; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { padding: 10px 0; font-weight: 500; color: var(--dim); text-align: left; }
table.t td { padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--mono); }
table.t td:first-child { font-family: var(--sans); }
table.t .r { text-align: right; }
.grid-auto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.src { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed .t { font-family: var(--mono); color: var(--dim); width: 64px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); }
.bar > div { height: 8px; border-radius: 4px; background: var(--blue); }
.skeleton { color: var(--dim); }
/* Site footer: brand + link columns + giant wordmark (rendered by /assets/site.js). */
footer.site { position: relative; overflow: hidden; padding: 72px 24px 0; border-top: 1px solid var(--line); background: #000; }
footer.site .cols { max-width: 1200px; margin: 0 auto; display: grid; gap: 40px; grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(130px, 1fr)); }
footer.site h4 { margin: 0 0 22px; font-size: 18px; font-weight: 700; color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
footer.site ul a { color: var(--mute); text-decoration: none; font-size: 16px; }
footer.site ul a:hover { color: var(--ink); }
footer.site .copy { max-width: 1200px; margin: 56px auto 0; padding: 32px 0; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 15px; }
footer.site .word { font-family: var(--display); font-weight: 800; font-style: italic; text-align: center; line-height: .8; font-size: clamp(80px, 19vw, 300px); color: #111614; letter-spacing: -.02em; user-select: none; margin-top: 8px; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: 1 / -1; } }
footer.foot { padding: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dim); }
input.in, select.in { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 16px; }
@media (max-width: 720px) { header.top { top: 8px; margin: 8px 8px 0; padding: 10px 10px 10px 18px; border-radius: 24px; } header.top .navlinks a:not(.btn) { padding: 8px 10px; font-size: 14px; } .hero h1 { font-size: 44px !important; } .ratio-big { font-size: 56px !important; } main { padding-left: 16px !important; padding-right: 16px !important; } }
@media (max-width: 900px) { header.top nav.sections { order: 3; flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } header.top nav.sections a { white-space: nowrap; } header.top { max-width: calc(100vw - 16px); } }
.card, .grid-auto > * { min-width: 0; }

/* Monochrome app chrome (matches the landing page): flat top bar, mono labels, lavender primary button. */
html, body { -webkit-font-smoothing: antialiased; }
header.top { position: sticky; top: 0; max-width: none; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 14px 24px; background: rgba(7,7,8,.82); box-shadow: none; }
.brand b { font-family: var(--sans); font-weight: 500; text-transform: none; letter-spacing: -.02em; }
.brand svg circle { fill: transparent; } .brand svg path { stroke: var(--ink); }
nav.sections a, header.top .navlinks a:not(.btn) { font-size: 14px; font-weight: 400; border-radius: 6px; color: var(--mute); }
nav.sections a.on, header.top .navlinks a.on { color: var(--ink); background: transparent; }
.btn { border-radius: 6px; background: linear-gradient(180deg, var(--lav1), var(--lav2)); color: #16151f; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.btn:hover { color: #16151f; box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 0 30px rgba(201,197,255,.3); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: var(--ink); box-shadow: none; }
.card { background: var(--card); border-color: var(--line); border-radius: 14px; }
.zg-grid { background-image: none; }
h1, h2 { letter-spacing: -.04em !important; font-weight: 400 !important; }
.label, .src, .kicker { font-family: var(--mono); }
footer.site { background: var(--bg); }
footer.site .word { font-family: var(--sans); font-style: normal; font-weight: 500; color: #121214; letter-spacing: -.06em; }
.zg-banner { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #050506; min-height: 300px; }
.zg-banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zg-banner .copy { position: relative; z-index: 1; padding: 36px; max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
#ratio, #h-ratio { font-family: var(--sans) !important; font-weight: 300 !important; letter-spacing: -.05em; }
.brand { color: var(--ink); }
