/* Arbiter Network Intelligence: the one stylesheet for every page.
   Tokens and scale follow docs/ni-marketing-site/BRIEF.md in the arbiter docs. */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fbfaf6;
  --band: #f3f0e8;
  --rail: #f8f6f1;
  --sheet: #fffefb;
  --ink: #1b1915;
  --ink-2: #45413a;
  --muted: #5e5a52;
  --line: #e4dfd3;
  --line-soft: #ece8de;
  --line-strong: #cfc8b8;
  --green: #1d4a30;
  --green-deep: #123220;
  --green-tint: #e6ede8;
  --on-green: #d9e3dc;
  --rule-weak: #8b857a;
  --amber: #8a6d1f;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: var(--green-deep); }

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

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; }
strong { font-weight: 600; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 920px; }
.wrap--text { max-width: 760px; }

/* ---------- type ---------- */

.display {
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.display--page { font-size: 56px; line-height: 1.06; }

.h2 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h2--wide { max-width: 18em; }
.h2--wider { max-width: 20em; }

.h3 { font-size: 30px; line-height: 1.2; }

.lede {
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

.body-lg {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--green { color: var(--green); font-weight: 500; }
.label--amber { color: var(--amber); font-weight: 500; }
.label--strong { font-weight: 500; }

.meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.meta--small { font-size: 12px; }

.step-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.btn--primary { background: var(--green); color: var(--page); }
.btn--primary:hover { background: var(--green-deep); color: var(--page); }
.btn--light { background: var(--page); color: var(--green); padding: 16px 24px; }
.btn--light:hover { background: var(--sheet); color: var(--green-deep); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__name { font-size: 24px; font-weight: 600; letter-spacing: 0.01em; }
.brand__sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-family: var(--sans);
  font-size: 14px;
}
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav .btn { font-size: 14px; padding: 12px 18px; }

/* ---------- sections ---------- */

.hero {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}
.hero__text { flex: 1 1 440px; min-width: 0; }
.hero__fig { flex: 1 1 460px; min-width: 0; }
.hero .btn-row { margin-top: 40px; }

.band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section { padding-top: 112px; }
.section--pad { padding-top: 112px; padding-bottom: 112px; }
.section--band { padding-top: 104px; padding-bottom: 104px; }
.section--ruled { border-top: 1px solid var(--line); }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.split--reverse { flex-wrap: wrap-reverse; }
.split--wide { gap: 64px; }
.split__text { flex: 1 1 360px; min-width: 0; }
.split__fig { flex: 1 1 520px; min-width: 0; }
.split__text--wide { flex-basis: 400px; }
.split__text--wide .body-lg { margin-top: 24px; }
.split__text .step-num + .h3 { margin-top: 8px; }
.split__fig--narrow { flex-basis: 460px; }
.split + .split { margin-top: 96px; }
.intro + .split { margin-top: 64px; }

.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- quote ---------- */

.quote {
  padding-top: 88px;
  padding-bottom: 88px;
  text-align: center;
}
.quote blockquote {
  font-size: 32px;
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
}
.quote__by {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.quote-split {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.quote-split blockquote {
  flex: 2 1 520px;
  min-width: 0;
  font-size: 30px;
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
}
.quote-split__by {
  flex: 1 1 280px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.quote-split__name { font-weight: 600; color: var(--ink); }
.quote-split__by p + p { margin-top: 4px; }
.quote-split__by .quote-split__use { margin-top: 16px; }

/* ---------- conversation panel ---------- */

.convo {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
.convo--raised { box-shadow: 0 24px 48px -30px rgba(27, 25, 21, 0.3); }
.convo__ask {
  display: flex;
  justify-content: flex-end;
}
.convo__ask p {
  background: var(--band);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 82%;
}
.convo__tool {
  margin: 20px 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.convo__reply {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.convo__reply p + p { margin-top: 14px; }
.convo__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- output cards ---------- */

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.card--lg { padding: 28px; }
.card__title { font-size: 24px; line-height: 1.25; }
.card--lg .card__title { font-size: 26px; }
.card__sub { margin-top: 4px; }
.card__head-label { margin-bottom: 14px; }
.card__head-label--path { margin-bottom: 16px; }
.card__foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.card__foot--small { font-size: 12px; }

.fit-label { margin: 20px 0 14px; }
.fit {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.fit li { display: flex; gap: 10px; }
.fit svg { flex: 0 0 16px; margin-top: 4px; }
.fit__name { font-weight: 600; }
.fit__why { margin-top: 2px; color: var(--ink-2); }
.fit sup {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--green);
}

.goal {
  margin-top: 18px;
  background: var(--band);
  border-radius: 6px;
  padding: 14px 16px;
}
.goal .label { margin-bottom: 4px; }
.goal__text { font-size: 15px; line-height: 1.5; font-style: italic; }

.values {
  background: var(--band);
  border-radius: 6px;
  padding: 18px 20px;
}
.values .label { margin-bottom: 6px; }

.guest-group { margin: 18px 0 4px; }
.goal + .guest-group { margin-top: 20px; }
.guests {
  list-style: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}
.guests li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.guests__name { font-weight: 500; }
.guests__note { color: var(--muted); }

/* Introduction paths: chips joined by a rule. */
.path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
}
.chip {
  background: var(--band);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.chip--lead { font-weight: 500; }
.chip--strong {
  background: var(--green-tint);
  border-color: var(--green-tint);
  color: var(--green);
  font-weight: 500;
}
.path__rule { flex: 0 1 48px; height: 1px; background: var(--green); }
.path__rule--weak { background: var(--rule-weak); }
.path__what { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tie-row + .tie-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

.tie {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: var(--page);
}
.tie .path__what { margin-top: 14px; font-size: 16px; }

.notes__head {
  margin: 18px 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.card__head-label + .notes__head { margin-top: 0; }
.notes {
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
}
.notes li + li { margin-top: 6px; }

/* ---------- home: three things ---------- */

.feature {
  margin-top: 56px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.feature__text { flex: 1 1 340px; min-width: 0; }
.feature__fig { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature .h3 { font-size: 32px; letter-spacing: -0.01em; }
.feature .body-lg { margin-top: 18px; }

.pair {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}
.pair > article {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pair .card { flex: 1 1 auto; }
.pair h3 { margin: 24px 0 8px; font-size: 24px; }
.pair--three > article { flex-basis: 320px; }
.pair .pair__eyebrow { margin: 24px 0 0; }
.pair .pair__eyebrow + h3 { margin-top: 8px; }
.pair__body { font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* ---------- audiences ---------- */

.audiences {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.audience {
  flex: 1 1 360px;
  min-width: 0;
  display: block;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
  text-decoration: none;
  color: var(--ink);
}
.audience:hover { color: var(--ink); border-color: var(--line-strong); }
.audience .eyebrow { margin-bottom: 0; }
.audience__claim { margin-top: 16px; font-size: 28px; line-height: 1.3; }
.audience__who { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.audience__go {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}
.audience:hover .audience__go { text-decoration: underline; }

/* ---------- how to start ---------- */

.steps {
  margin-top: 48px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.steps li {
  flex: 1 1 280px;
  min-width: 0;
  border-top: 2px solid var(--green);
  padding-top: 20px;
}
.steps h3 { margin: 8px 0; font-size: 22px; }
.steps p:last-child { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- small facts grid ---------- */

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}
.facts > div { flex: 1 1 240px; min-width: 0; }
.facts h3 { margin-bottom: 6px; font-size: 19px; font-weight: 600; }
.facts p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.facts--ruled { border-top: 1px solid var(--line); padding-top: 56px; }

/* ---------- trust ---------- */

.trust { border-top: 1px solid var(--line); background: var(--rail); }
.trust .wrap {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.trust__intro { flex: 1 1 320px; min-width: 0; }
.trust__intro h2 { font-size: 34px; letter-spacing: -0.01em; line-height: 1.2; }
.trust__intro p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.trust__body { flex: 2 1 560px; min-width: 0; }
.scope {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- demo band ---------- */

.demo-band { background: var(--green); color: var(--page); }
.demo-band .wrap {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.demo-band__text { flex: 1 1 480px; min-width: 0; }
.demo-band h2 { font-size: 48px; line-height: 1.1; letter-spacing: -0.015em; }
.demo-band p {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-green);
  max-width: 32em;
}
.demo-band :focus-visible { outline-color: var(--page); }

/* ---------- footer ---------- */

.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.site-footer__links { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- case study ---------- */

.hero--solo .hero__text { max-width: 880px; }
.btn--quiet { color: var(--ink); border-color: var(--line-strong); }
.btn--quiet:hover { color: var(--ink); border-color: var(--ink-2); }

.stats {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}
.stat { flex: 1 1 320px; min-width: 0; }
.stat__figure { font-size: 44px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 500; color: var(--green); }
.stat__what { margin-top: 10px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.quote__more { margin-top: 16px; font-family: var(--sans); font-size: 14px; font-weight: 500; }

.cs-section { border-top: 1px solid var(--line); }
.cs-row {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.cs-row__head { flex: 1 1 320px; min-width: 0; }
.cs-row__head .eyebrow { margin-bottom: 12px; }
.cs-row__title { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.cs-row__body { flex: 2 1 560px; min-width: 0; }
.prose p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.prose p + p { margin-top: 18px; }
.facts--two > div { flex-basis: 260px; }

/* ---------- long-form pages ---------- */

.doc { padding-top: 88px; padding-bottom: 112px; }
.doc h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.015em; }
.doc p { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.doc p.doc__meta { margin-top: 12px; font-family: var(--sans); color: var(--muted); font-size: 13px; }
.doc h2 { margin-top: 48px; font-size: 24px; line-height: 1.3; }
.doc h3 { margin-top: 28px; font-size: 19px; font-weight: 600; }
.doc h2 + p, .doc h3 + p { margin-top: 12px; }
.doc ul { margin-top: 16px; padding-left: 22px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.doc li + li { margin-top: 6px; }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .display, .display--page { font-size: 40px; line-height: 1.08; }
  .h2 { font-size: 30px; }
  .h3, .feature .h3 { font-size: 25px; }
  .lede { font-size: 19px; }
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  .section { padding-top: 80px; }
  .section--pad, .section--band { padding-top: 80px; padding-bottom: 80px; }
  .split + .split { margin-top: 72px; }
  .intro + .split { margin-top: 48px; }
  .quote, .quote-split { padding-top: 64px; padding-bottom: 64px; }
  .quote blockquote, .quote-split blockquote { font-size: 24px; }
  .feature { padding: 24px; gap: 32px; margin-top: 40px; }
  .convo, .card--lg { padding: 20px; }
  .card { padding: 20px; }
  .audience { padding: 28px; }
  .audience__claim { font-size: 23px; }
  .trust .wrap, .demo-band .wrap { padding-top: 72px; padding-bottom: 72px; }
  .trust__intro h2 { font-size: 28px; }
  .demo-band h2 { font-size: 36px; }
  .demo-band p { font-size: 17px; }
  .doc { padding-top: 56px; padding-bottom: 80px; }
  .doc h1 { font-size: 36px; }
  .stat__figure { font-size: 34px; }
  .stats { padding-top: 48px; padding-bottom: 48px; }
  .cs-row { padding-top: 56px; padding-bottom: 56px; }
  .cs-row__title { font-size: 25px; }
  .nav { gap: 10px 20px; }
}
