/* PlainParse — one stylesheet for every page.
 *
 * Was three inline copies with drifting values (radii 8/9/10px for the same
 * weight of container, two different greys for the same panel, #fafafa vs
 * #f6f6f6 used interchangeably). The sibling site had already lost a rule to
 * exactly this kind of duplication, so these are one file.
 *
 * DELIBERATELY NOT the same look as recoversaves. These are independent
 * products (CLAUDE.md) and should not converge: RecoverSaves is a tight,
 * Reddit-native sans; PlainParse is navy and gold with a serif display face,
 * because its buyer is a business owner or an agency and the register that
 * suits them is "established", not "casual".
 *
 * The serif is Georgia — a system font. No webfont anywhere: this site makes
 * zero third-party requests and that is worth more than a bought typeface.
 *
 * `.cta` meant two different things before this: the gold button in the header
 * on index.html, and a bordered box on review-export-format.html. Merging the
 * files would have collapsed them silently — the same trap that caught `.note`
 * on the sibling site. The button is now `.btn` everywhere; `.cta` is the box.
 */

:root {
  /* colour */
  --navy: #1f2d54;   /* 13.45:1 on white */
  --gold: #f5a623;   /* --ink on gold = 8.58:1 */
  --ink: #1a1a1b;
  --muted: #555;     /* 7.46:1 on white */
  --line: #e6e6e6;
  --paper: #fafafa;  /* table headers, code blocks */
  --cream: #fffaf0;  /* callouts — a gold tint, not a second grey */

  /* space — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 44px;
  --s-8: 60px;

  /* radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;

  /* type */
  --t-xs: 13px;
  --t-sm: 14px;
  --t-md: 15px;
  --t-base: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 32px;

  --measure: 760px;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: var(--t-base)/1.65 var(--sans);
  color: var(--ink);
  background: #fff;
}

main { max-width: var(--measure); margin: 0 auto; padding: var(--s-2) 20px var(--s-7); }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* The serif is the whole identity. Body copy stays sans for legibility at
   14-16px; the serif carries headings only, which is where it reads as a
   considered choice rather than as a long-form affectation. */
h1 {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-2xl);
  line-height: 1.18; letter-spacing: -0.012em; margin: var(--s-3) 0 10px;
  text-wrap: balance;
}
h2 {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-xl);
  line-height: 1.28; margin: 0 0 var(--s-3); text-wrap: balance;
}
h3 { font-size: var(--t-base); margin: 0 0 var(--s-1); }

/* Wordmark. Was a bare ★ glyph plus uppercase letter-spaced text — the most
   generic mark available, and thematically only half right. This is a star
   resolving into rows: reviews becoming data, which is the entire product. */
.mark { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; }
.mark svg { display: block; }
.mark span {
  font-family: var(--serif); font-weight: 700; font-size: var(--t-lg);
  letter-spacing: -0.01em;
}

/* Article and privacy pages have no navy hero, so the wordmark needs its own
   row. index.html's mark sits inside <header> and inherits white from it. */
.masthead { padding: var(--s-4) 0 var(--s-2); }
.masthead .mark { color: var(--navy); }
.masthead .mark span { font-size: var(--t-md); }

/* :not(.masthead) is load-bearing. These were bare `header` rules, and the
   wordmark row on the inner pages is ALSO a <header> — so it inherited the navy
   hero background, and `.masthead .mark { color: var(--navy) }` then painted the
   bars navy-on-navy. The article page rendered as an empty navy block with one
   gold star floating in it. Caught by looking at the page; every token resolved
   and every class was styled, so nothing static would have flagged it. */
header:not(.masthead) {
  background: var(--navy); color: #fff;
  padding: var(--s-7) 20px var(--s-6); text-align: center;
}
header:not(.masthead) .mark { color: #fff; margin-bottom: var(--s-3); }
header:not(.masthead) h1 { max-width: 680px; margin: var(--s-3) auto 10px; }
header:not(.masthead) p.lede { opacity: .92; margin: 0 auto; max-width: 600px; font-size: var(--t-lg); color: #fff; }

.btn {
  display: inline-block; background: var(--gold); color: var(--ink);
  text-decoration: none; padding: 13px var(--s-5);
  border-radius: var(--r-3); font-weight: 700;
}
header:not(.masthead) .btn { margin-top: var(--s-5); }
.btn-note { display: block; margin-top: 10px; font-size: var(--t-xs); opacity: .8; }

section { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

ol { padding-left: var(--s-5); }
li { margin: var(--s-2) 0; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-1); }
.card { border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-3) var(--s-4); }
.card p { margin: 0; font-size: var(--t-sm); color: #444; }

.faq h3 { margin-top: var(--s-4); }
.faq p { margin: var(--s-1) 0 0; color: var(--muted); }
.price { font-size: 20px; font-family: var(--serif); }

/* article pages */
.crumbs { font-size: var(--t-xs); color: var(--muted); margin: var(--s-4) 0 var(--s-5); }
.lede { font-size: var(--t-lg); color: var(--muted); margin: 0 0 var(--s-2); }

table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); margin: var(--s-4) 0; }
td, th { border: 1px solid var(--line); padding: var(--s-2) 10px; text-align: left; vertical-align: top; }
th { background: var(--paper); }

code { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-1); padding: 1px 5px; font-size: var(--t-sm); }
pre { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); overflow-x: auto; font-size: var(--t-sm); }

.note { border-left: 3px solid var(--gold); background: var(--cream); padding: var(--s-3) var(--s-4); margin: var(--s-5) 0; font-size: var(--t-md); }
.cta { border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4) var(--s-4); margin: var(--s-6) 0 0; }
.cta .btn { margin-top: var(--s-2); padding: 11px 20px; }

footer {
  border-top: 1px solid var(--line); margin-top: var(--s-7); padding: var(--s-5) 20px var(--s-7);
  text-align: center; font-size: var(--t-xs); color: #666;
  max-width: var(--measure); margin-left: auto; margin-right: auto;
}
footer a { color: var(--navy); }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  :root { --t-2xl: 26px; --t-xl: 20px; }
}
