/* Origin Neural — shared design system
   Restrained, evidence-forward. Built for technical and executive readers. */

:root {
  --ink: #0e1a23;
  --ink-soft: #55636e;
  --paper: #f6f8f9;
  --surface: #ffffff;
  --surface-alt: #eef2f4;
  --line: #dde4e9;
  --line-strong: #c3ced6;

  --accent: #0f5d75;
  --accent-dark: #0a4152;
  --accent-wash: #e7f1f4;

  --verified: #17654a;
  --verified-wash: #e6f2ec;
  --amber: #8a6b20;
  --amber-wash: #fdf6e3;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16px;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.narrow { max-width: 780px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 60; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 68px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand strong { font-size: 0.98rem; letter-spacing: 0.07em; text-transform: uppercase; }
.brand span { color: var(--ink-soft); font-size: 0.75rem; letter-spacing: 0.01em; }

nav { display: flex; align-items: center; gap: 22px; }

nav a {
  text-decoration: none; font-size: 0.9rem; color: var(--ink-soft);
  transition: color 0.15s ease;
}
nav a:hover { color: var(--ink); }

.nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; text-decoration: none; font-weight: 650;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-cta { padding: 9px 15px; background: var(--accent); color: #fff; font-size: 0.88rem; }
.nav-cta:hover, .button.primary:hover { background: var(--accent-dark); }

.menu-button {
  display: none; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 7px; padding: 9px 13px; font: inherit; cursor: pointer; color: var(--ink);
}

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.16; margin-top: 0; }

h1 {
  font-size: clamp(2.15rem, 4.7vw, 3.5rem);
  letter-spacing: -0.038em;
  max-width: 20ch;
  margin-bottom: 22px;
  font-weight: 700;
}

h1.wide { max-width: 26ch; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-weight: 700;
}

h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 650; }

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 15px;
}

.lead {
  max-width: 72ch;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.section-intro {
  max-width: 72ch; color: var(--ink-soft);
  margin-bottom: 30px; font-size: 1.02rem;
}

.mono { font-family: var(--mono); font-size: 0.84em; letter-spacing: -0.01em; }

/* ---------- layout ---------- */
section { padding: 66px 0; border-bottom: 1px solid var(--line); }

.hero {
  padding: 84px 0 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button { min-height: 47px; padding: 0 22px; border: 1px solid var(--line-strong); background: var(--surface); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.secondary:hover { background: var(--surface-alt); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

.card .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 11px;
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}

.stat strong {
  display: block; font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.05; margin-bottom: 7px;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}

.stat span { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.02em;
}

.chip.verified { background: var(--verified-wash); color: var(--verified); }
.chip.sealed { background: var(--accent-wash); color: var(--accent); }

.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px; background: var(--surface-alt);
}

.callout.verified { border-left-color: var(--verified); background: var(--verified-wash); }
.callout.flag { border-left-color: var(--amber); background: var(--amber-wash); }
.callout strong { display: block; margin-bottom: 7px; }
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--ink-soft); }

.placeholder {
  background: var(--amber-wash);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px; color: #6b5416;
}
.placeholder strong { display: block; margin-bottom: 7px; color: #4f3d0e; }
.placeholder p:last-child { margin-bottom: 0; }

/* ---------- risk blocks ---------- */
.risk {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 21px 23px; margin-bottom: 12px;
}
.risk h3 { margin-bottom: 5px; }
.risk p { color: var(--ink-soft); margin: 0; }
.risk p + p { margin-top: 9px; }
.risk .response { color: var(--ink); }
.risk .response strong { color: var(--accent); }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}

table { width: 100%; border-collapse: collapse; min-width: 620px; }

th, td { text-align: left; padding: 13px 17px; border-bottom: 1px solid var(--line); }

th {
  background: var(--surface-alt); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 750;
  white-space: nowrap;
}

td.num { font-variant-numeric: tabular-nums; }
td.hash { font-family: var(--mono); font-size: 0.78rem; word-break: break-all; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }

