/* Numbermill sales pages. Same paper, ink and pencil as the app (web/style.css): a sheet of graph
   paper with a red margin line, real book covers and pages laid on it. One family: Baloo 2. */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fcfdfe;
  --grid: #e6edf6;
  --ink: #1d2742;
  --muted: #56617a;
  --margin: #e0605e;
  --pencil: #f4c542;
  --pencil-soft: #fdf1c9;
  --desk: #eef2f7;
  --focus: #2f6fd6;
  --gutter: 96px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent calc(var(--gutter) - 2px), var(--margin) calc(var(--gutter) - 2px), var(--margin) var(--gutter), transparent var(--gutter)),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  background-attachment: local;
  font: 400 19px/1.55 "Baloo 2", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--margin); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* The writing column starts just right of the margin line. */
.sheet { padding: 0 32px 0 calc(var(--gutter) + 40px); max-width: 1240px; }
.band { padding: 72px 0 8px; }
.top { display: flex; align-items: center; gap: 16px; padding: 22px 0; }
.wordmark { font-weight: 700; font-size: 26px; letter-spacing: -0.01em; text-decoration: none; }
.wordmark::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 9px; border-radius: 50%; background: var(--pencil); box-shadow: 0 0 0 2px var(--ink); vertical-align: 1px; }
.top .by { color: var(--muted); font-size: 16px; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 5.6vw, 68px); max-width: 15ch; }
h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 22ch; margin-bottom: 18px; }
/* Pencil stroke under section headings: the one decorative mark, borrowed from the app's buttons. */
h2::after { content: ""; display: block; width: 88px; height: 9px; margin-top: 10px; border-radius: 5px; background: var(--pencil); transform: rotate(-1.2deg); }
h3 { font-size: 23px; margin-bottom: 4px; }
p { margin: 0 0 14px; max-width: 64ch; }
.lead { font-size: 23px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.small { font-size: 16px; color: var(--muted); }

/* ---- hero: words left, a fan of real covers right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: center; padding: 36px 0 24px; }
.hero .lead { margin-top: 20px; }
.fan { position: relative; height: 560px; }
.fan img { position: absolute; width: 58%; border-radius: 4px 10px 10px 4px; box-shadow: -3px 0 0 rgba(29, 39, 66, 0.25) inset, 0 18px 30px -12px rgba(29, 39, 66, 0.45); }
.fan img:nth-child(1) { left: 0; top: 70px; transform: rotate(-8deg); }
.fan img:nth-child(2) { left: 40%; top: 96px; transform: rotate(7deg); }
.fan img:nth-child(3) { left: 19%; top: 0; transform: rotate(-1deg); z-index: 1; }
.oto-note { display: inline-block; margin-bottom: 18px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pencil-soft); font-weight: 700; font-size: 16px; }

/* ---- buy box: an index card pinned to the sheet */
.buy { margin: 22px 0 0; }
.card { position: relative; max-width: 640px; padding: 26px 30px 24px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); }
.price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.price b { font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.card ul { margin: 12px 0 18px; padding-left: 0; list-style: none; }
.card li { position: relative; padding-left: 30px; margin: 6px 0; }
.card li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--margin); border-bottom: 3px solid var(--margin); transform: rotate(-45deg); }
.wp-button { margin: 14px 0 10px; }
.wp-disclaimer { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.nothanks { margin-top: 16px; font-size: 16px; }
/* Visible only until the WarriorPlus code is pasted into sales/wplus.local.json. */
.wp-slot { padding: 12px 14px; border: 2px dashed var(--margin); border-radius: 10px; color: #a33a38; font-size: 15px; background: #fff6f5; }

/* ---- look inside: real pages laid out like sheets on a desk */
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; margin-top: 26px; padding: 0; list-style: none; }
.pages figure { margin: 0; }
.pages img { border: 1px solid #cfd8e6; border-radius: 3px; background: #fff; box-shadow: 0 10px 18px -12px rgba(29, 39, 66, 0.5); }
figcaption { margin-top: 8px; font-size: 16px; line-height: 1.35; color: var(--muted); }
figcaption b { color: var(--ink); }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; margin-top: 26px; }
.covers figure { margin: 0; }
.covers img { border-radius: 3px 8px 8px 3px; box-shadow: 0 12px 22px -12px rgba(29, 39, 66, 0.55); }

/* ---- steps: a real sequence, so it is numbered */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 24px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--pencil); font-weight: 700; font-size: 22px; }

