/* usethreadbound.com. World: the app's wayfinding signage, at page scale. Tokens match app/ui/styles.css. */
:root {
  color-scheme: light dark;
  --rail: #0a3a8c;
  --spine: #082d6e;
  --rail-ink: #ffffff;
  --rail-muted: #c3d2ee;
  --thread: #f2e3c6;
  --ground: #ffffff;
  --wash: #f4f6fa;
  --ink: #141820;
  --muted: #4b5466;
  --hairline: #d9dee8;
  --accent: #0a4fc2;
  --accent-hover: #0844a8;
  --button: #eef1f6;
  --focus: #3b82f6;
  --stitch: #0a3a8c;
  --paper: #ffffff;
  --paper-ink: #141820;
  --paper-muted: #4b5466;
  --paper-line: #c9cfdb;
  --stop: #b3122b;
  --stop-tint: #fdeef0;
  --shadow: 0 1px 2px rgba(8, 29, 70, 0.10), 0 12px 32px rgba(8, 29, 70, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --spine-w: 0px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rail: #08295f;
    --spine: #061f49;
    --rail-muted: #a9bde4;
    --ground: #15181e;
    --wash: #1b1f27;
    --ink: #eef1f6;
    --muted: #a8b1c2;
    --hairline: #2c323d;
    --accent: #7fa9f5;
    --accent-hover: #a3c1f8;
    --button: #262b34;
    --focus: #6aa3ff;
    --stitch: #7fa9f5;
    --paper: #e4e0d6;
    --paper-line: #b9b4a6;
    --stop-tint: #f3dcdf;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}
@media (min-width: 900px) { :root { --spine-w: 56px; --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scrollbar-color: var(--rail) var(--ground); }
body {
  margin: 0;
  padding-left: var(--spine-w);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 0.12em; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: calc(var(--spine-w) + 16px); top: 12px; z-index: 10; background: var(--ground); color: var(--ink); padding: 8px 14px; border-radius: 7px; }

/* The spine: the book's sewn edge. It sews in as the page scrolls. */
.spine { display: none; }
@media (min-width: 900px) {
  .spine { display: block; position: fixed; inset: 0 auto 0 0; width: var(--spine-w); background: var(--spine); z-index: 5; }
  .spine::before, .spine::after { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; transform: translateX(-50%); }
  .spine::before { width: 4px; background: radial-gradient(circle at 50% 4px, rgba(255, 255, 255, 0.4) 0 1.6px, transparent 2px) 0 0 / 4px 24px repeat-y; }
  .spine::after { width: 3px; border-radius: 2px; background: repeating-linear-gradient(to bottom, var(--thread) 0 16px, transparent 16px 24px); }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .spine::after { animation: sew linear both; animation-timeline: scroll(root block); }
    @keyframes sew { from { clip-path: inset(0 0 92% 0); } to { clip-path: inset(0 0 0 0); } }
  }
}

/* Top bar */
.top { background: var(--rail); color: var(--rail-ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px var(--gutter); }
.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--rail-ink); text-decoration: none; }
.top ul { display: flex; gap: 4px; list-style: none; margin: 0 -12px 0 0; padding: 0; }
.top nav a { display: block; padding: 8px 12px; color: var(--rail-ink); font-size: 16px; font-weight: 500; text-decoration: none; border-radius: 7px; }
.top nav a:hover { background: rgba(255, 255, 255, 0.12); color: var(--rail-ink); }
.top nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top :focus-visible, .cover :focus-visible, .close :focus-visible, .foot :focus-visible { outline-color: #ffffff; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 7px; font-size: 17px; font-weight: 600; text-decoration: none; line-height: 1.2; }
.btn-thread { background: #ffffff; color: #08295f; }
.btn-thread:hover { background: #e6edfa; color: #08295f; }
.btn-accent { background: var(--accent); color: #ffffff; }
.btn-accent:hover { background: var(--accent-hover); color: #ffffff; }
@media (prefers-color-scheme: dark) { .btn-accent, .btn-accent:hover { color: #0b1220; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.plain-link { color: var(--rail-ink); font-weight: 500; }
.plain-link:hover { color: var(--rail-ink); }

/* Cover: the first viewport. The sample page lies on the blue and runs off its lower edge. */
.cover { color: var(--rail-ink); background: var(--rail); padding: 40px var(--gutter) 64px; }
.cover-in { max-width: 1120px; }
.cover h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; max-width: 17ch; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; max-width: 58ch; margin: 24px 0 28px; }
.cover-note { color: var(--rail-muted); font-size: 15px; max-width: 58ch; margin: 16px 0 0; }
.exhibit { display: grid; gap: 32px; max-width: 1120px; margin-top: 36px; }
.sheet-wrap { order: -1; }
.legend h2 { font-size: 22px; margin-bottom: 16px; }
.legend ol, .route { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.legend li { counter-increment: n; position: relative; padding-left: 40px; margin-bottom: 16px; color: var(--rail-muted); font-size: 16px; line-height: 1.45; max-width: 44ch; }
.legend li strong { color: var(--rail-ink); }
.legend li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; color: #08295f; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.sheet-wrap { margin: 0; min-width: 0; }
.sheet-wrap figcaption { color: var(--rail-muted); font-size: 14px; margin-top: 14px; }
@media (min-width: 1100px) {
  .cover { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 660px); grid-template-areas: "intro sheet" "legend sheet"; column-gap: 64px; align-items: start; padding-bottom: 0; }
  .exhibit { display: contents; }
  .cover-in { grid-area: intro; }
  .legend { grid-area: legend; margin-top: 48px; padding-bottom: 72px; }
  .sheet-wrap { grid-area: sheet; order: 0; margin-top: 8px; padding-bottom: 72px; }
  .cover h1 { font-size: clamp(2.75rem, 1rem + 2.9vw, 3.75rem); }
}

/* The sample PDF page. Paper, so it keeps its own colours in dark mode. */
.sheet { background: var(--paper); color: var(--paper-ink); border-radius: 3px; box-shadow: var(--shadow); padding: clamp(20px, 5vw, 44px) clamp(16px, 5vw, 48px) clamp(28px, 5vw, 56px); font-size: 13px; line-height: 1.45; }
.sheet p, .sheet dl { margin: 0; }
.sheet-kicker { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); }
.sheet-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 2px 0 12px !important; }
.sheet-meta { display: grid; grid-template-columns: 9em 1fr; gap: 3px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--paper-ink); }
.sheet-meta dt { color: var(--paper-muted); }
.sheet-meta dd { margin: 0; }
.sheet-table { width: 100%; border-collapse: collapse; margin-top: 14px; table-layout: fixed; }
.sheet-table th { text-align: left; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--paper-muted); padding: 0 10px 6px 0; border-bottom: 1px solid var(--paper-ink); }
.sheet-table th:nth-child(1) { width: 22%; }
.sheet-table th:nth-child(2) { width: 28%; }
.sheet-table td { vertical-align: top; padding: 9px 10px 10px 0; border-bottom: 1px solid var(--paper-line); position: relative; overflow-wrap: anywhere; }
.sheet-table td:first-child { color: var(--paper-muted); }
.sheet-detail { display: block; font-size: 12px; margin-top: 3px; }
.sheet-detail.muted { color: var(--paper-muted); }
.sheet-box { display: block; position: relative; margin-top: 6px; padding: 6px 9px; font-size: 12px; background: var(--stop-tint); border: 1px solid var(--stop); border-radius: 4px; }
.pin { position: absolute; left: -24px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--rail); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); }
.pin::before { content: attr(data-n); }
.sheet-detail .pin, .sheet-box .pin { top: 0; }
.sheet-box .pin { left: -34px; top: 5px; }
.sheet-detail { position: relative; }
@media (max-width: 560px) {
  .sheet { font-size: 11.5px; }
  .sheet-table th:nth-child(1) { width: 27%; }
  .sheet-table th:nth-child(2) { width: 31%; }
  .pin, .sheet-box .pin, .sheet-detail .pin { position: static; display: inline-grid; vertical-align: -3px; margin-right: 4px; width: 16px; height: 16px; font-size: 10.5px; box-shadow: none; }
}

/* Bands */
.band { padding: 88px var(--gutter) 24px; max-width: calc(1120px + 2 * var(--gutter)); }
.band-rule { padding-top: 64px; margin-top: 40px; position: relative; }
.band-rule::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); max-width: 1120px; height: 3px; background: repeating-linear-gradient(to right, var(--stitch) 0 16px, transparent 16px 24px); opacity: 0.55; border-radius: 2px; }
.band h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 32px; }
.band h3 { font-size: 20px; margin-bottom: 8px; }
.band-lede { font-size: 19px; max-width: 60ch; margin-top: -16px; margin-bottom: 28px; color: var(--muted); }

