/* Layout idea: an accountant's work paper. Ledger-green paper, Caslon type, headings hanging in a left margin,
   and one red-pen markup on the forecast where the eagle eye catches the problem week. */
:root {
  --paper: #ffffff;
  --sheet: #e3f7ef;
  --band: #111816;
  --ink: #111816;
  --muted: #4b5a55;
  --rule: #c9e7db;
  --pen: #c3192d;
  --mint: #5fe0b7;
  --mint-ink: #0b3a2e;
  --mint-soft: #7fe3c4;
  --text: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --figures: "Courier Prime", "Courier New", monospace;
  --hand: "Nothing You Could Do", "Bradley Hand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #0f7a5c; }
a { text-decoration-color: var(--mint); }
a:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
h1, h2, h3, .h3 { font-family: var(--sans); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-family: var(--text); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: -.015em; max-width: 16ch; }
h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; z-index: 10; }
.fine, .small { font-size: .88rem; color: var(--muted); }

/* header */
.site-head { background: var(--band); color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; padding: 18px 0; }
.brand { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: #fff; letter-spacing: .01em; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { display: inline-flex; font-weight: 400; }
.brand > span:last-child { font-weight: 400; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .93rem; font-weight: 500; }
.nav a { text-decoration: none; color: #c8d3cf; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-head a:focus-visible { outline-color: #fff; }

/* hero */
.hero { padding: 52px 0 16px; }
.hero h1 { margin-bottom: 32px; }
.hero-foot { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.lede { font-size: 1.15rem; max-width: 58ch; margin: 0; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; background: var(--band); color: #fff; text-decoration: none; padding: 14px 22px; border-radius: 3px; font-size: 1.05rem; }
.btn:hover { background: var(--mint); color: var(--mint-ink); }
.hero-foot .fine { margin-top: 12px; max-width: 32ch; }

/* the ledger */
.ledger-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-left: 6px solid var(--mint); padding: 20px 20px 8px 0; }
.ledger { border-collapse: collapse; width: 100%; min-width: 860px; font-family: var(--figures); font-size: .95rem; font-variant-numeric: tabular-nums; }
.ledger.short { min-width: 640px; }
.ledger caption { caption-side: bottom; text-align: left; padding-left: 16px; font-family: var(--sans); font-size: .85rem; color: var(--muted); padding-top: 10px; }
.ledger th, .ledger td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger td + td, .ledger th + td, .ledger thead th + th { border-left: 1px solid var(--rule); }
.ledger thead th { font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--ink); }
.ledger .rowh { text-align: left; font-family: var(--sans); font-weight: 400; padding-left: 16px; padding-right: 16px; position: sticky; left: 0; background: var(--sheet); z-index: 1; }
.ledger .total td, .ledger .total th { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 700; }
.ledger .minrow td, .ledger .minrow th { color: var(--muted); border-bottom: 0; }
.ledger .note-row td { border: 0; padding-top: 2px; }
.circled { position: relative; display: inline-block; color: var(--pen); }
.pen-circle { position: absolute; left: -16px; top: -12px; width: calc(100% + 32px); height: calc(100% + 24px); overflow: visible; }
.pen-circle path, .pen-arrow path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pen-circle path { stroke-dasharray: 240; stroke-dashoffset: 0; animation: draw 1.1s ease-out .5s both; }
.pen-note { text-align: left !important; white-space: normal !important; font-family: var(--hand); color: var(--pen); font-size: 1.35rem; line-height: 1.3; }
.pen-note span { display: inline-block; max-width: 40ch; vertical-align: top; animation: inkin .6s ease-out 1.5s both; }
.pen-arrow { width: 34px; height: 30px; vertical-align: top; margin: -4px 8px 0 18px; animation: inkin .4s ease-out 1.4s both; }
.trust { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--mint); border-bottom: 1px solid var(--rule); }
.trust li { padding: 14px 18px 14px 0; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.trust li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.trust b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.cap-mobile { display: none; font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.pen-note-mobile { display: none; font-family: var(--hand); color: var(--pen); font-size: 1.3rem; line-height: 1.3; margin: 10px 0 0; }
@keyframes draw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
@keyframes inkin { from { opacity: 0; } to { opacity: 1; } }

/* margin-heading rows */
.row { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 36px 0 4px; border-top: 1px solid var(--rule); margin-top: 20px; }
.marg { font-size: 1.15rem; font-weight: 600; margin: 2px 0 0; }
.body { max-width: 68ch; }
.plain-list { margin: 0 0 1em; padding-left: 1.1em; display: grid; gap: 6px; }
.plain-list li::marker { color: var(--muted); }
.steps { margin: 0; padding-left: 1.5em; display: grid; gap: 10px; }
.steps li::marker { font-family: var(--figures); color: var(--muted); }
.boxed { border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px 8px; background: var(--sheet); }

.statement { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.statement th, .statement td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.statement thead th { font-weight: 500; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--ink); }
.statement tbody th { font-weight: 700; white-space: nowrap; padding-right: 22px; }
.statement .amt { text-align: right; white-space: nowrap; font-family: var(--figures); padding-right: 0; padding-left: 16px; }

.reading { list-style: none; margin: 0; padding: 0; }
.reading li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.reading li:first-child { padding-top: 0; }
.reading a { font-size: 1.15rem; }
.reading span { color: var(--muted); font-size: .95rem; }
.reading.wide { max-width: 72ch; }

/* inner pages */
section.wrap { padding-block: 24px; }
.page-head { padding-top: 56px !important; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 32px !important; }
.split > * { max-width: 62ch; }
.ticks { margin: 0 0 1em; padding-left: 1.1em; display: grid; gap: 8px; }
.ticks li::marker { color: var(--muted); }
.side-card { border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); padding: 24px 26px 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.three.plain { margin: 12px 0 8px; }

.tier-detail { display: grid; grid-template-columns: 220px 1fr; gap: 40px; border-top: 1px solid var(--ink); padding: 32px 0 16px !important; }
.tier-detail.featured .tier-name { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.tier-name { font-size: 1.5rem; font-weight: 600; margin: 0 0 6px; }
.tier-price { font-family: var(--figures); font-size: 1.05rem; margin: 0 0 4px; }
.tier-price span { color: var(--muted); }
.setup { font-size: .9rem; color: var(--muted); }
.good-for { color: var(--muted); }
.td-body { max-width: 68ch; }
.addon { border-top: 1px solid var(--ink); padding-top: 32px !important; max-width: 68ch; }

.prose { max-width: 68ch; font-family: var(--text); font-size: 18px; line-height: 1.75; }
.prose h1, .prose .meta, .prose .crumbs, .prose .btn { font-family: var(--sans); }
.prose h1 { font-family: var(--text); font-weight: 400; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1em; }
.crumbs, .meta { font-size: .88rem; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; max-width: 72ch; }
.faq summary { font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
.site-foot { margin-top: 56px; padding: 0 0 24px; background: var(--band); color: #c8d3cf; border-top: 3px solid var(--mint); }
.site-foot .fine { color: #9fb0aa; }
.site-foot .foot-about { color: #c8d3cf; }
.site-foot .foot-about b { color: #ffffff; }
.site-foot .foot-links a { color: #c8d3cf; }
.site-foot .foot-links a:hover { color: var(--mint); }
.site-foot .foot-grid { border-top: 0; padding-top: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; border-top: 1px solid var(--ink); padding-top: 24px; font-size: .95rem; }
.foot-about { max-width: 52ch; color: var(--muted); }
.foot-about b { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; }
.foot-links a { color: var(--muted); }

@media (max-width: 820px) {
  .statement .amt { font-family: var(--sans); font-weight: 600; font-size: .95rem; white-space: normal; width: 6.6em; }
  .statement tbody th { padding-right: 12px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ledger { min-width: 760px; font-size: .88rem; }
  .ledger .rowh { max-width: 110px; white-space: normal; line-height: 1.25; }
  .ledger .note-row { display: none; }
  .pen-note-mobile { display: block; }
  .cap-mobile { display: block; }
  .ledger.short caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .row, .tier-detail, .split, .hero-foot, .three, .foot-grid { grid-template-columns: 1fr; gap: 14px; }
  .row { padding-top: 32px; }
  .hero { padding-top: 40px; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pen-circle path, .pen-note span, .pen-arrow { animation: none !important; }
}

.hero + .row { border-top: 0; margin-top: 8px; }
