/* Call Ledger product site.
   Idea: a QA reviewer's scorecard. Ballpoint ink, a highlighter and a red pen on white paper and a cool desk.
   One family (Archivo, self-hosted, OFL) used at two widths: expanded for headings and numbers, normal for reading. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d2b53;      /* ballpoint blue: headings, buttons, circled marks */
  --ink-2: #2b4c9b;    /* links, hover */
  --text: #2b3142;     /* body copy */
  --muted: #586079;
  --paper: #ffffff;
  --desk: #eceff5;
  --rule: #c9d1e1;
  --rule-soft: #e2e7f0;
  --mark: #ffe14a;     /* highlighter */
  --red: #b3263a;      /* red pen */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-stretch: 100%;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-stretch: 116%; }
h1 { font-size: clamp(2.25rem, 1.15rem + 3.9vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.625rem); line-height: 1.1; font-weight: 780; letter-spacing: -0.012em; text-wrap: balance; }
h3 { font-size: 1.3125rem; line-height: 1.25; font-weight: 720; font-stretch: 106%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--mark); color: var(--ink); }
[id] { scroll-margin-top: 88px; }
strong { color: var(--ink); font-weight: 680; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 650; }
.skip:focus { top: 12px; color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--rule-soft); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1.1875rem; font-weight: 760; font-stretch: 122%; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 13px; flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 520; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--desk); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: inherit; font-size: 16px; font-weight: 660; font-stretch: 104%; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 15px; font-size: 15px; }
.site-head .btn { flex: none; }

/* ---------- hero ---------- */
.hero { background: var(--desk); padding: 64px 0 96px; }
.hero h1 { max-width: 19ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; margin-top: 48px; align-items: start; }
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.note { font-size: 15px; color: var(--muted); }

