/* The /toolkit shop.
 *
 * A file rather than five inline <style> blocks: the toolkit is the only part of the site
 * with more than two pages sharing a layout, and five hand-maintained copies is what made
 * the product pages drift in the first place. Same-origin, so it costs one cached request
 * and trips nothing in the third-party host test.
 *
 * The palette is the site's: navy #1a284b, link #1f6feb. Green is the primary action: the
 * buy button, and the one hook above the packs that sends a reader to the worked examples
 * before they reach a price. Nothing else in here uses it. */

:root {
  --navy: #1a284b;
  --navy-2: #24365e;
  --ink: #1f2a36;
  --body: #2a3440;
  --muted: #6b7682;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --link: #1f6feb;
  --buy: #12924a;
  --buy-hi: #16a758;
  --tint: #eef3fa;
  --shadow: 0 1px 2px rgba(26, 40, 75, .06), 0 8px 24px rgba(26, 40, 75, .07);
  --shadow-lg: 0 2px 4px rgba(26, 40, 75, .07), 0 18px 48px rgba(26, 40, 75, .13);
}

* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; vertical-align: -4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }

h1, h2, h3 { color: var(--navy); line-height: 1.22; margin: 0; }
h1 { font-size: 38px; letter-spacing: -.02em; }
h2 { font-size: 25px; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 17px; }
p { line-height: 1.65; margin: 0 0 12px; }
code {
  background: var(--tint); border: 1px solid #dde6f2; border-radius: 5px;
  padding: 1px 5px; font-family: ui-monospace, Menlo, monospace; font-size: .88em;
  color: var(--navy); white-space: nowrap;
}
.lede { font-size: 17.5px; line-height: 1.6; color: #455261; }
/* The conversion hook, demoted from H1 so the H1 can carry the search term. */
.deck { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--navy); margin: 12px 0 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 52px 0 56px; margin-bottom: 38px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .deck { color: #dbe8f8; max-width: 44ch; }
.hero .lede { color: #c6d5e8; max-width: 60ch; margin: 12px 0 0; }
.hero .eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #7fb0e6; margin: 0 0 12px;
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #d7e3f2; }
.trust .ic { width: 17px; height: 17px; color: #6ee7a8; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 700 15.5px/1 system-ui, -apple-system, sans-serif; cursor: pointer;
  text-align: center; transition: filter .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-buy { background: var(--buy); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.btn-buy:hover { background: var(--buy-hi); }
.btn-ghost { background: #fff; color: var(--navy); border-color: #cfdae9; font-weight: 600; }
.btn-ghost:hover { background: var(--tint); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { filter: brightness(1.18); }
.btn-wide { width: 100%; }
.btn[disabled], .btn.soon { background: #aeb8c4; color: #fff; cursor: not-allowed; pointer-events: none; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.price { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price small { font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.paynote { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }
/* Quiet, but present before the buy button rather than only at checkout. */
.precontract {
  font-size: 12px; line-height: 1.55; color: var(--muted);
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
}
.precontract a { color: var(--muted); text-decoration: underline; }
.paynote .ic { width: 15px; height: 15px; vertical-align: -3px; }

/* ── Product cards (shop front) ─────────────────────────────────────────── */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard .shot {
  background: var(--tint); border-bottom: 1px solid var(--line);
  padding: 22px 22px 0; height: 208px; overflow: hidden; display: block;
}
.pcard .shot img {
  width: 100%; border-radius: 6px 6px 0 0; border: 1px solid #d8e2ee; border-bottom: 0;
  box-shadow: 0 -1px 14px rgba(26,40,75,.10); display: block;
}
.pcard .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard .ptitle { display: flex; gap: 13px; align-items: flex-start; margin: 0 0 14px; }
.pcard .ptitle > div { min-width: 0; }
.pcard h3 { font-size: 19px; margin: 0 0 4px; }
.pcard .sub { color: var(--muted); font-size: 14px; margin: 0; }
.cardlink { font-size: 13px; margin: 0 0 14px; }
.cardlink .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
.pcard ul { margin: 0 0 16px; padding: 0; list-style: none; }
.pcard li { font-size: 14px; line-height: 1.5; padding: 5px 0 5px 25px; position: relative; }
.pcard li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: #9fc3ea;
}
.pcard .buyrow {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.meta { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.meta b { color: var(--body); font-weight: 600; }

/* ── Product page ───────────────────────────────────────────────────────── */
.buylayout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
/* The whole right-hand column is what sticks, not just the card. When the card alone was
   sticky it became a positioned element and painted over the "Both packs / Lost your link"
   line below it, which scrolled underneath and disappeared. */
.buylayout > aside { align-self: stretch; }
/* Clears the sticky 56px navbar - at top:20px the buy panel slid underneath it. */
.panelwrap { position: sticky; top: 76px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow);
}
/* Two equal ghost buttons under the buy panel. As bare links they read as stray text
   beside a card; as buttons they match the panel they hang off. */
.panelfoot { display: flex; gap: 8px; margin: 14px 0 0; }
.panelfoot .btn { flex: 1; padding: 10px 8px; font-size: 13px; gap: 6px; }
.panelfoot .ic { width: 16px; height: 16px; }
.panel ul { list-style: none; margin: 16px 0 0; padding: 0; }
.panel li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; padding: 6px 0; line-height: 1.5; }
.panel li .ic { width: 17px; height: 17px; color: var(--buy); margin-top: 1px; }
.panel .btn { margin-top: 16px; }

/* Page images are ~1.3× taller than they are wide. Shown whole they push the contents
   table off the screen entirely, so every shot is cropped from the top - the part that
   carries the letterhead and the title is the part that sells it. */
.gallery { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin: 0 0 34px; align-items: start; }
.gallery a {
  display: block; position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
.gallery a:hover { border-color: #a9c4e6; }
.gallery img { display: block; width: 100%; object-fit: cover; object-position: top center; }
.gallery .lead img { height: 470px; }
.gallery .stack { display: grid; gap: 12px; }
.gallery .stack a { height: 229px; }
.gallery .stack img { height: 100%; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 12.5px; color: var(--navy); padding: 9px 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .95);
  font-weight: 600;
}
.gallery figure { margin: 0; }

.hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 34px; }
.hl div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; }
.hl h3 { font-size: 15px; margin: 0 0 5px; }
.hl p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.hl .bic { margin-bottom: 10px; }

/* The icon chip. One shape everywhere - benefit blocks, highlight cards, product cards -
   so the page reads as one system rather than three that happen to share a palette. */
.bic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--tint); color: var(--navy); border: 1px solid #dbe6f4;
  /* As a flex item the chip shrinks to whatever the text beside it leaves over, so a
     card with a longer subtitle gets a visibly narrower icon than its neighbour. */
  flex: none;
}
.bic .ic { width: 21px; height: 21px; vertical-align: 0; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.benefits > div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow);
}
.benefits h3 { font-size: 16.5px; margin: 13px 0 7px; }
.benefits p { font-size: 14px; color: #4a5663; margin: 0; line-height: 1.62; }
.benefit-close {
  margin: 22px 0 0; text-align: center; font-size: 14.5px; color: var(--muted);
}

table.inc { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 34px; }
table.inc td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: top; }
table.inc tr:first-child td { border-top: 0; }
table.inc td:first-child { font-weight: 600; color: var(--navy); width: 42%; }
table.inc td:last-child { color: var(--muted); }

.strip {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; margin: 0 0 34px; box-shadow: var(--shadow);
}
.strip.free { background: #edf9f1; border-color: #b9e4c9; }
.strip.free h2, .strip.free h3 { color: #10603a; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; font-size: 14px; line-height: 1.6; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.steps b { display: block; color: var(--navy); margin-bottom: 3px; font-size: 14.5px; }

details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 18px; margin: 0 0 10px;
}
details.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--navy); font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 400; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { font-size: 14px; color: var(--body); margin: 0 0 16px; }

/* Prose lists, for the legal pages. The shop's own lists are all styled by their block. */
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { font-size: 15px; line-height: 1.65; margin: 6px 0; color: var(--body); }
.prose h2 { font-size: 20px; margin: 34px 0 10px; }
.prose h2:first-of-type { margin-top: 24px; }
.prose p { font-size: 15px; }
.prose .updated { font-size: 12.5px; color: var(--muted); margin: 0 0 26px; }

section { margin: 0 0 42px; }
.sechead { margin: 0 0 16px; }
.sechead p { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }

.foot {
  margin-top: 48px; padding: 22px 0 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; line-height: 1.65;
}
.foot a { color: var(--muted); text-decoration: underline; }
.cc-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Mobile buy bar. Below the fold the price and the button leave the screen entirely on a
   phone, and this is the page's only job. */
.buybar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
  box-shadow: 0 -4px 18px rgba(26,40,75,.12);
  align-items: center; gap: 12px;
}
.buybar .price { font-size: 22px; }
.buybar .btn { flex: 1; padding: 13px 16px; }

/* ── Worked examples ────────────────────────────────────────────────────────
   The report renders as a document, not as a web page: white sheet, tight measure,
   serif-free but printed-looking. It has to survive being read as evidence of what the
   buyer gets, so it must not look like marketing. */
.exgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 38px; }
.excard {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px 16px; color: inherit; box-shadow: var(--shadow);
  transition: box-shadow .12s ease, transform .12s ease;
}
.excard:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.excard h3 { font-size: 16px; margin: 10px 0 7px; color: var(--navy); }
.excard p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.exfoot { font-size: 12.5px; color: var(--link); font-weight: 600; }
.extag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); background: var(--tint);
  border-radius: 999px; padding: 4px 10px;
}
.extag-free { color: #0b6b38; background: #e3f7ec; }

.exmeta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
.exmeta span, .exmeta a { display: inline-flex; align-items: center; gap: 7px; }
.exmeta .ic { width: 16px; height: 16px; color: var(--buy); }

/* Sits above the packs: the worked examples are what convince someone the documents are
   worth paying for, so they should not be found after the price. */
.exhook {
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  margin: 0 0 28px; box-shadow: var(--shadow);
  /* The button is flush to the card edge and square; the card's own radius clips it. */
  overflow: hidden;
}
.exhook > div { flex: 1; align-self: center; padding: 20px 24px; }
.exhook-lead { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 5px; }
.exhook .sub { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 68ch; line-height: 1.55; }
/* Narrow and full-height: a tall green block reads as one target, where a small pill
   floating in white space did not. */
.exhook .btn {
  flex: none; width: 164px; border-radius: 0; padding: 16px;
  flex-direction: column; gap: 10px; line-height: 1.3;
}
.exhook .btn .ic { width: 22px; height: 22px; }

/* The same block, sized for the 330px buy column: one line of text and an arrow. */
.exhook-sm { margin: 14px 0 0; }
.exhook-sm > div { padding: 14px 16px; }
.exhook-sm .exhook-lead { font-size: 15px; margin: 0; }
.exhook-sm .btn { width: 68px; padding: 12px; }
/* Mirrored: the green block leads on the left, because this one goes back. The text div
   keeps its own 16px left padding, which is what separates it from the button. */

/* The note under the report reuses details.faq, so there is one expandable block on the
   site rather than two that drift apart. */
.exafter { margin: 24px 0 0; }

.rpt {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 38px 44px; margin: 8px 0 0; box-shadow: var(--shadow);
  font-size: 14.5px; line-height: 1.62; color: var(--ink);
}
.rpt p { margin: 0 0 13px; }
.rpt-title { border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin: 0 0 22px; }
.rpt-title h2 { font-size: 24px; margin: 0; }
.rpt-title p { font-size: 15px; color: var(--muted); margin: 5px 0 0; }
.rpt-h1 { font-size: 17px; margin: 30px 0 11px; color: var(--navy); }
.rpt-h2 { font-size: 15px; margin: 22px 0 9px; color: var(--navy); }
.rpt-h3 { font-size: 14px; margin: 18px 0 8px; color: var(--body); }
.rpt-rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.rpt-caption { font-size: 12.5px; color: var(--muted); font-style: italic; }
.rpt-list { margin: 0 0 13px; padding-left: 20px; }
.rpt-list li { margin: 0 0 7px; }
.rpt-note {
  background: var(--tint); border-left: 3px solid var(--link); border-radius: 0 8px 8px 0;
  padding: 13px 16px; margin: 0 0 20px; font-size: 13.5px; color: var(--body);
}
.rpt-kv { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.rpt-kv th, .rpt-kv td { text-align: left; padding: 7px 12px 7px 0; vertical-align: top; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.rpt-kv th { font-weight: 600; color: var(--navy); width: 32%; }
.rpt-scroll { overflow-x: auto; margin: 0 0 18px; }
.rpt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rpt-table th, .rpt-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.rpt-table th { background: var(--tint); color: var(--navy); font-weight: 700; }
.rpt-finding { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 4px; margin: 0 0 16px; }
.rpt-finding-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.rpt-ref { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.rpt-grade {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; border-radius: 999px;
  padding: 3px 9px; background: var(--tint); color: var(--muted);
}
.rpt-grade-s1 { background: #fdeaea; color: #a11d1d; }
.rpt-grade-s2 { background: #fdf1e3; color: #9a5a10; }
.rpt-grade-s3 { background: #eef3fa; color: #1f4f8f; }
.rpt-finding .rpt-kv { margin-bottom: 10px; }

.rpt-more { border: 1px dashed #c9d6e6; border-radius: 12px; padding: 20px 24px; margin: 20px 0 0; background: var(--tint); }
.rpt-more h3 { font-size: 16px; margin: 0 0 8px; }
.rpt-more p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.rpt-more li { font-size: 14px; margin: 0 0 6px; color: var(--body); }

/* The CTA is the buy panel in a different hat: same card, same sticky column. */
/* Only the blurb, never a bare `p`: as `.excta p` this outranked `.precontract` and
   restyled the withdrawal notice, so the same sentence rendered differently here and on
   the product page. The panel's shared parts must inherit the panel's styles. */
.excta h2 { font-size: 18px; margin: 0 0 8px; }
.excta .exblurb { font-size: 14px; margin: 0 0 14px; color: var(--body); }
.excta .price { margin: 0; }
.excta .cardlink { margin: 12px 0 0; }

@media (max-width: 900px) {
  .exgrid { grid-template-columns: 1fr 1fr; }
  /* Stacked: the green block spans the foot of the card instead of its side. */
  .exhook { flex-direction: column; align-items: stretch; }
  .exhook > div { padding: 20px 20px 16px; }
  .exhook .btn { width: 100%; flex-direction: row; padding: 15px 20px; gap: 9px; }
  .rpt { padding: 26px 24px; }
  .buylayout { grid-template-columns: 1fr; gap: 26px; }
  .panelwrap { position: static; }
  .hl, .steps { grid-template-columns: 1fr; gap: 14px; }
  .shelf { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .hero { padding: 38px 0 40px; margin-bottom: 28px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 15px; }
  h1 { font-size: 26px; } h2 { font-size: 21px; }
  .lede { font-size: 16px; }
  .deck { font-size: 17px; }
  .exgrid { grid-template-columns: 1fr; }
  .rpt { padding: 20px 16px; font-size: 14px; }
  .rpt-kv th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .rpt-kv td { display: block; padding-left: 0; }
  .buybar { display: flex; }
  body.has-buybar { padding-bottom: 74px; }
  table.inc td { padding: 10px 12px; font-size: 13.5px; }
  table.inc td:first-child { width: 46%; }
}
@media (pointer: coarse) {
  .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .btn { transition: none; }
  .pcard:hover { transform: none; }
}