/* The route: three steps on a thread */
.route > li { counter-increment: n; position: relative; padding: 0 0 56px 60px; }
.route > li::before { content: counter(n); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--rail); color: #fff; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.route > li::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 4px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(to bottom, var(--stitch) 0 16px, transparent 16px 24px); }
.route > li:last-child { padding-bottom: 8px; }
.route > li:last-child::after { display: none; }
.route-text { max-width: 62ch; }
.shot { margin-top: 24px; width: min(100%, 820px); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow); }

/* Facts and audiences: text in columns, ruled, no boxes */
.facts { display: grid; gap: 32px 56px; margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.who { max-width: 860px; }
.who > div { display: grid; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.who > div:last-child { border-bottom: 1px solid var(--hairline); }
.who h3 { margin: 0; }
@media (min-width: 760px) { .who > div { grid-template-columns: 15em 1fr; } }
.facts dt { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--muted); max-width: 52ch; }
.who p { color: var(--muted); max-width: 52ch; margin: 0; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
.tiers-short { max-width: 860px; margin-bottom: 24px; }
.tiers-short th, .tiers-short td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid var(--hairline); }
.tiers-short tr:last-child > * { border-bottom: 1px solid var(--hairline); }
.tiers-short th { font-size: 20px; width: 11em; }
.tiers-short .num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; width: 4em; }
.tiers-short td:last-child { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; border: 1px solid currentColor; border-radius: 99px; vertical-align: middle; white-space: nowrap; color: var(--muted); }
@media (max-width: 640px) {
  .tiers-short, .tiers-short tbody, .tiers-short tr, .tiers-short th, .tiers-short td { display: block; width: auto; }
  .tiers-short th { padding-bottom: 4px; }
  .tiers-short td { border: 0; padding: 0 0 6px; }
  .tiers-short td:last-child { padding-bottom: 18px; }
}
.guide-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.guide-list li { padding: 18px 0; border-top: 1px solid var(--hairline); }
.guide-list a { font-size: 20px; font-weight: 600; }
.guide-list span { display: block; color: var(--muted); margin-top: 4px; }

