
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #555b66;
  --rule: #c9ccd1;
  --rule-soft: #e4e6ea;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --accent-soft: #e4ecf4;
  --good: #2f6b3a;
  --warn: #8a5a10;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 24px; }
.col { max-width: 44rem; }

h1, h2, h3 { font-family: var(--sans); margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 1.55rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
ul, ol { margin: 0; }

section { padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid var(--rule-soft); }
section:first-of-type { border-top: 0; }
.stack { display: grid; gap: 1.1rem; }
.lede { font-size: 1.15rem; line-height: 1.55; color: #2b2f36; }

/* ---- header ---- */
.masthead {
  display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
  padding-block: 1.3rem 0.9rem; border-bottom: 1px solid var(--rule-soft);
}
.wordmark { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark .mk { color: var(--ink); }
.maker { font-size: 0.86rem; color: var(--muted); }
.maker a { color: var(--muted); }
.masthead nav { margin-left: auto; display: flex; gap: 1.4rem; font-size: 0.95rem; }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* ---- hero ---- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.3rem; }
.btn {
  display: inline-block; font: 500 0.95rem/1 var(--sans); text-decoration: none;
  padding: 0.8rem 1.2rem; border-radius: 4px; border: 1px solid var(--accent); cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.fineprint { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ---- screenshot ---- */
.shot { margin: 1.2rem 0 0; }
.shot img { display: block; width: 100%; max-width: 56rem; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.shot figcaption { margin-top: 0.6rem; font-size: 0.86rem; color: var(--muted); max-width: 52rem; }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; margin-top: 1.2rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; background: var(--surface); }
th, td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; line-height: 1.5; }
thead th { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
tr.ours td { font-weight: 600; background: var(--accent-soft); }
tr.ours td:first-child { padding-left: 0.6rem; }
td.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
table .btn { padding: 0.45rem 0.75rem; font-size: 0.86rem; white-space: nowrap; }

/* ---- lists ---- */
.plainlist { padding-left: 1.2rem; display: grid; gap: 0.7rem; line-height: 1.55; }
.plainlist strong { font-weight: 600; }
.howlist { padding-left: 1.4rem; display: grid; gap: 0.9rem; line-height: 1.55; }
.checkcols { display: grid; gap: 1.5rem; margin-top: 1.2rem; }
@media (min-width: 52rem) { .checkcols { grid-template-columns: 1fr 1.6fr; gap: 2.5rem; } }
.checkcols h3 { margin-bottom: 0.5rem; }
.checkcols ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; font-size: 1rem; }
section > h2 { margin-bottom: 1rem; }
section > p.col + .tablewrap, section > p.col + .checkcols { margin-top: 1.2rem; }

/* ---- faq ---- */
.faq { margin-top: 1rem; border-top: 1px solid var(--rule-soft); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; padding: 0.95rem 0; font-weight: 600; }
.faq .answer { padding-bottom: 1.1rem; color: #2b2f36; font-size: 1rem; max-width: 60rem; line-height: 1.6; }
.inline-code { font-family: var(--mono); font-size: 0.88em; background: var(--rule-soft); padding: 0.05em 0.3em; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-size: 0.9rem; color: var(--muted); }
.footrow { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: baseline; }
.footrow nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-left: auto; }
footer a { color: var(--muted); }
.disclaimer { margin-top: 1rem; max-width: 60rem; font-size: 0.82rem; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
@media (max-width: 34rem) {
  .masthead { gap: 0.4rem 0.75rem; }
  .masthead nav { margin-left: 0; flex-basis: 100%; gap: 1rem; }
  .cta-row .btn { flex: 1 1 12rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- BriefMark: the document facsimile (real Word output), serif because the document is ---- */
.hero-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; } }
.doc {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding: 1.6rem 1.5rem;
  font-family: Georgia, "Times New Roman", Times, serif; font-size: 0.86rem; line-height: 1.5;
}
.doc-title { text-align: center; font-weight: 700; letter-spacing: 0.06em; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1rem; }
.doc-cat { font-weight: 700; font-size: 0.8rem; margin: 1rem 0 0.4rem; }
.doc-cat:first-of-type { margin-top: 0; }
.doc .entry { margin-bottom: 0.3rem; }
.doc .entry .name { font-style: italic; }
.doc-note { margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid var(--rule-soft); font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.leader { display: flex; align-items: last baseline; gap: 0.6ch; }
.leader > .fill { flex: 1 1 auto; border-bottom: 1px dotted var(--ink); transform: translateY(-0.3em); min-width: 2ch; }
.leader > .pg { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-code, code { font-family: var(--mono); font-size: 0.88em; background: var(--rule-soft); padding: 0.05em 0.3em; }

/* ---- former card grids: plain headed blocks ---- */
.grid { display: grid; gap: 1.2rem 2rem; margin-top: 1.4rem; }
@media (min-width: 46rem) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cell { display: grid; gap: 0.3rem; align-content: start; }
.cell p { font-size: 0.98rem; color: #2b2f36; }
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { display: grid; gap: 0.3rem; align-content: start; }
.step h3::before { counter-increment: step; content: counter(step) ". "; }
.step p { font-size: 0.98rem; color: #2b2f36; }
.figures { display: grid; gap: 1rem 2rem; margin-top: 1.2rem; }
@media (min-width: 46rem) { .figures { grid-template-columns: repeat(3, 1fr); } }
.fig { display: grid; gap: 0.25rem; align-content: start; }
.fig b { font-weight: 600; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fig span { font-size: 0.92rem; color: var(--muted); }
section > .col + .tablewrap, section > .col + .grid, section > .col + .steps, section > .col + .figures { margin-top: 1.2rem; }
