/* 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 reserved for the buy
 * action and appears nowhere else, so "the green button" is unambiguous on every page. */

: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; }

/* ── Chrome ─────────────────────────────────────────────────────────────── */
.navbar {
  height: 52px; display: flex; align-items: center; gap: 14px;
  padding: 0 18px; background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.navbar .logo { height: 30px; width: auto; flex: none; }
.navbar .spacer { flex: 1; }
.navbar a { color: #cfe0f1; font-size: 13px; }
.navbar a[aria-current] { color: #fff; font-weight: 600; }

.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; }

/* ── 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 .lede { color: #c6d5e8; max-width: 60ch; margin: 14px 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; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow);
  /* Clears the sticky 52px navbar - at top:20px the buy panel slid underneath it. */
  position: sticky; top: 72px;
}
.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; }

@media (max-width: 900px) {
  .buylayout { grid-template-columns: 1fr; gap: 26px; }
  .panel { 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; }
  .navbar { padding: 0 12px; gap: 9px; }
  .navbar a { font-size: 12.5px; }
  .navbar .logo { height: 26px; }
  .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) {
  .navbar a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .btn { transition: none; }
  .pcard:hover { transform: none; }
}
