/* nhigovernance.org: NHI Governance, makers of Sentinel NHI. Palette from the Sentinel NHI logo. */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --brand-50: #eaf6f5;
  --brand-100: #d3eeea;
  --brand-300: #7fcfc5;
  --brand-400: #46b8ad;
  --brand-500: #1fa89e;
  --brand-600: #2e6bae;
  --brand-700: #24578f;
  --night: #0e1b33;
  --night-2: #17294a;
  --ok: #059669;
  --warn: #d97706;
  --bad: #e11d48;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 16px 0 0; }
section { padding: 96px 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 24px -8px rgba(46, 107, 174, .7); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { color: var(--ink); border-color: var(--line); background: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14, 27, 51, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--brand-300); text-transform: uppercase; line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .btn { padding: 8px 14px; font-size: 14px; color: #fff; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 112px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(31, 168, 158, .35), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, rgba(58, 121, 189, .3), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--brand-100); background: rgba(31, 168, 158, .16); border: 1px solid rgba(127, 207, 197, .35); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, #a8e3dc, #7fcfc5 45%, #7aa9dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #c9e6e2; font-size: 19px; }
.hero .ctas, .page-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 20px; font-size: 13px; color: #94a3b8; }

/* Decision card (hero visual) */
.console { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.console-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.console-body { padding: 18px; }
.call { font-family: var(--mono); font-size: 13px; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px; line-height: 1.55; overflow-x: auto; }
.call .k { color: #7fcfc5; }
.call .s { color: #86efac; }
.call .n { color: #fcd34d; }
.layers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.layers li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.layers b { font-family: var(--mono); font-size: 11px; color: var(--brand-700); background: var(--brand-50); border-radius: 6px; padding: 2px 6px; }
.layers .r { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.r.pass { color: var(--ok); background: #ecfdf5; }
.r.hold { color: var(--warn); background: #fffbeb; }
.verdict { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 14px; }
.verdict strong { color: #92400e; }
.verdict .who { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* Logos strip (frameworks) */
.strip { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; color: var(--ink-3); font-size: 14px; }
.strip strong { color: var(--ink-2); font-weight: 600; }

/* Problem */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 10px 0 0; font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* Framework */
.framework { background: var(--paper-2); }
.layer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.layer { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.layer:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.layer .tag { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 8px; padding: 2px 8px; }
.layer h3 { margin-top: 14px; }
.layer .q { font-size: 13px; color: var(--brand-600); font-weight: 600; margin: 6px 0 0; }
.layer p { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.layer.wide { grid-column: span 1; background: linear-gradient(160deg, var(--night-2), var(--brand-700)); color: #fff; border: none; }
.layer.wide p { color: #c9e6e2; }
.layer.wide .tag { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }

/* Product */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 80px; }
.feature.flip .text { order: 2; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 28px; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.panel h4 { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-of-type { border-top: none; }
.row code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.row .muted { color: var(--ink-3); font-size: 12px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.b-ok { color: var(--ok); background: #ecfdf5; }
.b-warn { color: var(--warn); background: #fffbeb; }
.b-bad { color: var(--bad); background: #fff1f2; }
.b-brand { color: var(--brand-700); background: var(--brand-50); }
.push { margin-left: auto; }
.btns { display: flex; gap: 8px; margin-top: 12px; }
.mini { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.mini.go { background: var(--ok); color: #fff; border-color: var(--ok); }
.chain { display: flex; align-items: center; gap: 6px; margin-top: 6px; overflow: hidden; }
.chain span { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain em { color: var(--brand-400); font-style: normal; }
.verified { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ok); font-weight: 700; }

/* Monitoring band */
.dark { color: #fff; background: radial-gradient(800px 400px at 100% 0%, rgba(31, 168, 158, .3), transparent 60%), linear-gradient(180deg, var(--night-2), var(--night)); }
.dark .eyebrow { color: var(--brand-300); }
.dark .lede { color: #c9e6e2; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.tile { border-radius: var(--radius); padding: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.tile h3 { color: #fff; }
.tile p { color: #c9e6e2; font-size: 14px; margin: 8px 0 0; }
.tile .icon { background: rgba(127, 207, 197, .16); color: #c9e6e2; }

/* CipherWatch */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin-top: 48px; }
.duo .card h3 { display: flex; align-items: center; gap: 10px; }
.arrows { display: grid; align-content: center; gap: 14px; font-size: 12px; color: var(--ink-3); text-align: center; }
.arrows div { padding: 8px 12px; border: 1px dashed var(--brand-300); border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 600; white-space: nowrap; }

/* Developers */
.devs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; background: #0b1020; color: #e2e8f0; border-radius: 16px; padding: 22px; overflow-x: auto; box-shadow: var(--shadow); }
.code .c { color: #64748b; }
.code .k { color: #c4b5fd; }
.code .s { color: #86efac; }
.code .f { color: #93c5fd; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }

/* Deploy */
.deploy { background: var(--paper-2); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }

/* CTA */
.cta { text-align: center; color: #fff; border-radius: 24px; padding: 64px 32px; background: radial-gradient(600px 300px at 50% 0%, rgba(127, 207, 197, .3), transparent 70%), linear-gradient(135deg, var(--brand-700), var(--night-2)); box-shadow: 0 30px 60px -30px rgba(36, 87, 143, .8); }
.cta .lede { color: #dcefec; margin-left: auto; margin-right: auto; }
.cta .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }

/* Footer */
footer { padding: 48px 0; color: #94a3b8; font-size: 14px; background: var(--night); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer a { color: #cbd5e1; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .layer { transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap, .feature, .devs { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .layer-grid { grid-template-columns: repeat(2, 1fr); }
  .compare, .tiles, .three { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .arrows { grid-auto-flow: column; justify-content: center; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .compare, .tiles, .three, .layer-grid { grid-template-columns: 1fr; }
  .arrows { grid-auto-flow: row; }
  .cta { padding: 48px 20px; }
}

/* Utility classes (no inline styles, for a strict CSP) */
.big { font-size: 28px; }
.tight { margin: 4px 0 0; }
.row.gap { margin-top: 10px; }
.left { text-align: left; }
.icon-sm { margin: 0; width: 26px; height: 26px; border-radius: 7px; }
.icon-sm svg { width: 16px; height: 16px; }
.flush { padding-top: 0; }
.plain { background: #fff; }
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .wrap { display: block; width: 100%; }

/* ---------- Corporate site (multi-page) ---------- */

.brand img.logo { width: auto; height: 34px; }
.nav a.active { color: #fff; }
.nav a.active::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--brand-300); }
.nav .dd { position: relative; }

/* Sub-page header */
.page-hero { color: #fff; padding: 72px 0 64px; background:
  radial-gradient(700px 360px at 90% -20%, rgba(31, 168, 158, .35), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 8px; }
.page-hero .lede { color: #c9e6e2; }
.page-hero .eyebrow { color: var(--brand-300); }
.crumbs { font-size: 13px; color: #94a3b8; }
.crumbs a { color: #cbd5e1; }

/* Generic grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.card h3 + p { margin-top: 8px; }
.card .link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; }
.muted { color: var(--ink-3); }
.kicker { font-size: 13px; font-weight: 600; color: var(--brand-600); text-transform: uppercase; letter-spacing: .08em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band { background: var(--paper-2); }
.stat { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.list-check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 28px; color: var(--ink-2); }
.list-check li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23178a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Article / legal prose */
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 28px 0 8px; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--brand-500); background: var(--paper-2); border-radius: 0 10px 10px 0; }
.meta { font-size: 14px; color: var(--ink-3); }
.post-card { display: block; color: inherit; }
.post-card:hover { text-decoration: none; }
.post-card:hover h3 { color: var(--brand-600); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-600); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: 2px 10px; }
.note { font-size: 14px; color: var(--ink-3); background: var(--paper-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--brand-500); box-shadow: 0 20px 50px -20px rgba(31, 168, 158, .5); position: relative; }
.plan.featured::before { content: "Most chosen"; position: absolute; top: -12px; left: 28px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand-500); border-radius: 999px; padding: 3px 12px; }
.plan .price { font-size: 30px; font-weight: 800; margin: 12px 0 4px; color: var(--ink); }
.plan .for { color: var(--ink-3); font-size: 14px; }
.plan ul { flex: 1; }
.plan .btn { margin-top: 24px; justify-content: center; }
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

/* Contact form */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(31, 168, 158, .2); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.form-status { font-size: 14px; border-radius: 10px; padding: 12px 14px; display: none; }
.form-status.ok { display: block; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.form-status.err { display: block; color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; }
.contact-aside .card { margin-bottom: 16px; }

/* Values / team */
.value { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.value h3 { margin-top: 6px; }

/* Footer (columns) */
footer.site { padding: 64px 0 32px; background: var(--night); color: #94a3b8; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
footer.site h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: #cbd5e1; }
footer.site .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site .about-co { max-width: 300px; margin-top: 12px; }

@media (max-width: 1000px) {
  .grid-3, .grid-4, .plans { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .plans, .form .row2 { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 48px; }
  .nav a.active::after { display: none; }
  footer.site .cols { grid-template-columns: 1fr; }
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.steps { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.gap-top { margin-top: 24px; }
footer.site .wrap { display: block; }

/* ---------- Developer portal and docs ---------- */
.wrap.narrow { max-width: 760px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.form .check input { width: auto; margin-top: 4px; }
.terms summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.terms ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
table.kv { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; }
table.kv th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; }
table.kv td { padding: 6px 0; color: var(--ink-2); word-break: break-word; }
.token-once { white-space: pre-wrap; word-break: break-all; font-size: 15px; }
.docs-hero { color: #fff; padding: 48px 0 40px; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.docs-hero h1 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 6px; }
.docs-hero .lede { color: #c9e6e2; font-size: 17px; }
.docs { padding: 40px 0 80px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 40px; align-items: start; }
.docs-nav, .docs-toc { position: sticky; top: 84px; font-size: 14px; }
.docs-nav ul, .docs-toc ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.docs-nav a, .docs-toc a { display: block; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; }
.docs-nav a:hover, .docs-toc a:hover { background: var(--paper-2); text-decoration: none; }
.docs-nav a.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.docs-nav-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.docs-body { max-width: none; margin: 0; font-size: 16px; }
.docs-body h2, .docs-body h3 { scroll-margin-top: 84px; }
.prose pre.code { font-size: 13px; margin: 0 0 20px; }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th { text-align: left; background: var(--paper-2); color: var(--ink); font-weight: 600; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
@media (max-width: 1100px) { .docs-layout { grid-template-columns: 200px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 760px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; } }
footer.site.slim { padding: 24px 0; }
footer.site.slim .legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* Data tables (benchmarks) */
.table-wrap { overflow-x: auto; margin: 28px 0 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
table.data th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
.tiers .card h3 { margin-top: 4px; }
