/* Three-Way Monthly, page v2.
   Ledger-paper green, bottle-green ink for what ties, a red pencil for the one
   thing that doesn't. Source Serif 4 for headings and the report document,
   Public Sans with tabular figures for everything you read or type. Fonts are
   self-hosted (SIL OFL 1.1), so the page makes no third-party request. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/three_way/source-serif-4-latin-opsz-normal-1152c123.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/three_way/source-serif-4-latin-opsz-italic-cb358ef5.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/three_way/public-sans-latin-wght-normal-dca702d4.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F1F5F1;
  --sheet: #FFFFFF;
  --ink: #16262A;
  --muted: #4E6165;
  --rule: #C4D5CA;
  --rule-soft: #DDE8E0;
  --green: #1D5A45;
  --green-deep: #133F31;
  --green-soft: #E2EDE6;
  --red: #B42318;
  --red-soft: #FBEAE7;
  --amber: #85520A;
  --amber-soft: #F8EED9;
  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.012em; }
h1 { font-size: 2.35rem; line-height: 1.06; font-optical-sizing: auto; }
h2 { font-size: 1.75rem; line-height: 1.15; }
h3 { font-size: 1.05rem; line-height: 1.3; }
.muted { color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: 0.5rem 0.75rem; z-index: 10; }

/* Buttons: one solid, one quiet. Same shape everywhere. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--green); border-radius: var(--radius);
  background: var(--green); color: #FFFFFF;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-deep); border-color: var(--green-deep); color: #FFFFFF; }
.button.quiet { background: transparent; color: var(--green); }
.button.quiet:hover { background: var(--green-soft); color: var(--green-deep); }
.button.wide { width: 100%; }
.button[disabled] { opacity: 0.6; cursor: default; }

/* Header */
header.site { background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { max-width: 1120px; margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font: 600 1.15rem/1 var(--serif); letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mark .tick { stroke: var(--green); stroke-width: 2.6; }
.bar-cta { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
@media (max-width: 520px) { .bar-cta { display: none; } }

/* Hero: the promise, and the three balances agreeing beside it. */
.hero { display: grid; gap: 2rem; padding-top: 2.75rem; padding-bottom: 3rem; }
.lede { font-size: 1.15rem; line-height: 1.5; color: var(--ink); max-width: 34rem; margin-top: 1rem; }
.hero-price { color: var(--muted); margin-bottom: 1.5rem; }
.hero-price strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .button { flex: 1 1 14rem; }
.tieout { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.tieout dl { margin: 0; }
.tieout dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); }
.tieout dl div:last-child { border-bottom: 3px double var(--green); }
.tieout dt { color: var(--muted); font-size: 0.95rem; }
.tieout dd { margin: 0; font-weight: 600; font-size: 1.2rem; }
.tieout figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }

.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); margin: 0.6rem 0 0; }

