/* Shared by every sales page. src/build-sales-pages.js puts this first, then the page's own style.css, into one
   style.css. Only what two real pages proved they share is here: the reset, the hidden-text helper and the standard
   footer. Everything else (colours, type, layout) stays in each page's own style.css. */

* { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The standard Foundry footer (CLAUDE.md "Footer"): the same paper strip as the blog, About, legal and Products pages
   (colours and sizes from src/blog/assets/style.css; src/test-sales-pages.js checks they still match). It takes the
   page's own font. The thin rule on top is only there because sales pages are white, not sage like the rest. */
footer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 56px; padding: 14px 24px; background: #FAF7F0; color: #555555;
  border-top: 1px solid #d8d8d8; font-size: 13px; text-align: center;
}
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.credit { margin: 0; font-size: 12px; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

/* The Profit Wormhole sales page.
   Matches the WordPress page it replaces (colours, type and layout read from the live page on 2026-11-12): a wide
   letter on a white box inside a deep-blue dotted border, on a page of fine grey diagonal stripes; Muli body text in
   grey, Literata for the teaser and the two-line headline, Libre Franklin for the order-form line, a dashed pale-blue
   offer box with one green button.
   Sizes shrink on a phone (the WordPress page kept its 53px title and 36px headings at 375px wide).
   Written by copying the Tony Shepherd page's stylesheet (the two are cousins): if a third "letter" page arrives, pull
   what the three share into a letter stylesheet. The reset and footer come from ../_shared.css; fonts are
   self-hosted from fonts/ (no request to Google). */

@font-face { font-family: 'Muli'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("fonts/muli-latin.woff2") format("woff2"); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/literata-latin.woff2") format("woff2"); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/libre-franklin-latin.woff2") format("woff2"); }

:root {
  --ink: #0c1115;
  --grey: #6a6b6c;
  --frame: #201652;        /* the dotted border */
  --red: #e11d09;
  --green: #61e138;        /* the buy button */
  --offer-bg: rgba(202, 255, 250, 0.5);
  --rule: #424242;
  --font-body: 'Muli', Arial, sans-serif;
  --font-serif: 'Literata', Georgia, serif;
  --font-order: 'Libre Franklin', Arial, sans-serif;
}

body {
  margin: 0; background: #fff; color: var(--grey);
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- The striped page and the letter ---- */
main {
  padding: 30px 12px 20px;
  background: repeating-linear-gradient(135deg, rgba(148, 163, 176, 0.7), rgba(148, 163, 176, 0.7) 3px, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0) 6px);
}
.letter {
  max-width: 880px; margin: 0 auto 20px; padding: 20px;
  border: 8px dotted var(--frame); background: #fff;
}
.letter p { margin: 0 0 22px; font-size: clamp(18px, calc(12px + 1.1vw), 25px); line-height: 1.75; }
.letter strong { font-weight: 800; }
.letter u { text-decoration: underline; }

/* ---- Masthead: Tony, the teaser and the tokens, Neil ---- */
.masthead { display: grid; grid-template-columns: 125px 1fr 125px; gap: 15px; align-items: start; margin: 10px 0 0; }
.who { text-align: center; }
.who img { width: 125px; height: auto; margin: 20px auto 0; }
.letter .who p { margin: 12px 0 0; font-size: 13px; font-weight: 800; line-height: 1.75; color: var(--grey); }
.teaser { text-align: center; padding-top: 10px; }
.letter .teaser-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(17px, calc(11px + 1vw), 23px); line-height: 1.4; color: var(--ink); margin: 0 0 12px; }
.letter .teaser-note { color: var(--red); font-weight: 800; font-size: clamp(14px, calc(10px + 0.8vw), 17px); line-height: 1.75; margin-bottom: 16px; }
.pic { text-align: center; }
.pic img { margin: 0 auto; max-width: 100%; height: auto; }
.letter .tokens { margin: 0 0 10px; }
.tokens img { width: 276px; }