/* Close */
.close { background: var(--rail); color: var(--rail-ink); margin-top: 96px; padding: 80px var(--gutter); }
.close-in { max-width: 1120px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .close-in { grid-template-columns: 160px 1fr; gap: 56px; } }
.close h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 16px; }
.close p { max-width: 58ch; color: var(--rail-muted); }
.close .actions { margin-top: 24px; }
.book { width: 128px; height: auto; }
.book .pg { fill: #ffffff; stroke: var(--rail-muted); stroke-width: 1; }
.book .cv { fill: #1a52b3; }
.book .sp { fill: var(--spine); }
.book .tl { stroke: var(--thread); stroke-width: 3; stroke-linecap: round; fill: none; }
.book .st { stroke: var(--thread); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 9 6; fill: none; }

/* Footer */
.foot { background: var(--spine); color: var(--rail-muted); padding: 48px var(--gutter) 56px; font-size: 15px; }
.read .foot { margin-top: 96px; }
.foot-in { max-width: 1120px; }
.foot-brand { color: var(--rail-ink); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 0; margin: 20px 0 24px; }
.foot a { color: var(--rail-ink); }
.fine { font-size: 13.5px; max-width: 78ch; margin-bottom: 8px; }

/* Reading pages: legal, support, pricing, guides */
.doc { padding: 64px var(--gutter) 0; max-width: calc(70ch + 2 * var(--gutter)); }
.doc-wide { max-width: calc(1040px + 2 * var(--gutter)); }
.doc-head { margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.02em; }
.doc-meta, .crumb { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.crumb { margin: 0 0 12px; }
.doc-lede { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 16px 0 0; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--stitch); font-weight: 700; }
.prose img { margin: 24px 0; border: 1px solid var(--hairline); border-radius: 10px; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; background: var(--wash); border: 1px solid var(--hairline); border-radius: 10px; }
.prose blockquote p:last-child { margin: 0; }
.prose code, .prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--wash); border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px; }
.doc-note { max-width: 70ch; margin-top: 48px; padding: 16px 20px; background: var(--wash); border: 1px solid var(--hairline); border-radius: 10px; font-size: 15px; color: var(--muted); }
.doc-note p { margin: 0; }
.doc-cta { margin: 32px 0 0; max-width: 62ch; }
.doc-cta .btn { margin-top: 12px; }
.every { max-width: 70ch; margin: 0 0 40px; padding-left: 1.2em; }
.every li { margin-bottom: 6px; }
.every li::marker { color: var(--stitch); }
.doc h2.sub { font-size: 24px; margin: 0 0 16px; }

/* Pricing comparison */
.table-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.tiers { min-width: 720px; font-size: 16px; }
.tiers th, .tiers td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--hairline); }
.tiers thead th { font-size: 20px; width: 22%; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.tiers thead td { border-bottom: 2px solid var(--ink); }
.tiers tbody th { font-weight: 500; width: 34%; }
.tiers tbody td { color: var(--muted); }
.tiers tfoot td { border-bottom: 0; padding-top: 20px; color: var(--muted); font-size: 15px; }
.price { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 8px; }
.per { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }

@media (max-width: 760px) {
  .table-scroll { overflow: visible; margin: 0; padding: 0; }
  .tiers { min-width: 0; }
  .tiers, .tiers thead, .tiers tbody, .tiers tfoot, .tiers tr, .tiers th, .tiers td { display: block; width: auto; }
  .tiers thead tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
  .tiers thead td, .tiers tfoot td:first-child { display: none; }
  .tiers thead th { width: auto; border: 0; padding: 0; font-size: 17px; }
  .tiers thead .tag { display: block; width: max-content; margin-top: 4px; }
  .price { font-size: 30px; }
  .tiers tbody tr, .tiers tfoot tr { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .tiers tbody th { width: auto; border: 0; padding: 0 0 6px; font-weight: 600; }
  .tiers td { border: 0; padding: 2px 0 2px 6.5em; position: relative; }
  .tiers td[data-tier]::before { content: attr(data-tier); position: absolute; left: 0; color: var(--ink); font-weight: 500; }
  .tiers tfoot td { padding-top: 2px; font-size: 16px; }
}

@media print {
  .spine, .top nav, .close, .foot ul { display: none; }
  body { padding: 0; }
}