/* The demo: the one loud thing on the page. */
.demo-band { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 3rem 0; }
.demo { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.demo-top { display: grid; gap: 0.5rem; padding: 1rem 1rem 0.75rem; border-bottom: 1px solid var(--rule); }
.sample-tag { display: inline-block; justify-self: start; margin: 0; padding: 0.15rem 0.55rem; border: 1px dashed var(--amber); border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 0.8rem; font-weight: 600; }
.demo-meta { margin: 0; font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; }
.demo-meta strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.demo-controls { margin-top: 0.4rem; }
.demo-controls .button { width: 100%; }
.demo-step { margin: 0; padding: 0.8rem 1rem; min-height: 3.6rem; font-weight: 600; border-bottom: 1px solid var(--rule); background: var(--green-soft); color: var(--green-deep); }
.demo.running .demo-step { position: sticky; top: 0; z-index: 2; }
.demo-step.alert { background: var(--red-soft); color: var(--red); }
.demo-body { display: grid; }

.ledger-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.num { text-align: right; white-space: nowrap; }
.ledger { font-size: 0.86rem; background: var(--sheet); }
.ledger thead th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.78rem; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.ledger thead th.num { text-align: right; }
.ledger td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ledger .item span { display: block; }
.ledger .ref { font-weight: 600; }
.ledger .desc { color: var(--ink); }
.ledger .meta { color: var(--muted); font-size: 0.78rem; }
.ledger .bank-col { width: 5.9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ledger .status { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; font-size: 0.8rem; transition: opacity 180ms ease; }
.ledger tr[data-status="cleared"] .status { color: var(--green); }
.ledger tr[data-status="transit"] .status,
.ledger tr[data-status="outstanding"] .status { color: var(--amber); }
.ledger tr[data-status="transit"] td,
.ledger tr[data-status="outstanding"] td { background: var(--amber-soft); }
.ledger tr[data-status="mismatch"] td { background: var(--red-soft); }
.ledger tr[data-status="mismatch"] .status { color: var(--red); }
.tick { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 20; stroke-dashoffset: 0; transition: stroke-dashoffset 260ms ease-out; }
/* The red pencil: a hand-drawn loop around the amount the bank paid. */
.circled { position: relative; padding: 0.1rem 0.35rem; white-space: nowrap; }
.circled::after { content: ""; position: absolute; inset: -4px -6px; border: 2px solid var(--red); border-radius: 50% 46% 52% 44% / 60% 52% 48% 56%; transform: rotate(-3deg); }
.ledger [data-amount].corrected { color: var(--green); font-weight: 600; }

/* Rewound state, set by page.js before a run. */
.demo.rewound .ledger tr:not(.shown) .status { opacity: 0; }
.demo.rewound .ledger tr:not(.shown) .tick path { stroke-dashoffset: 20; }
.demo.rewound .ledger tr:not(.shown) td { background: var(--sheet); }
.demo .ledger tr.active td { background: var(--green-soft); }
.demo .ledger tr[data-mismatch].active td { background: #F6D3CD; }
.demo .ladder tr.reveal-pending td { visibility: hidden; }
.demo .verdict.reveal-pending,
.demo .trace.reveal-pending { display: none; }

.totals { padding: 1.1rem 1rem 1.25rem; border-top: 1px solid var(--rule); }
.totals h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.6rem; }
.ladder th { text-align: left; font-weight: 400; padding: 0.4rem 0; color: var(--ink); }
.ladder td { padding: 0.4rem 0; font-weight: 600; }
.ladder .adj th { padding-left: 0.9rem; color: var(--muted); font-size: 0.93rem; }
.ladder .adj td { font-weight: 400; color: var(--muted); }
.ladder tr.balance th, .ladder tr.balance td { border-top: 1px solid var(--rule); padding-top: 0.6rem; padding-bottom: 0.6rem; }
.ladder tr.balance td { font-size: 1.1rem; }
.ladder tr[data-balance="bank"] th { font-weight: 600; }
.ladder tr.off td { color: var(--red); }
.ladder tr.tied td { color: var(--green); }
.verdict { margin: 0.75rem 0 0; padding: 0.7rem 0.85rem; border-radius: var(--radius); background: var(--red-soft); color: var(--red); font-weight: 600; }
.verdict .verdict-on { display: none; }
.verdict.tied { background: var(--green-soft); color: var(--green-deep); }
.verdict.tied .verdict-on { display: inline; }
.verdict.tied .verdict-off { display: none; }
.trace { margin-top: 1rem; padding: 1rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--red); border-radius: var(--radius); }
.trace h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.6rem; }
.trace-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0 0 0.75rem; }
.trace-lines div { padding: 0.5rem 0.65rem; border: 1px solid var(--rule-soft); border-radius: var(--radius); }
.trace-lines dt { color: var(--muted); font-size: 0.8rem; }
.trace-lines dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.trace p { font-size: 0.95rem; }
.trace .cant { color: var(--muted); }
.trace .button { width: 100%; }
.trace .button[aria-pressed="true"] { background: var(--green); color: #FFFFFF; }

/* The sample report: a document, so it is set like one. */
.report-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.report {
  position: relative; max-width: 760px; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(19, 63, 49, 0.35);
  padding: 1.5rem 1.15rem 1.75rem; font-family: var(--serif); font-size: 0.95rem; line-height: 1.45;
}
.report-sample { margin: 0 0 1rem; font: 600 0.78rem/1.2 var(--sans); color: var(--amber); }
.report-head { border-bottom: 2px solid var(--ink); padding-bottom: 0.9rem; margin-bottom: 1.1rem; }
.report-head h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; margin-bottom: 0.75rem; }
.report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.88rem; }
.report-meta dt { font: 600 0.75rem/1.3 var(--sans); color: var(--muted); }
.report-meta dd { margin: 0; }
.report-part { margin-bottom: 1.25rem; }
.report-part h4 { font: 600 0.95rem/1.3 var(--sans); margin-bottom: 0.4rem; display: flex; align-items: baseline; gap: 0.5rem; }
.part-no { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.75rem; }
.report-table { font-variant-numeric: tabular-nums lining-nums; }
.report-table th { text-align: left; font-weight: 400; padding: 0.28rem 0; }
.report-table td { padding: 0.28rem 0 0.28rem 1rem; font-family: var(--sans); font-size: 0.9rem; }
.report-table .sub-head th { font-style: italic; padding-top: 0.5rem; }
.report-table .item th { padding-left: 1rem; }
.report-table .total th, .report-table .total td { font-weight: 700; border-top: 1px solid var(--ink); }
.report-table .variance th, .report-table .variance td { color: var(--red); border-top: 2px solid var(--red); }
.report-note { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }
.variance-item { border: 1px solid var(--rule); border-left: 3px solid var(--red); padding: 0.75rem 0.85rem; }
.variance-title { margin: 0 0 0.5rem; }
.variance-item dl { margin: 0; display: grid; gap: 0.5rem; }
.variance-item dt { font: 600 0.75rem/1.3 var(--sans); color: var(--muted); }
.variance-item dd { margin: 0; }
.choices { list-style: none; }
.choices li { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 0.25rem; }
.box { flex: none; width: 0.8rem; height: 0.8rem; border: 1.2px solid var(--ink); transform: translateY(0.1rem); }
.sign-grid { display: grid; gap: 1rem; margin: 1rem 0 0.5rem; }
.sign-line { height: 2.2rem; border-bottom: 1px solid var(--ink); margin: 0 0 0.3rem; }
.sign-grid p:last-child { font: 0.8rem/1.3 var(--sans); color: var(--muted); margin: 0; }