/* ---- Title, dividers, quote ---- */
.big-title {
  margin: 4px 0 0; text-align: center; color: var(--grey);
  font-family: var(--font-body); font-weight: 700; line-height: 1.55;
  font-size: clamp(30px, calc(14px + 4vw), 53px);
}
.rule { border: 0; border-bottom: 2px solid var(--rule); margin: 20px 40px; }
.quote-row { display: grid; grid-template-columns: 115px 1fr; gap: 20px; align-items: center; margin: 0 0 10px; }
.quote-row img { width: 115px; height: auto; }
.letter .quote { margin: 0; text-align: center; font-weight: 800; font-style: italic; font-size: clamp(18px, calc(12px + 1.1vw), 23px); line-height: 1.75; }
.letter .arrow { margin: 6px 0 0; }
.arrow img { width: 272px; }
.letter .product-name { margin: 0; text-align: center; font-weight: 800; font-size: clamp(30px, calc(12px + 4.5vw), 54px); line-height: 1.75; }
.letter .def { margin: 4px 0 20px; font-family: var(--font-serif); font-size: clamp(15px, calc(10px + 0.9vw), 20px); line-height: 1.6; color: var(--ink); }
.headline {
  margin: 20px 0; text-align: center; color: var(--grey);
  font-family: var(--font-serif); font-weight: 600; line-height: 1.3;
  font-size: clamp(24px, calc(14px + 2.2vw), 40px);
}

/* ---- Body headings ---- */
.letter h2:not(.headline) {
  margin: 34px 0 20px; text-align: center; color: var(--grey);
  font-family: var(--font-body); font-weight: 800; line-height: 1.5;
  font-size: clamp(24px, calc(14px + 2.6vw), 36px);
}
.letter h2.left { text-align: left; }
.letter .from { margin: 26px 0 18px; }
.letter .from em { font-style: italic; }

/* ---- The offer box ---- */
.offer {
  margin: 34px 0 10px; padding: 20px; background: var(--offer-bg);
  border: 4.667px dashed var(--grey); text-align: center;
}
.letter .offer .offer-line { margin: 0; font-weight: 800; font-size: clamp(26px, calc(14px + 2.6vw), 36px); line-height: 1.5; }
.letter .offer .offer-order { margin: 14px 0 0; font-size: clamp(22px, calc(12px + 2.2vw), 33px); line-height: 1.4; }
.letter .buy { margin: 24px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  background: var(--green); color: #fff; text-decoration: none; text-align: center;
  border-radius: 5px; padding: 18px; font-weight: 800; letter-spacing: 2px;
}
.btn:hover, .btn:focus-visible { background: #4fcf27; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.check-icon { flex: none; width: 58px; height: 58px; fill: currentColor; }
.btn-text { font-size: clamp(22px, calc(14px + 1.6vw), 29px); line-height: 1.2; }
.letter .offer .cards { margin: 16px 0 10px; }
.offer .cards img { width: 376px; }
.letter .offer .secure { margin: 0; color: var(--ink); font-family: var(--font-order); font-size: 11px; font-weight: 700; line-height: 1.75; }

/* ---- Signatures and small print ---- */
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: center; margin: 20px 0; }
.signs img { margin: 0 auto; max-width: 100%; height: auto; }
.signs img:first-child { width: 274px; }
.signs img:last-child { width: 226px; }
.letter .small { font-size: clamp(17px, calc(11px + 0.9vw), 23px); line-height: 1.75; margin: 0 0 18px; }

/* ---- Earnings disclaimer: the words that were a picture on the WordPress page ---- */
.earnings { max-width: 880px; margin: 0 auto 10px; padding: 18px 22px 6px; background: #fff; font-family: var(--font-order); color: #4a4a4a; }
.earnings h2 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.earnings p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }

/* ---- Smaller screens ---- */
@media (max-width: 600px) {
  main { padding: 16px 8px 14px; }
  .letter { padding: 14px; border-width: 6px; }
  .masthead { grid-template-columns: 1fr 1fr; gap: 10px; }
  .masthead .teaser { grid-column: 1 / -1; grid-row: 2; }
  .masthead .who-neil { grid-column: 2; grid-row: 1; }
  .rule { margin-inline: 10px; }
  .quote-row { grid-template-columns: 80px 1fr; gap: 12px; }
  .quote-row img { width: 80px; }
  .signs { grid-template-columns: 1fr; }
  .btn { padding: 14px 12px; gap: 10px; letter-spacing: 1px; }
  .check-icon { width: 40px; height: 40px; }
  .offer { padding: 14px; }
}
