/* Polite Persistence: "Calm Paper & Ledger" (UI direction, Gemini 4 Neon High). System fonts only. */
:root {
  --page: #FAF9F6; --card: #FFFFFF; --border: #E2DFD7; --ink: #1C1917; --muted: #57534E;
  --cta: #1F4D3D; --cta-hover: #16382C; --due: #B91C1C; --due-bg: #FEF2F2; --head: #F5F3EE;
  --chip: #E9F1ED;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --side: 20px; --section: 48px;
}
@media (min-width: 768px) { :root { --side: 32px; --section: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.6 var(--sans); overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--cta); text-underline-offset: 2px; }
a:hover { color: var(--cta-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: calc(760px + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.wrap-wide { max-width: calc(960px + 2 * var(--side)); }
section { padding: var(--section) 0; }
section + section { border-top: 1px solid var(--border); }
p, li { max-width: 65ch; }

h1, h2, h3 { margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 1.707rem + 1.304vw, 2.75rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.375rem, 1.228rem + 0.652vw, 1.75rem); line-height: 1.25; font-weight: 650; }
h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 650; margin-bottom: 8px; }
.sub { font-size: clamp(1.0625rem, 1.014rem + 0.217vw, 1.1875rem); color: var(--muted); margin: 0 0 24px; }
.meta { font-size: 14px; color: var(--muted); }

/* Top bar: compact, inline, no menu */
.top { border-bottom: 1px solid var(--border); background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--ink); text-decoration: none; }
.top a:not(.brand) { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; }

/* Hero */
.hero { padding-top: 40px; }
@media (min-width: 768px) { .hero { padding-top: 64px; } }

/* CTA */
.cta-block { margin: 24px 0 0; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border-radius: 6px; background: var(--cta); color: #FFFFFF;
  font-weight: 650; font-size: 1.0625rem; text-decoration: none; border: 0;
}
.cta:hover { background: var(--cta-hover); color: #FFFFFF; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cta-meta { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.cta-meta strong { color: var(--ink); }
@media (max-width: 599px) { .cta { display: flex; width: 100%; } }

/* Bullets */
.stall { padding-left: 1.2em; margin: 0; }
.stall li { margin-bottom: 12px; }
.stall strong { display: block; }

/* Preview card */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.card-label, .card-subject { max-width: none; }
.card-label { margin: 0; padding: 8px 16px; font: 600 12px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border); }
.card-subject { margin: 0; padding: 12px 16px; background: var(--head); border-bottom: 1px solid var(--border); font-size: 15px; }
.card-subject span.k { color: var(--muted); font-weight: 600; margin-right: 6px; }
.card-body { padding: 16px; }
.card-body p { margin: 0 0 14px; }
.card-body p:last-child { margin-bottom: 0; }
/* No horizontal padding: the chip must sit flush against adjacent punctuation ("[Client Name]," not "[Client Name] ,"). */
.ph { font-family: var(--mono); font-size: 0.88em; background: var(--chip); color: var(--cta); border-radius: 3px; padding: 1px 0; white-space: nowrap; }
/* Keeps "#" and its chip on one line in the subject. */
.nw { white-space: nowrap; }
.sms { border-top: 1px dashed var(--border); padding: 12px 16px 16px; background: var(--page); }
.sms-k { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.sms p { margin: 0; }

/* What's included */
.grid { display: grid; gap: 32px; }
.grid > * { min-width: 0; }
/* Two columns at >=768px: both tables at the tracker's 13px so the step rows stop wrapping and the
   columns end within about one row of each other (no empty block under the tracker). */
@media (min-width: 768px) { .grid { grid-template-columns: 1fr 1fr; align-items: start; } .grid table { font-size: 13px; } }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--head); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
td.step { font-family: var(--mono); white-space: nowrap; font-weight: 600; }
.tracker { min-width: 440px; font-size: 13px; }
.tracker td, .tracker th { padding: 8px; white-space: nowrap; }
/* "Next template" may wrap so the table fits the desktop column; nothing else wraps. The follow-up
   header is shortened to "Next follow-up" (full name in abbr title and the caption) and stays on one line. */
.tracker th.wraps { white-space: normal; }
.tracker abbr { text-decoration: none; }
/* Scroll cue, CSS only: the table's min-width is fixed above, so it overflows exactly when its
   wrapper is narrower than min-width + the 2px border. Only then show the hint and the fade. */
.tracker-wrap { container-type: inline-size; }
.scroll-frame { position: relative; }
.scroll-hint { display: none; margin: 0 0 4px; text-align: right; font-size: 13px; color: var(--muted); max-width: none; }
@container (max-width: 441.98px) {
  .scroll-hint { display: block; }
  .scroll-frame::after {
    content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 32px; pointer-events: none;
    border-radius: 0 7px 7px 0;
    background: linear-gradient(to right, rgb(255 255 255 / 0), var(--card) 80%);
    box-shadow: inset -6px 0 6px -6px rgb(28 25 23 / 0.3);
  }
  /* Room under the fade at the end of the scroll so it never covers the last column. */
  .tracker th:last-child, .tracker td:last-child { padding-right: 36px; }
}
.tracker .num, .tracker .date { font-family: var(--mono); }
td.due { color: var(--due); background: var(--due-bg); font-weight: 700; }
/* Real tracker screenshot (LibreOffice render of the .xlsx) under the example table. */
.shot { display: block; width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.caption { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.formats { padding-left: 1.2em; }
.dl-h { margin-top: 32px; }

/* Steps */
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 8px; }

/* FAQ */
.faq h3 { margin-top: 24px; }
.faq p { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
footer nav a { display: inline-flex; align-items: center; min-height: 48px; }
footer p { margin: 0; }

/* Legal pages */
.legal { padding: var(--section) 0; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal address { font-style: normal; }
.updated { margin-top: 40px; font-size: 14px; color: var(--muted); }
