/* 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 Secrets of a Retired Super-Affiliate sales page.
   Matches the WordPress page it replaces (colours, type and layout read from the live page on 2026-11-12): the same
   narrow letter as the Tony Shepherd page (738 px box in a deep-blue dotted border on white), with red centred
   headings and a green "Continue To Checkout" button used twice. Written by copying the Tony Shepherd page's
   stylesheet; if a fourth letter page arrives, pull what the letter pages share into a letter stylesheet. The reset
   and footer come from ../_shared.css; fonts are self-hosted from fonts/ (no request to Google). Sizes shrink on a
   phone. */

@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;
  --red: #e11d09;
  --green: #26ad09;
  --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;
}

main { padding-inline: 12px; }
.letter { max-width: 738px; margin: 30px auto 20px; padding: 20px; border: 8px dotted var(--frame); background: #fff; }
.letter p { margin: 0 0 18px; font-size: clamp(18px, calc(12px + 1.1vw), 23px); line-height: 1.75; }
.letter strong, .letter b { font-weight: 800; }
.letter u { text-decoration: underline; }

/* ---- Masthead: Tony, the teaser, 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 + 1.3vw), 24px); line-height: 1.4; color: var(--ink); margin: 0 0 12px; }
.teaser-title b { font-weight: 700; }
.letter .teaser-note { color: var(--red); font-weight: 800; font-size: clamp(14px, calc(10px + 0.8vw), 17px); line-height: 1.75; }

.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);
}
.big-title em { font-style: italic; }
.rule { border: 0; border-bottom: 2px solid var(--rule); margin: 20px 40px; }
.letter .from { font-style: italic; font-size: clamp(19px, calc(12px + 1.2vw), 24px); margin: 8px 0 0; line-height: 1.75; }
.letter .sig { margin: 0 0 24px; }
.sig img { width: 197px; max-width: 100%; height: auto; }

/* ---- Pictures ---- */
.pic { text-align: center; }
.pic img { margin: 0 auto; max-width: 100%; height: auto; }
.letter .pic { margin: 18px 0 24px; }
.proof img { width: 670px; }
.letter .pic.cards { margin: 16px 0 10px; }
.pic.cards img { width: 328px; }

/* ---- Body copy: inset, left-aligned, with red centred headings ---- */
.copy { padding-inline: 50px; }
.letter .copy p { text-align: left; }
.letter h2.red {
  margin: 30px 0 18px; text-align: center; color: var(--red);
  font-family: var(--font-order); font-weight: 700; line-height: 1.45;
  font-size: clamp(22px, calc(14px + 1.6vw), 29px);
}
.letter .copy h2.red:first-child { margin-top: 10px; font-size: clamp(24px, calc(14px + 2vw), 33px); }
.letter .copy .big { font-size: clamp(19px, calc(12px + 1.2vw), 23px); }
.letter .copy .big strong { font-weight: 800; }
.letter ul.discover { margin: 0 0 22px; padding-left: 26px; }
.letter .discover li { margin: 0 0 6px; font-size: clamp(16px, calc(11px + 0.7vw), 18px); line-height: 1.5; }
.discover li::marker { color: var(--grey); }

/* ---- The green buy button, used twice ---- */
.actions { text-align: center; }
.letter .buy { margin: 22px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 15px; max-width: 100%;
  color: #fff; text-decoration: none; text-align: center; border-radius: 5px; padding: 18px; letter-spacing: 2px;
}
.btn-go { background: var(--green); }
.btn-go:hover, .btn-go:focus-visible { background: #1f9707; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.card-icon { flex: none; width: 18px; height: 14px; fill: currentColor; }
.btn-words { display: block; }
.btn-main { display: block; font-weight: 800; font-size: clamp(20px, calc(10px + 2.2vw), 30px); line-height: 1.2; }
.btn-sub { display: block; font-weight: 400; font-size: clamp(14px, calc(10px + 0.9vw), 18px); line-height: 1.2; margin-top: 6px; }

/* ---- Order-form lines ---- */
.letter .secure { text-align: center; color: var(--ink); font-family: var(--font-order); font-size: 11px; font-weight: 700; line-height: 1.75; margin: 0 0 6px; }
.letter .secure b { font-weight: 700; }
.letter .secure.big { font-size: clamp(16px, calc(11px + 0.9vw), 21px); line-height: 1.75; margin: 10px 0 14px; }
.letter .secure em b { font-weight: 500; }
.letter .actions + .secure { margin-top: 24px; }

/* ---- The two signatures ---- */
.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; }

/* ---- Earnings disclaimer: the words that were a picture on the WordPress page ---- */
.earnings { max-width: 738px; margin: 0 auto 40px; padding: 0 4px; 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) {
  .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; }
  .copy { padding-inline: 0; }
  .letter ul.discover { padding-left: 20px; }
  .signs { grid-template-columns: 1fr; }
  .btn { padding: 14px 12px; gap: 10px; letter-spacing: 1px; }
}
