/* Invoice Ledger — home page, v3 (2026-11-01).
   Idea: a columnar accounting pad. Green ruled paper, blue-black ink,
   red ink only for what the ledger refuses, a double rule under the total.
   Self-hosted Public Sans, no JS. */
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --page: #f7f9f5;
  --pad: #e6efe0;
  --paper: #fffffb;
  --ink: #1b2a47;
  --ink-2: #4c5a70;
  --rule: #b9d0b3;
  --rule-soft: #d6e3d1;
  --red: #b4321f;
  --mark: #f6e57c;
  --btn: #1b2a47;
  --btn-ink: #ffffff;
  --margin: 220px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #101a16;
    --pad: #15241d;
    --paper: #fbfbf4;
    --ink: #e4ece1;
    --ink-2: #a8b8ad;
    --rule: #2f4a3b;
    --rule-soft: #22362c;
    --red: #f07b67;
    --mark: #f6e57c;
    --btn: #e4ece1;
    --btn-ink: #101a16;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #101a16; --pad: #15241d; --paper: #fbfbf4; --ink: #e4ece1; --ink-2: #a8b8ad;
  --rule: #2f4a3b; --rule-soft: #22362c; --red: #f07b67; --btn: #e4ece1; --btn-ink: #101a16;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.6 "Public Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
code { font: .88em/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--rule-soft); padding: .1em .35em; border-radius: 3px; }
strong { font-weight: 650; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; max-width: 22ch; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--paper); color: #1b2a47; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-block; padding: .8em 1.3em; border-radius: 6px; font-weight: 650; text-decoration: none; border: 1.5px solid var(--btn); line-height: 1.2; }
.btn.primary { background: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { background: transparent; color: var(--ink); }
.btn.ghost { color: var(--ink); }
.btn.ghost:hover { background: var(--btn); color: var(--btn-ink); }
.btn.small { padding: .5em .95em; font-size: .92rem; }
.btn.big { padding: 1em 1.6em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: .9rem; color: var(--ink-2); }

/* Nav */
.topnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--pad) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.navrow { display: flex; align-items: center; gap: 28px; min-height: 62px; }
.brandlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; color: var(--ink); }
.navlinks { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.navlinks a { text-decoration: none; color: var(--ink-2); }
.navlinks a:hover { color: var(--ink); }

/* Hero: the green pad, with column rules running down the page */
.hero {
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, var(--rule-soft) 119px 120px),
    var(--pad);
  border-bottom: 1px solid var(--rule);
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px);
}
.herogrid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.1rem + 3vw, 3.3rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 760; max-width: 17ch; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin-top: 22px; max-width: 46ch; }