/* ---- two-column fact lists */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 44px; margin-top: 24px; }
.facts p { margin: 0; }
.shot { margin: 26px 0 0; max-width: 720px; }
.shot img { border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.pins img { border-radius: 8px; box-shadow: 0 10px 18px -12px rgba(29, 39, 66, 0.5); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; padding: 0; list-style: none; }
.chips li { padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 16px; }
.chips.season li { background: var(--pencil-soft); }

/* ---- honest notes (pictures, uniqueness): a sticky note */
.note { max-width: 680px; margin-top: 24px; padding: 18px 22px; background: var(--pencil-soft); border-left: 6px solid var(--pencil); border-radius: 4px; }
.note p:last-child { margin-bottom: 0; }

/* ---- FAQ */
.faq { max-width: 760px; margin-top: 18px; }
.faq details { border-bottom: 2px solid var(--grid); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 21px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 26px; color: var(--margin); }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { margin: 8px 0 4px 26px; }

/* ---- legal pages */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h1 { font-size: 46px; max-width: none; margin: 30px 0 8px; }
.legal h2 { font-size: 27px; margin: 34px 0 10px; }
.legal h2::after { width: 56px; height: 7px; }
.legal li { margin: 6px 0; max-width: 64ch; }

footer { margin-top: 80px; padding: 26px 0 40px; border-top: 2px solid var(--ink); font-size: 16px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
footer p { max-width: 80ch; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .fan { height: 420px; max-width: 460px; }
  .steps, .facts, .split { grid-template-columns: 1fr; }
  .pins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 22px; }
  body { font-size: 18px; }
  .sheet { padding: 0 16px 0 36px; }
  .band { padding-top: 52px; }
  .lead { font-size: 20px; }
  .fan { height: 330px; }
  .card { padding: 20px 18px; box-shadow: 4px 4px 0 var(--ink); }
  .price b { font-size: 52px; }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .pins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= motion & mockups (2026-11-02) ================= */

/* ---- hero: a real book in 3D, with a loose printed page beside it */
.stage3d { position: relative; height: 560px; perspective: 1600px; }
.book3d { position: absolute; left: 14%; top: 18px; width: 62%; aspect-ratio: 8.5 / 11; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg); animation: book-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.book3d .b-front { position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; overflow: hidden; transform: translateZ(14px); box-shadow: inset 6px 0 8px -4px rgba(0, 0, 0, .35); }
.book3d .b-front img { width: 100%; height: 100%; object-fit: cover; }
.book3d .b-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 38%); }
/* page block: the paper edge you see on the right of a paperback */
.book3d .b-pages { position: absolute; top: 1.2%; bottom: 1.2%; right: 0; width: 28px; transform-origin: right center; transform: rotateY(90deg) translateX(14px); background: repeating-linear-gradient(90deg, #fff 0 2px, #e7ebf1 2px 3px); }
.book3d .b-back { position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; background: #d9dfe8; transform: translateZ(-14px); box-shadow: 30px 40px 60px -20px rgba(29, 39, 66, .55); }
.loose { position: absolute; width: 44%; border: 1px solid #cfd8e6; border-radius: 3px; background: #fff; box-shadow: 0 16px 28px -16px rgba(29, 39, 66, .55); }
.loose.l1 { right: 0; top: 150px; transform: rotate(7deg); animation: page-in 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.loose.l2 { left: 0; top: 260px; width: 34%; transform: rotate(-9deg); animation: page-in2 1.1s .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes book-in { from { opacity: 0; transform: rotateY(-48deg) rotateX(8deg) translateY(30px); } }
@keyframes page-in { from { opacity: 0; transform: rotate(0deg) translate(-90px, 20px); } }
@keyframes page-in2 { from { opacity: 0; transform: rotate(0deg) translate(90px, 20px); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.proof li { padding: 1px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }

/* ---- page flip: a real book on the desk */
.flipbook { margin-top: 26px; outline: none; }
.fb-book { position: relative; width: min(100%, 860px); aspect-ratio: 17 / 11; perspective: 2600px; cursor: pointer; transition: transform .6s cubic-bezier(.3, .7, .2, 1); touch-action: pan-y; user-select: none; }
.fb-book::before { content: ""; position: absolute; inset: 2% -1% -3% -1%; border-radius: 10px; background: rgba(29, 39, 66, .08); filter: blur(6px); z-index: 0; }
.fb-book.closed { transform: translateX(-25%); }
.fb-book.ended { transform: translateX(25%); }
.fb-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .25, 1); }
.fb-leaf.turned { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.fb-face img { width: 100%; height: 100%; object-fit: cover; }
.fb-front { border-radius: 0 6px 6px 0; box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, .35); }
.fb-back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; box-shadow: inset -14px 0 18px -14px rgba(0, 0, 0, .35); }
.fb-controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 860px; }
.fb-controls button, .v-bar button, .try button { min-width: 48px; min-height: 44px; padding: 6px 16px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: 700 17px/1 "Baloo 2", system-ui, sans-serif; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.fb-controls button:active, .v-bar button:active, .try button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.fb-controls button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.fb-label { flex: 1; color: var(--muted); font-size: 16px; }
.fb-narrow .fb-book { aspect-ratio: 8.5 / 11; width: min(100%, 420px); }
.fb-narrow .fb-book.closed, .fb-narrow .fb-book.ended { transform: none; }
.fb-narrow .fb-leaf { display: none; }
.fb-single { position: absolute; inset: 0; background: #fff; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: 0 14px 26px -14px rgba(29, 39, 66, .6); transform-origin: left center; animation: single-in .3s ease-out; }
.fb-single img { width: 100%; height: 100%; object-fit: cover; }
.fb-single.out-left { transform: perspective(1200px) rotateY(-75deg); opacity: 0; transition: transform .22s ease-in, opacity .22s ease-in; }
.fb-single.out-right { transform: translateX(40px); opacity: 0; transition: transform .22s ease-in, opacity .22s ease-in; }
@keyframes single-in { from { opacity: .4; } }

/* ---- live demo */
.try { margin-top: 22px; }
.try form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; max-width: 900px; }
.try label, .try legend { font-weight: 700; font-size: 16px; }
.try input[type=text] { display: block; width: 220px; min-height: 46px; margin-top: 4px; padding: 6px 12px; border: 2.5px solid var(--ink); border-radius: 10px; font: 400 18px "Baloo 2", system-ui, sans-serif; color: var(--ink); background: #fff; }
.try fieldset { margin: 0; padding: 0; border: 0; }
.seg { display: inline-flex; margin-top: 4px; border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.seg label { position: relative; font-weight: 400; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.try button[type=submit] { background: var(--pencil); }
.try-out { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.try-out figure { margin: 0; }
.try-out canvas { display: block; border: 1px solid #cfd8e6; border-radius: 3px; background: #fff; box-shadow: 0 12px 22px -14px rgba(29, 39, 66, .55); }
#try-status { min-height: 1.5em; margin-top: 14px; color: var(--muted); }

/* ---- what you get: the two files and the answer key */
.files { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: end; margin-top: 26px; }
.files .wrap img { border-radius: 4px; box-shadow: 0 16px 28px -16px rgba(29, 39, 66, .6); }
.stack { position: relative; aspect-ratio: 8.5 / 11; max-width: 280px; margin: 0 0 22px 18px; }
.stack img { position: absolute; inset: 0; border: 1px solid #cfd8e6; border-radius: 3px; background: #fff; box-shadow: 0 10px 18px -12px rgba(29, 39, 66, .5); }
.stack img:nth-child(1) { transform: rotate(-6deg) translate(-14px, 6px); }
.stack img:nth-child(2) { transform: rotate(3deg) translate(10px, 2px); }

/* ---- ages side by side */
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px; max-width: 900px; }
.ages figure { margin: 0; }
.ages img { border: 1px solid #cfd8e6; border-radius: 3px; background: #fff; box-shadow: 0 10px 18px -12px rgba(29, 39, 66, .5); }

/* ---- gallery thumbnails open the viewer */
.pages button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.pages button:hover img { transform: translateY(-3px); }
.pages img { transition: transform .2s ease; }
dialog#viewer { width: min(94vw, 760px); max-height: 94vh; padding: 16px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); }
dialog#viewer::backdrop { background: rgba(29, 39, 66, .6); }
dialog#viewer img { max-height: 74vh; width: auto; margin: 0 auto; border: 1px solid #cfd8e6; background: #fff; }
.v-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.v-cap { flex: 1; font-size: 16px; color: var(--muted); }

/* ---- what $7 includes vs the upgrades */
table.tiers { width: 100%; max-width: 900px; margin-top: 22px; border-collapse: collapse; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; font-size: 17px; }
.tiers th, .tiers td { padding: 10px 14px; border-bottom: 1.5px solid var(--grid); text-align: left; vertical-align: top; }
.tiers thead th { background: var(--ink); color: #fff; }
.tiers td:first-child { font-weight: 700; white-space: nowrap; }
.tiers tr.fe td { background: var(--pencil-soft); }

@media (max-width: 960px) {
  .stage3d { height: 470px; max-width: 520px; }
  .files { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stage3d { height: 390px; }
  .ages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tiers td:first-child { white-space: normal; }
  .try input[type=text] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .book3d, .loose, .fb-single { animation: none !important; }
  .fb-leaf, .fb-book, .fb-single, .pages img { transition: none !important; }
}

.pages + p { margin-top: 26px; }

/* ---- buy buttons (WarriorPlus link) */
.buy-btn { display: inline-block; padding: 14px 28px; border: 3px solid var(--ink); border-radius: 14px; background: var(--pencil); color: var(--ink); font: 700 22px/1.2 "Baloo 2", system-ui, sans-serif; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.buy-btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.buy-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.buy-btn.pending { cursor: not-allowed; }
.buy-btn + .wp-slot { margin-top: 10px; font-size: 13px; padding: 6px 10px; }
.nothanks-link { color: var(--muted); font-size: 16px; }

/* ---- standout: a real page with numbered notes (numbers match the list) */
.annot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; margin-top: 24px; }
.annot-page { position: relative; margin: 0; }
.annot-page img { border: 1px solid #cfd8e6; border-radius: 3px; background: #fff; box-shadow: 0 14px 24px -14px rgba(29, 39, 66, .55); }
.pin, .annot-list li::before { display: grid; place-items: center; width: 30px; height: 30px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--margin); color: #fff; font: 700 16px/1 "Baloo 2", system-ui, sans-serif; }
.pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(255, 255, 255, .85); }
.annot-list { counter-reset: a; margin: 0; padding: 0; list-style: none; }
.annot-list li { counter-increment: a; position: relative; padding-left: 42px; margin-bottom: 14px; font-size: 17px; line-height: 1.45; }
.annot-list li::before { content: counter(a); position: absolute; left: 0; top: 0; }

/* ---- feature map: included in full colour, upgrades faded with a tag */
.fgroup { margin-top: 30px; }
.fgroup h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 25px; }
.tag { padding: 1px 12px; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; letter-spacing: 0; }
.tag.in { background: var(--pencil); }
.tag.up { background: #fff; color: var(--muted); border-color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; gap: 18px; margin-top: 14px; }
.fcard { margin: 0; padding: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.fimg { height: 150px; overflow: hidden; border-radius: 6px; background: var(--desk); }
.fimg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.fcard figcaption { margin-top: 8px; font-size: 15.5px; }
.fimg.fit img { object-fit: contain; object-position: center; background: #fff; }
.locked .fcard { border-color: #b8c0d0; background: rgba(255, 255, 255, .7); }
.locked .fimg img { filter: blur(2.5px) grayscale(.5); opacity: .7; }
.locked .fcard figcaption { color: var(--muted); }
.locked .fcard figcaption b { color: var(--muted); }

/* ---- comparison table */
.cmp-wrap { overflow-x: auto; margin-top: 20px; max-width: 1080px; }
table.cmp { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1.5px solid var(--grid); text-align: left; vertical-align: top; background: rgba(255, 255, 255, .85); }
.cmp thead th { font-size: 17px; border-bottom: 2.5px solid var(--ink); }
.cmp th[scope=row] { width: 22%; font-weight: 700; }
.cmp .us { background: var(--pencil-soft); border-left: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); font-weight: 700; }
.cmp thead .us { background: var(--pencil); border-top: 2.5px solid var(--ink); border-radius: 10px 10px 0 0; }
.cmp tbody tr:last-child .us { border-bottom: 2.5px solid var(--ink); }

/* ---- market notes: sticky notes on the sheet */
.mkt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 12px; max-width: 1000px; }
.mnote { padding: 16px 18px; background: var(--pencil-soft); border-left: 6px solid var(--pencil); border-radius: 4px; box-shadow: 0 8px 14px -12px rgba(29, 39, 66, .5); }
.mnote:nth-child(2n) { transform: rotate(.6deg); }
.mnote:nth-child(3n) { transform: rotate(-.5deg); }
.mnote b { display: block; font-size: 28px; line-height: 1.1; }
.mnote span { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }

@media (max-width: 960px) {
  .annot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .annot-list { grid-column: 1 / -1; }
  .mkt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mkt { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fimg { height: 110px; }
  .pin { width: 24px; height: 24px; font-size: 13px; }
}

/* ---- call-to-action bands between sections, and the sticky buy bar */
.cta-band { margin: 64px 0 0; padding: 26px 28px; max-width: 900px; background: #fff; border: 2.5px dashed var(--ink); border-radius: 16px; }
.cta-band p:first-child { font-weight: 700; font-size: 22px; line-height: 1.3; margin-bottom: 14px; }
.cta-band .small { margin: 12px 0 0; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap; padding: 10px 16px; background: var(--ink); color: #fff; box-shadow: 0 -8px 24px rgba(29, 39, 66, .25); }
.buybar[hidden] { display: none; }
.buybar b { color: var(--pencil); }
.buybar .buy-btn { padding: 8px 20px; font-size: 18px; box-shadow: 3px 3px 0 #000; border-color: #000; }
.buybar .wp-slot { display: none; }
body.has-buybar { padding-bottom: 76px; }
@media (max-width: 640px) {
  .buybar span { display: none; }
  .cta-band { padding: 20px 16px; }
  .cta-band p:first-child { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .buy-btn { transition: none; } }

/* ---- pains and fixes */
.pains { display: grid; gap: 14px; max-width: 900px; margin: 22px 0 0; padding: 0; list-style: none; }
.pains li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 18px; align-items: start; padding: 14px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.pains p { margin: 0; }
.pain { font-weight: 700; color: #a33a38; text-decoration: line-through; text-decoration-color: rgba(224, 96, 94, .6); text-decoration-thickness: 2px; }
.fix { font-size: 17px; }
/* ---- Amazon proof screenshots */
.proof-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; max-width: 1100px; }
.proof-shots figure { margin: 0; }
.proof-shots img { border-radius: 6px; box-shadow: 0 12px 22px -14px rgba(29, 39, 66, .55); }
/* ---- free sample file */
.sample-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; max-width: 900px; padding: 18px 22px; background: var(--pencil-soft); border-radius: 12px; }
.sample-file p { margin: 0; flex: 1 1 320px; }
.ghost-btn { display: inline-block; padding: 10px 18px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
/* ---- who it's for, fit check */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1100px; margin-top: 18px; }
.who h3 { font-size: 20px; }
.who p { font-size: 16.5px; }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin-top: 18px; }
.fit > div { padding: 16px 20px; border-radius: 12px; background: #fff; border: 2px solid var(--ink); }
.fit .no { border-style: dashed; }
.fit ul { margin: 8px 0 0; padding-left: 20px; }
.fit li { margin: 6px 0; font-size: 17px; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pains li, .proof-shots, .fit { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
}

/* ================= livelier look (owner, 2026-11-02): cover colours, moving hero, tinted bands ================= */
:root {
  --c-red: #ef5a5a; --c-blue: #3d7fe6; --c-teal: #18a999; --c-orange: #f5a524; --c-purple: #8b5cf6;
  --t-peach: #fff1e8; --t-mint: #e7f7f2; --t-sky: #e9f2ff; --t-lilac: #f2edff;
}
html, body { overflow-x: clip; }
/* hero: soft colour blobs drifting behind, number tiles from the covers bobbing */
.hero-live { position: relative; isolation: isolate; }
.hero-bg { position: absolute; z-index: -1; top: -90px; bottom: -40px; left: calc(-1 * (var(--gutter) + 40px)); right: -50vw; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; left: 52%; top: -120px; background: #ffd56b; }
.blob.b2 { width: 460px; height: 460px; left: 72%; top: 220px; background: #9fd0ff; animation-duration: 26s; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; left: 30%; top: 360px; background: #b8f0de; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.08); } 100% { transform: translate(50px, -30px) scale(.95); } }
.tile { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 12px; color: #fff; font: 700 28px/1 "Baloo 2", system-ui, sans-serif; box-shadow: 3px 4px 0 var(--ink); animation: bob 6s ease-in-out infinite; }
.hero-tiles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero > div:not(.hero-bg):not(.hero-tiles) { position: relative; z-index: 1; }
.tile.t1 { left: 52%; top: 6%; background: var(--c-red); }
.tile.t2 { left: 95%; top: 12%; background: var(--c-blue); animation-delay: -1s; }
.tile.t3 { left: 93%; top: 80%; background: var(--c-teal); animation-delay: -2s; }
.tile.t4 { left: 55%; top: 86%; background: var(--c-orange); animation-delay: -3s; }
.tile.t5 { left: 76%; top: 1%; background: var(--c-purple); animation-delay: -4s; }
.tile.t6 { left: 72%; top: 94%; width: 40px; height: 40px; font-size: 22px; background: #fff; color: var(--ink); animation-delay: -2.5s; }
.tile.t7 { left: 99%; top: 48%; width: 40px; height: 40px; font-size: 22px; background: #fff; color: var(--ink); animation-delay: -5s; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -14px; rotate: 6deg; } }
.spark { position: absolute; width: 18px; height: 18px; background: var(--pencil); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 3.2s ease-in-out infinite; }
.spark.s1 { left: 62%; top: 20%; } .spark.s2 { left: 90%; top: 62%; animation-delay: -1.2s; } .spark.s3 { left: 66%; top: 92%; animation-delay: -2.1s; }
@keyframes twinkle { 0%, 100% { transform: scale(.5) rotate(0); opacity: .4; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
.hero-live h1 { background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 55%, #3b3f9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tinted full-width bands */
.tint { position: relative; padding-bottom: 56px; margin-top: 40px; }
.tint::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * (var(--gutter) + 40px)); right: -100vw; border-radius: 0; }
.tint-peach::before { background: var(--t-peach); } .tint-mint::before { background: var(--t-mint); } .tint-sky::before { background: var(--t-sky); } .tint-lilac::before { background: var(--t-lilac); }
.band, .cta-band { position: relative; }
main { position: relative; isolation: isolate; }
.tint h2::after { background: var(--c-orange); }
.tint-mint h2::after { background: var(--c-teal); } .tint-sky h2::after { background: var(--c-blue); } .tint-lilac h2::after { background: var(--c-purple); }
.cta-band { background: linear-gradient(120deg, #fff 0%, #fff7dc 100%); border-style: solid; box-shadow: 6px 6px 0 var(--ink); }
.buy-btn { background: linear-gradient(180deg, #ffd95e 0%, var(--pencil) 100%); position: relative; overflow: hidden; }
.buy-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.pains li:nth-child(5n+1) { border-left: 8px solid var(--c-red); } .pains li:nth-child(5n+2) { border-left: 8px solid var(--c-blue); }
.pains li:nth-child(5n+3) { border-left: 8px solid var(--c-teal); } .pains li:nth-child(5n+4) { border-left: 8px solid var(--c-orange); } .pains li:nth-child(5n+5) { border-left: 8px solid var(--c-purple); }
.fgroup:not(.locked) .fcard:nth-child(5n+1) { box-shadow: 4px 4px 0 var(--c-red); } .fgroup:not(.locked) .fcard:nth-child(5n+2) { box-shadow: 4px 4px 0 var(--c-blue); }
.fgroup:not(.locked) .fcard:nth-child(5n+3) { box-shadow: 4px 4px 0 var(--c-teal); } .fgroup:not(.locked) .fcard:nth-child(5n+4) { box-shadow: 4px 4px 0 var(--c-orange); } .fgroup:not(.locked) .fcard:nth-child(5n+5) { box-shadow: 4px 4px 0 var(--c-purple); }

/* free seller kit: inline and popup */
.kit { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: start; max-width: 880px; margin-top: 18px; }
.kit-cover { border: 1px solid #cfd8e6; border-radius: 4px; background: #fff; box-shadow: 0 14px 24px -14px rgba(29, 39, 66, .55); transform: rotate(-3deg); }
.kit-list { margin: 0 0 14px; padding: 0; list-style: none; }
.kit-list li { position: relative; padding-left: 28px; margin: 4px 0; }
.kit-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 3px solid var(--c-teal); border-bottom: 3px solid var(--c-teal); transform: rotate(-45deg); }
.kit-form { display: grid; gap: 10px; max-width: 520px; }
.kit-form label { font-weight: 700; font-size: 16px; }
.kit-form input[type=email] { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 8px 12px; border: 2.5px solid var(--ink); border-radius: 10px; font: 400 18px "Baloo 2", system-ui, sans-serif; color: var(--ink); background: #fff; }
.kit-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.4; }
.kit-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.kit-form button { justify-self: start; min-height: 48px; padding: 8px 22px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--c-teal); color: #fff; font: 700 18px/1 "Baloo 2", system-ui, sans-serif; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.kit-form button:disabled { opacity: .6; }
.kit-msg { margin: 0; min-height: 1.4em; font-size: 16px; color: var(--muted); }
.kit-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; font-weight: 700; }
.kit-links[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
dialog#kit-pop { width: min(94vw, 760px); max-height: 92vh; padding: 26px 26px 18px; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
dialog#kit-pop::backdrop { background: rgba(29, 39, 66, .55); }
dialog#kit-pop[open] { animation: pop-in .35s cubic-bezier(.2, .8, .2, 1.1); }
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
dialog#kit-pop h2 { font-size: 30px; padding-right: 40px; }
.kit-x { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font: 700 22px/1 system-ui; cursor: pointer; }
@media (max-width: 760px) {
  .kit { grid-template-columns: 1fr; }
  .kit-cover { width: 140px; }
  .hero-bg .tile { width: 40px; height: 40px; font-size: 20px; }
  .hero-tiles { top: auto; height: 420px; bottom: 0; } .tile.t1 { left: 8%; top: 4%; } .tile.t2 { left: 84%; top: 6%; } .tile.t4 { left: 82%; top: 86%; } .tile.t5 { left: 46%; top: -2%; } .tile.t6, .tile.t7, .tile.t3 { display: none; }
  dialog#kit-pop { padding: 20px 16px 14px; } dialog#kit-pop h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .tile, .spark, .buy-btn::after, dialog#kit-pop[open] { animation: none !important; }
}

/* ================= centred layout (owner, 2026-11-02) =================
   The writing column sits in the middle of the window; the red margin line moves with it.
   Section titles and their first line are centred; grids and cards are centred blocks. */
body { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px, 24px 24px; }
.sheet { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 40px 0 76px; }
.sheet::before { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: 36px; width: 2px; background: var(--margin); opacity: .8; }
.hero-bg { left: -50vw; right: -50vw; }
.tint::before { left: -100vw; right: -100vw; }
.band > h2, .band > h2 + p, .band > h2 + p + p { margin-left: auto; margin-right: auto; text-align: center; }
.band > h2::after { margin-left: auto; margin-right: auto; }
.hero h1 { text-align: left; }
.flipbook, .fb-book, .fb-controls, .try form, .try-out, .annot, .fgroup, .cmp-wrap, .mkt, .proof-shots, .files, .ages, .pages, .covers, .pains, .who, .fit, .kit, .faq, .sample-file, .cta-band, .card, .steps, .facts, .split, .shot, .pins, .note, .fgrid, table.tiers { margin-left: auto; margin-right: auto; }
.fgroup { max-width: 900px; }
.try form, .try-out { justify-content: center; }
#try-status, .try > p.small, .band > p.small, .band > .small { text-align: center; margin-left: auto; margin-right: auto; }
.chips { justify-content: center; }
.band > h3 { text-align: center; }
.cta-band { text-align: center; }
.cta-band .wp-button { display: flex; flex-direction: column; align-items: center; }
.buy h2 { text-align: center; }
.legal { margin: 0 auto; }
.legal h1, .legal h2 { text-align: left; }
.legal h2::after { margin-left: 0; }
footer { text-align: center; }
footer nav { justify-content: center; }
footer p { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .sheet { padding: 0 16px 0 30px; }
  .sheet::before { left: 16px; }
}

/* ---- device + book mockup under the hero */
.mockup { max-width: 1100px; margin: 34px auto 0; }
.mockup img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(29, 39, 66, .55); }
.mockup figcaption { text-align: center; }

/* ---- upgrade pages: with / without table, JV swipes */
table.ww { min-width: 620px; }
.ww th[scope=row] { width: 26%; }
.swipe { font-size: 16px; line-height: 1.55; background: #fff; padding: 12px 16px; border-radius: 8px; border: 1.5px solid var(--grid); }
.pains li:has(> p.fix:only-child) { grid-template-columns: 1fr; }