.report-notes { display: none; }
@media (min-width: 1040px) {
  .report-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .report-notes { display: grid; gap: 1.25rem; position: sticky; top: 2rem; color: var(--muted); font-size: 0.95rem; }
  .report-notes p { margin: 0; padding-left: 0.9rem; border-left: 2px solid var(--rule); }
  .report-notes strong { color: var(--ink); }
}

/* Four files */
.band { background: var(--green-deep); color: #E9F2EC; padding: 3.5rem 0; }
.band h2 { color: #FFFFFF; }
.band p { color: #CFE0D6; }
.split { display: grid; gap: 2rem; align-items: center; }
.clio-steps { list-style: none; counter-reset: step; display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.clio-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; align-items: baseline; color: #E9F2EC; }
.clio-steps li::before { content: counter(step); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid #8DB5A0; border-radius: 50%; font-weight: 600; font-size: 0.85rem; color: #FFFFFF; }
.mock { margin: 0; }
.mock-frame { background: var(--sheet); color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6); }
.mock-chrome { display: flex; gap: 6px; padding: 0.6rem 0.8rem; background: #E6ECE7; border-bottom: 1px solid var(--rule); }
.mock-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #C2CEC6; }
.mock-screen { padding: 1rem; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--rule-soft); padding-bottom: 0.7rem; margin-bottom: 0.7rem; }
.mock-frame p { color: var(--ink); }
.mock-frame .mock-firm { margin: 0; font-size: 0.8rem; color: var(--muted); }
.mock-title { margin: 0; font: 600 1.15rem/1.2 var(--serif); }
.mock-title span { font: 400 0.85rem/1 var(--sans); color: var(--muted); margin-left: 0.4rem; }
.mock-files { list-style: none; display: grid; gap: 0.5rem; }
.mock-files li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0.7rem; border: 1px solid var(--rule-soft); border-radius: var(--radius); }
.file-icon { font: 700 0.65rem/1 var(--sans); color: var(--green); border: 1.5px solid var(--green); border-radius: 3px; padding: 0.45rem 0.3rem; }
.file-name { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.file-name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.file-ok { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--green); font-size: 0.8rem; font-weight: 600; }
.mock-timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.9rem; }
.mock-timeline li { border-top: 3px solid var(--rule); padding-top: 0.45rem; font-size: 0.78rem; color: var(--muted); }
.mock-timeline li.done { border-top-color: var(--green); color: var(--ink); }
.mock-timeline span { display: block; font-weight: 600; }
.mock-timeline time { display: block; }
.mock figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: #CFE0D6; }

/* Checker */
.checker-section { padding-top: 3.5rem; padding-bottom: 3rem; }
.checker { display: grid; gap: 1rem; max-width: 760px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.field { display: grid; gap: 0.3rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.hint { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
input, select, textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--sheet); border: 1.5px solid #8FA39A; border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 48px; width: 100%; }
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
.checker-result { border-radius: var(--radius); padding: 1rem; background: var(--paper); border: 1px solid var(--rule); }
.checker-result h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.4rem; }
.checker-result p:last-child { margin-bottom: 0; }
.checker-result.tied { background: var(--green-soft); border-color: #A9C9B6; }
.checker-result.off { background: var(--red-soft); border-color: #EBB9B2; }
.checker-result .gaps { display: grid; gap: 0.2rem; margin: 0.4rem 0 0.8rem; list-style: none; }
.checker-result .gaps li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }

/* Offer */
.offer { padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); }
.offer h2 { margin-bottom: 1.5rem; }
.offer-grid { display: grid; gap: 1.5rem; }
.price { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.5rem; }
.price .amount { font-size: 3.4rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--green-deep); }
.included { list-style: none; display: grid; gap: 0.55rem; }
.included li { position: relative; padding-left: 1.7rem; }
.included li::before { content: ""; position: absolute; left: 0.15rem; top: 0.35rem; width: 0.85rem; height: 0.45rem; border-left: 2.4px solid var(--green); border-bottom: 2.4px solid var(--green); transform: rotate(-45deg); }
.refund { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft); color: var(--muted); max-width: 46rem; }

/* Duties and rules */
.duties { padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); }
.duties h2 { margin-bottom: 1.5rem; }
.duty-grid { display: grid; gap: 1.5rem; }
.duty-grid h3 { margin-bottom: 0.6rem; font-family: var(--serif); font-size: 1.2rem; }
.duty-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.duty-grid li { padding-left: 0.9rem; border-left: 2px solid var(--rule); }
.confidential { margin-top: 1.75rem; padding: 1rem 1.1rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 46rem; }
.rules { padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); }
.rules h2 { margin-bottom: 1.25rem; }
.rule-list { list-style: none; display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.rule-list p { margin-bottom: 0.3rem; }
.rule-list a { font-size: 0.9rem; }

/* Request */
.request-band { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 3.5rem 0; }
.request-grid { display: grid; gap: 1.75rem; }
.request-copy p { color: var(--muted); max-width: 30rem; margin-top: 0.75rem; }
.request-copy .request-price { color: var(--ink); font-weight: 600; }
.intake { display: grid; gap: 1.25rem; max-width: 560px; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin-top: 0.4rem; }
.options { display: grid; gap: 0.4rem; margin-top: 0.4rem; }
.segmented label, .options label { position: relative; display: block; cursor: pointer; }
.segmented input, .options input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.segmented span, .options span { display: flex; align-items: center; min-height: 48px; padding: 0.55rem 0.8rem; border: 1.5px solid #8FA39A; border-radius: var(--radius); background: var(--sheet); font-size: 0.98rem; }
.segmented span { justify-content: center; text-align: center; padding: 0.55rem 0.2rem; font-size: 0.92rem; line-height: 1.15; }
.segmented input:checked + span, .options input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); font-weight: 600; box-shadow: inset 0 0 0 1px var(--green); }
.segmented input:focus-visible + span, .options input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.optional { font-weight: 400; color: var(--muted); }
.consent { color: var(--muted); font-size: 0.88rem; margin: 0; }
.form-errors { border: 1.5px solid var(--red); background: var(--red-soft); color: var(--red); border-radius: var(--radius); padding: 0.8rem 1rem; }
.form-errors p { font-weight: 600; margin-bottom: 0.3rem; }
.form-errors ul { padding-left: 1.1rem; }

