/* PathReader Trust Center.
   Geist for text, Geist Mono for breadcrumbs and small labels. Two weights (400 and 600), never italic.
   Palette is fixed: canvas, ink, accent, secondary text and the derived neutrals below.
   Status is distinguished by fill and lightness, never by hue alone. */

/* Self-hosted (SIL Open Font License; /fonts/OFL-Geist.txt): no request to a third-party font service. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-var.woff2") format("woff2");
}
:root {
  --canvas: #f8fafc;
  --ink: #090d1a;
  --accent: #0047ab;
  --muted: #5b6577;
  --border: #e2e8f0;
  --control: #cbd5e1;
  --thead: #eef2f7;
  --placeholder: #94a3b8;
  --tint: #e8eefb;
  --white: #ffffff;
  --gutter: 80px;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
}

/* Breadcrumbs and small labels use the mono face. */
.banner,
.eyebrow,
thead th,
.status,
.doc-meta,
tbody td::before { font-family: var(--font-mono); }

/* Never italic, anywhere. */
i, em, cite, dfn, address, var { font-style: normal; }

a { color: var(--accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--accent);
  padding: 12px 16px;
  border: 1px solid var(--accent);
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

.banner {
  margin: 0;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ─────────────────────────────────────────────── */
/* Shared site bar: matches the pathreader.ai homepage nav (dark), with 44px targets. */
header.site {
  background: #090d1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
nav.site ul { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
nav.site a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
nav.site a:hover { text-decoration: underline; }
nav.site a[href^="mailto:"] { font-family: var(--font-mono); color: #cbd5e1; font-size: 14px; }
nav.site a.nav-cta {
  background: #ffffff;
  color: #090d1a;
  border-radius: 9999px;
  padding: 0 20px;
  font-weight: 600;
  margin-left: 8px;
}
nav.site a.nav-cta:hover { background: #f8fafc; text-decoration: none; }
nav.site a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #ffffff;
  font-weight: 600;
}
header.site a:focus-visible { outline-color: #ffffff; }
header.site { position: relative; }
nav.site li.nav-menu { display: none; }
nav.site .nav-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: #f8fafc; font-size: 14px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9999px; white-space: nowrap; }
nav.site .nav-menu summary::-webkit-details-marker { display: none; }
nav.site .nav-menu summary::after { content: " \25BE"; }
nav.site .nav-menu details[open] summary::after { content: " \25B4"; }
nav.site .nav-menu summary:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
nav.site .nav-menu details > ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; display: block; margin: 0; padding: 4px 16px 12px; background: #090d1a; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
nav.site .nav-menu details > ul a { display: flex; padding: 0 4px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
nav.site .nav-menu details > ul li:first-child a { border-top: 0; }
@media (max-width: 640px) {
  nav.site li.nav-anchor { display: none; }
  nav.site li.nav-menu { display: block; }
}
@media (max-width: 640px) {
  .wordmark { font-size: 12px; letter-spacing: 0.1em; }
  .wordmark .sub { display: none; }
  nav.site li.nav-mail { display: none; }
}

/* ── Bands ──────────────────────────────────────────────── */
main { display: block; }
.band {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.band-alt { background: var(--canvas); }
.band.hero { padding: 72px 0 56px; }
.band:last-of-type { border-bottom: 0; }

/* ── Type ───────────────────────────────────────────────── */
h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 20ch;
}
h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 20px;
}
h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 16px; max-width: 68ch; }
.muted { color: var(--muted); }
.bracket { font-weight: 400; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow a.back {
  color: var(--accent);
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: background-color 0.15s ease;
}
.eyebrow a.back:hover { background: var(--tint); }
.eyebrow.page-end { margin: 40px 0 0; }
@media (prefers-reduced-motion: reduce) { .eyebrow a.back { transition: none; } }
ul.plain { margin: 0 0 16px; padding-left: 20px; max-width: 68ch; }
ul.plain li { margin-bottom: 8px; }
ul.plain > li > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.glance {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}
.band.hero .glance { background: var(--canvas); }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.glance li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ── Cards ──────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}
.card p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: none; }
.card h3 { margin-bottom: 4px; }
.card h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.card h3 a:hover { text-decoration: underline; }
/* The whole card is the link target; the title link stretches over it. */
.cards .card { position: relative; transition: border-color 0.15s ease; }
.cards .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.cards .card h3 a:focus-visible { outline: 0; }
.cards .card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.cards .card:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cards .card { transition: none; } }
.card .card-note { color: var(--ink); }

/* A plain callout: no border inside a card, whitespace does the separating. */
.note {
  background: var(--tint);
  border: 1px solid var(--control);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 0 0 20px;
  max-width: 88ch;
}
.note p { font-size: 14px; line-height: 1.6; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 88ch; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; }

.field-error { color: #b91c1c; font-size: 14px; margin: 6px 0 0; }
.req { color: #b91c1c; font-weight: 600; }
.req-note { font-size: 14px; margin: 0 0 12px; }
/* Agreement text inside the terms box */
.terms h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
h2.terms-heading { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.terms .terms-title { font-weight: 600; margin-bottom: 4px; }
.terms .terms-version { color: var(--ink); font-size: 14px; margin-bottom: 16px; }
.terms ul { margin: 0 0 12px; padding-left: 20px; }
.terms li { margin-bottom: 6px; }
.terms strong { font-weight: 600; }
.terms .fill { background: var(--tint); border-radius: 3px; padding: 0 3px; }
.terms .sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 12px 0; }
.terms .sign-party { font-weight: 600; margin-bottom: 4px; }
.terms .terms-end { font-weight: 600; margin-top: 16px; }

/* ── Dark CTA band ──────────────────────────────────────── */
.band-dark {
  background: var(--ink);
  border-bottom: 0;
  padding: 52px 0;
}
.band-dark .cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band-dark h2 { color: var(--white); margin-bottom: 8px; }
.band-dark p { color: var(--white); font-size: 14px; margin: 0; }
.cta-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 24px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.cta-button:hover { text-decoration: underline; }

/* ── Data-flow band ─────────────────────────────────────── */
.flow { margin: 0 0 20px; }
.flow ol { list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; padding: 0; }
.flow li {
  flex: 1 1 220px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  padding: 22px;
  font-size: 14px;
  line-height: 1.6;
}
.band-alt .flow li { background: var(--white); }
.flow li .step { display: block; font-weight: 600; margin-bottom: 4px; }
.flow li .detail { color: var(--muted); }
.flow .arrow { align-self: center; flex: 0 0 auto; color: var(--muted); font-size: 14px; padding: 0 4px; border: 0; background: none; }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { margin: 0 0 20px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}
caption { text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 12px; }
th, td { text-align: left; vertical-align: top; padding: 14px; border-bottom: 1px solid var(--border); }
thead th {
  background: var(--thead);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--control);
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th[scope="row"] { font-weight: 600; }

/* Fill and lightness, never hue alone. */
.status {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--control);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
.status-progress { background: var(--accent); border-color: var(--accent); color: var(--white); font-weight: 600; }
.status-planned { background: var(--white); color: var(--ink); }

/* ── Forms ──────────────────────────────────────────────── */
fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 22px; margin: 0 0 20px; background: var(--white); }
.band-alt fieldset { background: var(--white); }
legend { font-weight: 600; padding: 0 8px; font-size: 14px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 520px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--control);
  border-radius: 6px;
}
.checkbox { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; max-width: 68ch; }
.checkbox input { width: 24px; height: 24px; margin: 10px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.checkbox label { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.6; display: flex; align-items: center; min-height: 44px; }

.terms {
  height: 300px;
  overflow-y: auto;
  border: 1px solid var(--control);
  border-radius: 6px;
  background: var(--white);
  padding: 22px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 88ch;
}

button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
}
button[disabled] { background: var(--white); color: var(--muted); border-color: var(--control); cursor: not-allowed; font-weight: 400; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 20px; }

/* ── Package contents ───────────────────────────────────── */
.doc-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.doc-list li { border: 1px solid var(--border); border-radius: 6px; background: var(--white); padding: 22px; }
.candidates .doc-list li { border: 1px dashed var(--placeholder); background: transparent; }
.doc-list p { font-size: 14px; line-height: 1.6; max-width: none; }
.doc-title { font-weight: 600; margin-bottom: 4px; }
.doc-meta { color: var(--muted); font-size: 13px; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--border); background: var(--white); }
footer.site .wrap { padding-top: 40px; padding-bottom: 48px; }
footer.site p { font-size: 14px; margin-bottom: 8px; }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; font-size: 14px; }
footer.site li { min-height: 44px; display: flex; align-items: center; }
footer.site li a { display: inline-flex; align-items: center; min-height: 44px; }

[hidden] { display: none !important; }

/* ── Narrow ─────────────────────────────────────────────── */
@media (max-width: 1080px) { :root { --gutter: 40px; } }

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  h1 { font-size: 34px; letter-spacing: -0.015em; max-width: none; }
  h2 { font-size: 24px; }
  .band { padding: 44px 0; }
  .band.hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Tables stack; the page body never scrolls sideways. */
  table, tbody, tr, td { display: block; width: 100%; }
  table { border: 0; background: transparent; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; }
  tbody th[scope="row"] { display: block; background: var(--thead); border-bottom: 1px solid var(--control); }
  tbody td { border-bottom: 1px solid var(--border); }
  tbody tr td:last-child { border-bottom: 0; }
  tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .flow .arrow { display: none; }
  .band-dark .cta { flex-direction: column; align-items: flex-start; }
}

/* Shared footer row */
footer.site .footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
footer.site .footer-row p { margin: 0; }
footer.site .page-updated { margin: 0; padding-top: 24px; }
footer.site .page-updated + .footer-row, footer.site .wrap + .footer-row { padding-top: 12px; }