/* The desk: an invoice sheet, and the pad row it becomes */
.desk { margin: 0; position: relative; padding-bottom: 8px; }
.invoice {
  background: var(--paper); color: #1b2a47;
  width: min(380px, 82%); padding: 26px 28px 22px;
  box-shadow: 0 1px 0 rgba(27,42,71,.08), 0 18px 40px -18px rgba(27,42,71,.45);
  transform: rotate(-2.2deg); position: relative; z-index: 1;
  font-size: .86rem; line-height: 1.45;
}
.invoice mark { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 60% / 100% 70%; color: inherit; padding: 0 .1em; }
.inv-from { font-weight: 700; font-size: 1rem; margin: 0; }
.inv-from small { display: block; font-weight: 400; color: #4c5a70; font-size: .78rem; }
.inv-title { font-size: 1.5rem; font-weight: 300; letter-spacing: .02em; margin: 14px 0 8px; }
.inv-meta, .inv-sum { margin: 0; display: grid; gap: 2px; }
.inv-meta div, .inv-sum div { display: flex; justify-content: space-between; gap: 12px; }
.inv-meta dt, .inv-sum dt { color: #4c5a70; }
.inv-meta dd, .inv-sum dd { margin: 0; }
.inv-lines { margin: 14px 0; display: grid; gap: 7px; }
.inv-lines span { height: 7px; background: #e4e8e0; border-radius: 2px; }
.inv-lines span:nth-child(2) { width: 78%; }
.inv-lines span:nth-child(3) { width: 56%; }
.inv-sum { border-top: 1px solid #d5dccf; padding-top: 8px; }
.inv-total { font-weight: 700; font-size: 1rem; }

.pad {
  position: relative; margin: -46px 0 0 auto; width: min(560px, 96%);
  background: var(--paper); color: #1b2a47;
  border: 1px solid #c9d9c3; box-shadow: 0 20px 44px -22px rgba(27,42,71,.5);
  padding: 14px 18px 12px;
}
.pad::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; border-left: 1px solid #e3a59b; }
.pad-name { font-size: .78rem; color: #4c5a70; margin: 0 0 4px 10px; }
.pad table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.pad th { text-align: left; font-weight: 600; color: #4c5a70; padding: 6px 8px; border-bottom: 1.5px solid #1b2a47; font-size: .78rem; }
.pad td { padding: 7px 8px; border-bottom: 1px solid #cfe0c9; white-space: nowrap; }
.pad .amt { text-align: right; }
.pad tr.fresh td { background: #eef6e9; }
.pad tr.refused td { color: #b4321f; }
.pad tr.refused s { text-decoration-thickness: 1.5px; }
.pad-note { color: #b4321f; font-size: .82rem; margin: 6px 0 0 10px; font-style: italic; }
.desk figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 16px; max-width: 56ch; margin-left: auto; text-align: right; }

/* One orchestrated moment: the highlighter reads the invoice, then the row lands. */
@media (prefers-reduced-motion: no-preference) {
  .invoice mark { animation: mark .5s ease-out both; }
  .inv-from mark { animation-delay: .3s; }
  .inv-meta div:nth-child(1) mark { animation-delay: .5s; }
  .inv-meta div:nth-child(2) mark { animation-delay: .65s; }
  .inv-meta div:nth-child(3) mark { animation-delay: .8s; }
  .inv-sum div:nth-child(1) mark { animation-delay: .95s; }
  .inv-sum div:nth-child(2) mark { animation-delay: 1.1s; }
  .inv-sum div:nth-child(3) mark { animation-delay: 1.25s; }
  .pad tr.fresh td { animation: land .7s 1.6s ease-out both; }
  .pad tr.refused s { animation: strike .5s 2.3s ease-out both; }
  @keyframes mark { from { background-size: 0 70%; } to { background-size: 100% 70%; } }
  @keyframes land { from { background: var(--mark); } to { background: #eef6e9; } }
  @keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: currentColor; } }
}

/* Sections as ledger accounts: heading in the margin column, a red margin rule, content beside it. */
main > section { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--rule-soft); }
main > section > .wrap { display: grid; grid-template-columns: var(--margin) 1fr; column-gap: 48px; }
main > section > .wrap > h2 { grid-column: 1; grid-row: 1 / span 20; align-self: start; position: sticky; top: 90px; font-size: 1.45rem; max-width: 12ch; }
main > section > .wrap > :not(h2) { grid-column: 2; min-width: 0; }
main > section > .wrap::before { content: ""; grid-column: 1; grid-row: 1 / span 20; justify-self: end; margin-right: -24px; border-right: 1px solid var(--red); opacity: .45; }
.sub { font-size: 1.1rem; color: var(--ink-2); }
.band { background: transparent; }

/* Itemised tally with dot leaders, closed by a double rule */
.tally { background: var(--pad); }
.leaders { margin: 0; max-width: 560px; }
.leaders div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.leaders dt { flex: none; }
.leaders div::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.leaders dd { order: 2; margin: 0; font-weight: 650; }
.leaders .sum { border-bottom: 0; font-size: 1.15rem; }
.leaders .sum dd { border-bottom: 4px double var(--ink); padding-bottom: 2px; font-weight: 760; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.steps li { padding: 18px 22px 8px 0; border-right: 1px solid var(--rule); }
.steps li + li { padding-left: 22px; }
.steps li:last-child { border-right: 0; }
.num { display: block; font-weight: 300; font-size: 2rem; line-height: 1; color: var(--ink-2); margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin-top: 8px; }
.feats { list-style: none; padding: 0; margin: 8px 0 24px; }
.feats li { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); max-width: 68ch; }
.note { color: var(--ink-2); font-size: .98rem; }

/* By hand vs with the pack */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); margin-top: 28px; }
.compare .col { padding: 26px 28px; }
.compare ul { padding-left: 1.1em; margin: 12px 0 0; }
.compare li { margin-bottom: 8px; }
.compare .hand { color: var(--ink-2); }
.compare .hand li::marker { content: "✕  "; color: var(--red); }
.compare .tool { background: var(--pad); border-left: 1px solid var(--rule); }
.compare .tool li::marker { content: "✓  "; }
.you { margin-top: 16px; font-weight: 650; }

/* Free workflows: radio tabs, no JS */
.tabs { margin-top: 28px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tablist { display: flex; flex-wrap: wrap; border-bottom: 1.5px solid var(--ink); }
.tablist label { cursor: pointer; padding: 10px 18px; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; border-bottom: 0; margin-bottom: -1.5px; }
.tablist label:hover { color: var(--ink); }
#t1:checked ~ .tablist label[for="t1"], #t2:checked ~ .tablist label[for="t2"], #t3:checked ~ .tablist label[for="t3"] { color: var(--ink); background: var(--page); border-color: var(--ink); border-bottom: 1.5px solid var(--page); border-width: 1.5px; }
#t1:focus-visible ~ .tablist label[for="t1"], #t2:focus-visible ~ .tablist label[for="t2"], #t3:focus-visible ~ .tablist label[for="t3"] { outline: 3px solid var(--red); outline-offset: 2px; }
.panel { display: none; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; padding: 28px 0 0; }
#t1:checked ~ .p1, #t2:checked ~ .p2, #t3:checked ~ .p3 { display: grid; }
.ptext h3 { margin-bottom: 12px; }
.pshot .caption { font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
.noshot { border: 1px dashed var(--rule); padding: 24px; color: var(--ink-2); }
.zoomable { position: relative; display: block; border: 1px solid var(--rule); background: #fff; }
.zoomhint { position: absolute; right: 8px; bottom: 8px; background: #1b2a47; color: #fff; font-size: .76rem; padding: .25em .7em; border-radius: 3px; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(12,20,16,.94); padding: 24px; align-items: center; justify-content: center; flex-direction: column; text-decoration: none; }
.lightbox:target { display: flex; }
.lightbox img { max-height: 88vh; width: auto; background: #fff; }
.lbbar { color: #fff; margin-top: 12px; font-size: .9rem; }
.import-h { margin-top: 44px; }
.import { list-style: none; padding: 0; margin: 16px 0 0; }
.import li { display: grid; grid-template-columns: 56px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.import .num { font-size: 1.4rem; margin: 0; }
.import p { margin: 0; }

/* Cloud */
.split { display: block; }
.split > div:first-child { display: contents; }
.disclosure { color: var(--ink-2); font-size: .98rem; }

/* Limits: a ruled list, not cards */
.limits { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: lim; }
.limits li { padding: 14px 0 14px 0; border-bottom: 1px solid var(--rule-soft); max-width: 72ch; }

/* Pricing: the total line */
.pricecard { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1.5px solid var(--ink); padding-top: 28px; }
.price { font-size: 1.1rem; margin: 18px 0 24px; }
.price span { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 760; letter-spacing: -.03em; border-bottom: 5px double var(--ink); padding-bottom: 2px; margin-right: 10px; }
.pright { color: var(--ink-2); }
.warning { margin-top: 36px; padding: 18px 22px; border-left: 3px solid var(--red); background: var(--pad); max-width: 72ch; }

/* Guides */
.guidelist { list-style: none; padding: 0; margin: 20px 0 0; }
.guidelist a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); text-decoration: none; }
.guidelist strong { font-size: 1.08rem; }
.guidelist a:hover strong { text-decoration: underline; text-decoration-color: var(--red); }
.guidelist span { color: var(--ink-2); max-width: 70ch; }
.guidelist em { font-style: normal; font-size: .9rem; font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule-soft); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); }
.narrow { max-width: none; }

/* Closing */
.closing { background: var(--pad); }
.closing .wrap.center > h2 { position: static; max-width: 16ch; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.center { text-align: left; }

/* Footer */
.sitefoot { padding: 48px 0 56px; font-size: .92rem; color: var(--ink-2); }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.sitefoot h4 { margin: 0 0 10px; color: var(--ink); font-size: .95rem; }
.sitefoot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sitefoot a { text-decoration: none; }
.sitefoot a:hover { text-decoration: underline; }
.fbrand p { margin-top: 12px; max-width: 40ch; }
.fbrand .brandlink { color: var(--ink); }

@media (max-width: 960px) {
  .navlinks { display: none; }
  .navrow .btn { margin-left: auto; }
  .herogrid { grid-template-columns: 1fr; }
  main > section > .wrap { grid-template-columns: 1fr; }
  main > section > .wrap > h2 { grid-row: auto; position: static; margin-bottom: 18px; max-width: 22ch; }
  main > section > .wrap > :not(h2) { grid-column: 1; }
  main > section > .wrap::before { display: none; }
  .compare, .panel, .pricecard { grid-template-columns: 1fr; }
  .compare .tool { border-left: 0; border-top: 1px solid var(--rule); }
  .footgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .invoice { width: 88%; padding: 20px; }
  .pad { width: 100%; margin-top: -30px; padding: 10px 6px; overflow-x: auto; }
  .pad th:nth-child(3), .pad td:nth-child(3) { display: none; }
  .desk figcaption { text-align: left; }
  .footgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sections that span the full width */
#pricing > .wrap > *, .closing > .wrap > * { grid-column: 1 / -1; }
#pricing > .wrap::before, .closing > .wrap::before { display: none; }
.split h2 { grid-column: 1; grid-row: 1 / span 5; font-size: 1.45rem; max-width: 12ch; }
.split > div:last-child { grid-column: 2; }
@media (max-width: 960px) { .split h2 { grid-row: auto; margin-bottom: 18px; } .split > div:last-child { grid-column: 1; } }
.herogrid > * { min-width: 0; }
@media (max-width: 560px) { .pad table { font-size: .78rem; } .pad td, .pad th { padding: 6px 5px; } }

/* Explainer video */
.film { margin: 28px 0 8px; max-width: 820px; }
.film video { display: block; width: 100%; height: auto; background: #1b2a47; border: 1px solid var(--rule); }
.film figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 10px; }
