/* DocuAI product site — static, no build step, no third-party requests.
   Palette: ledger paper / ink / bookkeeping green / ruling blue / highlighter. */
:root {
  --paper: #f6f7f4;
  --paper-2: #eef0ec;
  --ink: #1b2431;
  --muted: #5b6674;
  --green: #1e5a44;
  --green-2: #2a7a5d;
  --rule: #b7c2d3;
  --mark: #ffe566;
  --danger: #8a2f2f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.3rem; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
small, .fine { font-size: .88rem; color: var(--muted); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: .05em .3em; border-radius: 3px; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Header — one rule below it, like the top of a ledger page */
.site-head { border-bottom: 2px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; padding: .9rem 0 .8rem; }
.brand { display: inline-flex; align-items: center; gap: .4em; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .word span { color: var(--green); }
.brand .mark { width: 1.35em; height: 1.35em; flex: none; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.site-head nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* Draft banner — removed at publish */
.draft { background: var(--mark); color: var(--ink); font-size: .9rem; padding: .5rem 0; }
.draft .wrap { max-width: none; }

/* Sections divided by ledger rulings */
section { padding: 3rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { max-width: 22ch; }
.lede { font-size: 1.22rem; max-width: 56ch; color: var(--ink); }
.hero .lede { margin-bottom: 1.6rem; }

/* Buttons: only two kinds. */
.btn { display: inline-block; font: inherit; font-weight: 600; padding: .7rem 1.15rem; border: 2px solid var(--green); border-radius: 4px; text-decoration: none; color: var(--green); background: transparent; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn + .btn { margin-left: .6rem; }
.actions { margin: 1.4rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.actions .btn + .btn { margin-left: 0; }

/* The proof ledger — the one bold element. Dotted leaders, figures set in the serif. */
.ledger { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 760px; }
.ledger li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.ledger .what { position: relative; overflow: hidden; }
.ledger .what::after { content: ""; position: absolute; bottom: .35em; margin-left: .5rem; width: 100%; border-bottom: 2px dotted var(--rule); }
.ledger .fig { font-family: var(--serif); font-size: 1.55rem; white-space: nowrap; }
.ledger .src { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.ledger .src a { color: var(--muted); }

/* Two-column prose rows */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.6rem 3rem; }
.cols h3 { margin-top: .2rem; }
.cols.two { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); max-width: 900px; }

/* Definition-style rows for pricing / hardware / compare */
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .6rem .65rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; border-bottom: 2px solid var(--ink); }
td:first-child, th:first-child { padding-left: 0; }
.table-scroll { overflow-x: auto; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--muted); }
mark { background: var(--mark); padding: 0 .15em; }

/* Tour — a genuine sequence, so it is numbered */
.tour ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.tour li { max-width: none; counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1rem; padding: 2.2rem 0; border-bottom: 1px solid var(--rule); }
.tour li::before { content: counter(step); font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--green); }
.tour figure { margin: 1rem 0 0; grid-column: 2; }
.tour figure img { border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.tour figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.tour .pending { border: 1px dashed var(--rule); padding: 2rem 1rem; color: var(--muted); font-size: .92rem; background: var(--paper-2); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.tier { border-top: 2px solid var(--ink); padding-top: 1rem; }
.tier .price { font-family: var(--serif); font-size: 2.4rem; }
.tier .price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.tier ul { padding-left: 1.1rem; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); padding: 1.6rem 0 2.4rem; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.site-foot a { color: var(--muted); }
.site-foot .owner { margin-right: auto; }

.note { border-left: 3px solid var(--mark); padding: .6rem 1rem; background: #fffdf0; max-width: var(--measure); }
.note.warn { border-left-color: var(--danger); background: #fff5f5; }

@media (max-width: 640px) {
  html { font-size: 16px; }
  .tour li { grid-template-columns: 2.2rem 1fr; }
  .tour li::before { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