/* the scorecard sheet: a pad of forms, the front one live */
.pad { isolation: isolate; padding: 0 7px 7px 0; }
.sheet { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.sheet::before { content: ""; position: absolute; inset: -1px; transform: translate(7px, 7px); z-index: -1; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding: 22px 28px 14px; border-bottom: 1px solid var(--rule); }
.sheet-title { font-size: 1.125rem; font-weight: 720; font-stretch: 108%; letter-spacing: 0; }
.sheet-sub { margin: 0; font-size: 14px; color: var(--muted); }
.rubric { padding: 0 28px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 6px 0; border-bottom: 1px solid var(--rule-soft); }
.sk { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.3; }
.wt { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.opts { display: flex; gap: 2px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; padding: 0 11px;
  border: 2px solid transparent; border-radius: 47% 53% 45% 55% / 58% 46% 54% 42%;
  color: var(--muted); font-size: 14px; white-space: nowrap;
}
.opt b { color: var(--ink); font-size: 15px; font-weight: 800; font-stretch: 112%; }
.opt input:hover + span { background: var(--desk); }
.opt input:checked + span { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--ink-2); outline-offset: 2px; }

.tally { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 22px; margin: 0 28px; padding: 18px 0 24px; border-top: 3px double var(--ink); }
.tally-num {
  grid-row: span 2; margin: 0;
  font-size: 64px; line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 100% 34%;
  padding: 0 4px; min-width: 3.2ch;
}
.tally-num.sweep { background-size: 0% 34%; }
@media (prefers-reduced-motion: no-preference) {
  .tally-num.go { transition: background-size 0.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
}
.tally-live { margin: 0; align-self: end; }
.status { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.status.good { background: var(--ink); color: #fff; }
.status.ok { background: var(--mark); color: var(--ink); }
.status.bad { background: var(--red); color: #fff; }
.status.none { background: var(--desk); color: var(--muted); }
.tally-calc { margin: 0; align-self: start; font-size: 14px; color: var(--muted); }
.sheet-foot { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-desk { background: var(--desk); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; font-size: 1.1875rem; line-height: 1.55; max-width: 60ch; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }

/* what it does: ledger entries, caption left and screenshot right */
.entry { display: grid; grid-template-columns: minmax(0, 3.5fr) minmax(0, 8.5fr); gap: 56px; align-items: start; padding: 44px 0; border-top: 1px solid var(--rule); }
.entry:last-child { padding-bottom: 0; }
.entry h3 { margin-bottom: 12px; }
.entry-text { max-width: 40ch; }
.shot { margin: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--desk); }
.shot-link { display: block; cursor: zoom-in; }
.shot-link:focus-visible { outline-offset: -4px; }
.phone { margin: 28px 0 0; width: 200px; }
.phone .shot { border-radius: 16px; }
.phone figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* features: a ruled list in two columns */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 24px; padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.feature dt { color: var(--ink); font-weight: 700; font-stretch: 106%; line-height: 1.4; }
.feature dd { margin: 0; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; margin-bottom: 18px; color: var(--ink); font-size: 60px; line-height: 1; font-weight: 800; font-stretch: 125%; }
.steps h3 { margin-bottom: 10px; }
.steps p { max-width: 38ch; }
.file { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.price-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.plan { display: flex; flex-direction: column; padding: 32px 32px 30px; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan-for { margin: 10px 0 0; color: var(--text); }
.price { margin: 26px 0 0; display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.amount { font-size: 64px; line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.per { font-size: 16px; color: var(--muted); }
.plan .btn { margin-top: 26px; align-self: stretch; }
.plan-body { flex: 1; }
.included { grid-column: 1 / -1; padding: 24px 32px 28px; border-top: 1px solid var(--rule); }
.included h3 { font-size: 1.0625rem; font-stretch: 104%; margin-bottom: 10px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 2px; background: var(--ink); }
.fine { margin-top: 22px; font-size: 15px; color: var(--muted); }
.aside-block { padding-top: 22px; border-top: 3px solid var(--ink); }
.aside-block + .aside-block { margin-top: 44px; }
.aside-block h3 { margin-bottom: 10px; }

/* questions: visible answers, ruled like the scorecard */
.faq-head p { margin-top: 18px; color: var(--muted); max-width: 30ch; }
@media (min-width: 1041px) { .faq-head { position: sticky; top: 100px; } }
.faq { margin: 0; }
.qa { padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa dt { color: var(--ink); font-size: 1.1875rem; line-height: 1.35; font-weight: 680; font-stretch: 104%; }
.qa dd { margin: 8px 0 0; max-width: 66ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #d3d9e8; padding: 64px 0 40px; font-size: 15px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--mark); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.site-foot .brand { color: #fff; }
.foot-about { margin-top: 14px; max-width: 36ch; }
.foot-h { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 700; font-stretch: 106%; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 3px 0; }
.foot-fine { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: #b9c1d8; font-size: 14px; }

/* ---------- policy pages ---------- */
.doc { padding: 64px 0 104px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: 100px; padding-top: 18px; border-top: 3px solid var(--ink); }
.doc-nav ul { list-style: none; margin: 0; padding: 0; }
.doc-nav li a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.doc-nav li a:hover { color: var(--ink); text-decoration: underline; }
.doc-nav li a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.doc-nav p { margin-top: 18px; font-size: 15px; color: var(--muted); }
.doc-body { max-width: 68ch; }
.doc-body h1 { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); }
.updated { margin: 14px 0 40px; color: var(--muted); }
.doc-body h2 { margin: 44px 0 12px; font-size: 1.375rem; font-weight: 720; font-stretch: 108%; letter-spacing: 0; }
.doc-body ul { margin: 0 0 1em; padding-left: 1.25em; }
.doc-body li { margin: 0.35em 0; }
.callout { margin: 0 0 32px; padding: 20px 24px; background: var(--desk); border-left: 4px solid var(--ink); border-radius: 0 4px 4px 0; }
.callout p { font-size: 1.0625rem; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid, .entry, .split, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 40px; }
  .entry { gap: 28px; }
  .entry-text, .lede { max-width: 60ch; }
  .split { gap: 32px; }
  .pricing-grid { gap: 48px; }
  .aside-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .aside-block + .aside-block { margin-top: 0; }
  .phone { width: 180px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .site-head .btn { margin-left: auto; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc-nav { position: static; }
  .doc-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .head-row { min-height: 60px; gap: 12px; }
  .brand { font-size: 1.0625rem; gap: 9px; }
  .brand-mark { width: 34px; height: 11px; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { margin-top: 28px; }
  .lede { font-size: 1.0625rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 1.0625rem; }
  .sheet-head { padding: 18px 16px 12px; }
  .rubric { padding: 0 16px; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
  .opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .opt span { padding: 0 4px; font-size: 13.5px; }
  .tally { margin: 0 16px; gap: 4px 16px; }
  .tally-num { font-size: 52px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .price-sheet { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 26px 20px; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .included { padding: 22px 20px 24px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .amount { font-size: 56px; }
  .aside-wrap { grid-template-columns: minmax(0, 1fr); }
  .aside-block + .aside-block { margin-top: 8px; }
  .qa dt { font-size: 1.0625rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc { padding: 40px 0 72px; }
}
@media (max-width: 380px) {
  .opt span { font-size: 12.5px; gap: 3px; }
  .opt b { font-size: 14px; }
}
@media (max-width: 359px) {
  .site-head .brand-mark { display: none; }
  .site-head .btn { padding: 0 10px; font-size: 14px; }
}