/* FAQ */
.faq { padding-top: 3rem; padding-bottom: 3.5rem; max-width: 820px; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.3rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 0.5rem; }

/* Confirmation and prose pages */
.done { max-width: 680px; padding-top: 3.5rem; padding-bottom: 4rem; }
.done-mark { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.done-mark .tick { stroke: var(--green); stroke-width: 3.2; }
.next { list-style: none; counter-reset: step; display: grid; gap: 0.85rem; margin: 1.75rem 0; }
.next li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; }
.next li::before { content: counter(step); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--green); color: #FFFFFF; font-weight: 600; font-size: 0.85rem; }
.prose { max-width: 720px; padding-top: 3rem; padding-bottom: 4rem; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { font-size: 1.3rem; margin: 1.75rem 0 0.6rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }

footer.site { border-top: 1px solid var(--rule); padding: 1.75rem 0 2.5rem; font-size: 0.88rem; color: var(--muted); }
.footer-grid { display: grid; gap: 0.6rem; }
.footer-grid p { margin: 0; }
.footer-brand { color: var(--ink); font-weight: 600; }
.footer-grid nav { display: flex; gap: 1.25rem; }
.footer-grid a { color: var(--muted); }

@media (min-width: 760px) {
  body { font-size: 18px; }
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.1rem; }
  .hero { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3.5rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero-actions .button { flex: 0 0 auto; }
  .demo-band { padding: 4rem 0; }
  .demo-top { grid-template-columns: 1fr auto; align-items: center; padding: 1.1rem 1.25rem; }
  .demo-top .sample-tag { grid-column: 1 / -1; }
  .demo-controls { margin: 0; }
  .demo-controls .button { width: auto; }
  .demo-step { padding: 0.9rem 1.25rem; min-height: 0; }
  .demo-body { grid-template-columns: 1.45fr 1fr; }
  .totals { border-top: 0; border-left: 1px solid var(--rule); padding: 1.25rem; }
  .ledger { font-size: 0.9rem; }
  .ledger .item .ref, .ledger .item .desc { display: inline; }
  .ledger .bank-col { width: 8rem; }
  .report { padding: 2.5rem 2.75rem 2.75rem; font-size: 1rem; }
  .report-meta { grid-template-columns: repeat(3, 1fr); }
  .sign-grid { grid-template-columns: 1.2fr 1.2fr 0.7fr; }
  .split { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .checker { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .checker .button { grid-column: 1 / -1; justify-self: start; }
  .checker-result { grid-column: 1 / -1; }
  .offer-grid { grid-template-columns: 1fr 1.3fr; gap: 3rem; }
  .duty-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .rule-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .request-grid { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; }
  .request-copy { position: sticky; top: 1.5rem; align-self: start; }
  .options { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-note { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .tick path, .ledger .status { transition: none; }
}