/* ---------- code ---------- */
pre {
  background: var(--ink); color: #dfe7ec;
  border-radius: var(--radius); padding: 20px 22px;
  overflow-x: auto; font-family: var(--mono);
  font-size: 0.8rem; line-height: 1.65; margin: 0;
}

pre .c { color: #7e93a1; }
pre .k { color: #6fc3df; }
pre .s { color: #a3d9a5; }

code.inline {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--surface-alt); padding: 2px 6px;
  border-radius: 4px; border: 1px solid var(--line);
  word-break: break-all;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }

.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px 22px 62px; position: relative;
}

.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 21px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 800;
}

.step p:last-child { margin-bottom: 0; }
.step p { color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 0 19px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; }
.faq p { color: var(--ink-soft); margin-top: 0; padding-bottom: 16px; }

/* ---------- contact + footer ---------- */
.contact { background: var(--ink); color: #fff; border-bottom: 0; }
.contact p, .contact .section-intro { color: #b9c6cf; }
.contact .eyebrow { color: #7fc0d4; }
.contact .button.secondary { background: transparent; color: #fff; border-color: #46545f; }
.contact .button.secondary:hover { background: rgba(255,255,255,0.07); }

footer { padding: 30px 0; background: #08121a; color: #9dabb5; font-size: 0.86rem; }
.footer-row { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-row a { color: #cfd9e0; text-decoration: none; }

cite {
  display: block; font-size: 0.83rem; color: var(--ink-soft);
  font-style: normal; margin-top: 12px;
}
cite a { color: var(--accent); }

/* ---------- legal documents ---------- */
.legal { padding: 54px 0 72px; border-bottom: 0; }
.legal .doc { max-width: 78ch; }

.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: none; margin-bottom: 10px;
}

.legal .effective {
  color: var(--ink-soft); font-size: 0.92rem;
  padding-bottom: 20px; margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-size: 1.16rem; margin: 36px 0 10px;
  letter-spacing: -0.01em; scroll-margin-top: 90px;
}

.legal h2 .n { color: var(--accent); margin-right: 9px; font-variant-numeric: tabular-nums; }

.legal p, .legal li { color: #33424e; font-size: 0.97rem; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }

.legal dl { margin: 0 0 14px; }
.legal dt { font-weight: 700; margin-top: 12px; font-size: 0.95rem; }
.legal dd { margin: 2px 0 0; color: #33424e; font-size: 0.95rem; }

.legal .caps {
  text-transform: uppercase; font-size: 0.88rem;
  letter-spacing: 0.01em; color: #33424e;
}

.doc-nav {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 34px;
}
.doc-nav strong { display: block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 10px; }
.doc-nav a { color: var(--accent); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.doc-nav a + a { margin-left: 18px; }
.doc-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.review-flag {
  background: var(--amber-wash); border: 1px dashed var(--amber);
  border-radius: 8px; padding: 15px 18px; margin: 14px 0 18px;
  color: #6b5416; font-size: 0.9rem;
}
.review-flag strong { display: block; margin-bottom: 4px; color: #4f3d0e; font-size: 0.86rem;
  text-transform: uppercase; letter-spacing: 0.07em; }
.review-flag p { color: #6b5416; font-size: 0.9rem; margin: 0; }
.review-flag p + p { margin-top: 7px; }

.legal-banner {
  background: var(--amber-wash); border-bottom: 1px solid var(--amber);
  padding: 15px 0; color: #5c4712; font-size: 0.92rem;
}
.legal-banner strong { color: #4f3d0e; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .stats, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .container { width: min(100% - 28px, var(--max)); }
  .menu-button { display: inline-block; }

  nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    padding: 14px 22px 20px; background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
  }

  nav.open { display: flex; }
  nav a { padding: 7px 0; }

  .hero { padding: 56px 0 44px; }
  section { padding: 48px 0; }
  .grid-2, .stats, .grid-4 { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}
