/* 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 Freedom Threshold Method sales page.
   Rebuilt from one finished graphic (there was no WordPress page): cream paper, olive-green brush ribbons, terracotta accents,
   painted Italian scenes with soft edges, a torn-paper card for the Threshold Finder and a terracotta buy bar. Not a pixel copy.
   Fonts, all self-hosted from fonts/ (no request to Google): Playfair Display Black Italic (the title and "Threshold Finder"), Literata Italic (the line under the title and the promise, one variable file, weights
   400 to 900), Muli (the paragraphs) and Barlow Condensed (800 upright for the chapter list and button; 600 and 800 italic for
   the ribbons and buy bar). Real italic files, downloaded 2026-11-13 from Google Fonts (open licence), so nothing is slanted
   by the browser. The reset and footer come from ../_shared.css. */

@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/literata-italic-latin.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/playfair-display-italic-latin.woff2") format("woff2"); }
@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: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-latin.woff2") format("woff2"); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-italic-latin.woff2") format("woff2"); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-italic-latin.woff2") format("woff2"); }

:root {
  --paper: #fcecc9;        /* the cream the painted scenes were cut from */
  --paper-light: #fff4de;
  --card: #f6e0ac;         /* the torn-paper card */
  --ink: #1f3a1a;         /* the deep green of the title */
  --text: #2b2517;
  --olive: #4b5a1e;       /* the ribbons */
  --rust: #c1440e;        /* THRESHOLD, the numbers, the swoosh */
  --bar: #b43b12;         /* the buy bar */
  --btn-a: #3f8a25;
  --btn-b: #2a6418;
  --cream: #fff4de;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Muli', 'Trebuchet MS', Arial, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 19px; line-height: 1.45;
  background: var(--paper) radial-gradient(ellipse at 35% 12%, var(--paper-light) 0%, var(--paper) 62%);
  -webkit-font-smoothing: antialiased;
}
p, ol, h1, h2 { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; height: auto; }

/* ---- Brush-stroke ribbons (the rough edge is a clip-path) ---- */
.top-ribbon, .ribbon, .about-text {
  background: var(--olive); color: var(--cream);
  clip-path: polygon(0 18%, 2% 6%, 9% 12%, 22% 2%, 41% 9%, 63% 3%, 82% 10%, 95% 3%, 100% 14%, 99% 82%, 96% 94%, 83% 88%, 61% 97%, 42% 90%, 21% 98%, 8% 90%, 2% 97%, 0 84%);
}
.top-ribbon { margin: 18px auto 0; max-width: 940px; padding: 14px 40px 13px; text-align: center; width: calc(100% - 24px); }
.top-ribbon p { font-family: var(--cond); font-weight: 600; font-style: italic; font-size: clamp(17px, 3.9vw, 30px); letter-spacing: 0.04em; line-height: 1.15; }

/* ---- The two columns (one column on a phone; see the note in body.html) ---- */
.page { max-width: 1060px; margin: 0 auto; padding: 20px 22px 8px; display: flex; flex-direction: column; gap: 26px; }
.col { display: contents; }
.head { order: 1; }
.house { order: 2; }
.van { order: 3; }
.chapters { order: 4; }
.finder { order: 5; }

h1 { font-family: var(--display); font-weight: 900; font-style: italic; color: var(--ink); font-size: clamp(38px, 10.5vw, 64px); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }
h1 span { display: block; white-space: nowrap; }
h1 .l2 { color: var(--rust); }
h1 .l3 { position: relative; padding-bottom: 14px; }
h1 .l3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 76%; height: 5px; border-radius: 3px; background: var(--rust); transform: rotate(-1.2deg); transform-origin: left; }

.subhead { margin-top: 22px; font-family: var(--serif); font-weight: 700; font-style: italic; color: var(--ink); font-size: clamp(24px, 5.6vw, 33px); line-height: 1.2; }
.lede { margin-top: 16px; max-width: 30em; font-weight: 600; font-size: clamp(18px, 3.8vw, 21px); line-height: 1.5; }

.art { width: 100%; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---- Six chapters ---- */
.chapters .ribbon { padding: 12px 22px 10px; font-family: var(--cond); font-weight: 800; font-style: italic; font-size: clamp(22px, 5.9vw, 38px); line-height: 1.1; letter-spacing: 0.02em; }
.chapters ol { margin-top: 8px; }
.chapters li { display: flex; align-items: center; gap: 16px; padding: 11px 4px; border-bottom: 1px solid rgba(75, 90, 30, 0.35); }
.chapters .n { flex: none; display: grid; place-items: center; width: 50px; height: 40px; border-radius: 22px; background: var(--rust); color: var(--cream); font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1; }
.chapters .t { font-family: var(--cond); font-weight: 800; font-size: clamp(22px, 4.8vw, 28px); line-height: 1.12; color: var(--ink); letter-spacing: 0.01em; }

/* ---- The Threshold Finder card ---- */
.finder { padding: 22px 24px 26px; text-align: center; background: var(--card); border: 1px solid rgba(120, 90, 30, 0.28); border-radius: 22px 30px 18px 32px; box-shadow: 0 6px 18px rgba(90, 60, 10, 0.16); }
.finder .laptop { width: 100%; max-width: 300px; margin: 0 auto; }
.finder h2 { margin-top: 10px; font-family: var(--display); font-weight: 900; font-style: italic; color: var(--ink); line-height: 1; text-transform: uppercase; }
.finder h2 span { display: block; }
.finder h2 .the { font-size: 30px; }
.finder h2 .big { font-size: clamp(36px, 9vw, 50px); letter-spacing: -0.01em; }
.finder h2 .big + .big { position: relative; padding-bottom: 14px; }
.finder h2 .big + .big::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 4px; border-radius: 3px; background: var(--olive); transform: rotate(-1deg); }
.finder p { margin-top: 14px; font-weight: 600; font-size: 19px; line-height: 1.45; }
.finder strong { font-weight: 900; color: var(--ink); }
/* The Finder button is deliberately quieter than the green buy button: outlined, not filled */
.finder-try { margin-top: 20px; }
.btn-finder { display: inline-block; padding: 11px 22px 9px; text-decoration: none; color: var(--ink); background: transparent; border: 3px solid var(--olive); border-radius: 14px; font-family: var(--cond); font-weight: 800; font-size: clamp(21px, 5vw, 25px); line-height: 1.1; letter-spacing: 0.03em; }
.btn-finder:hover { background: var(--olive); color: var(--cream); }
.btn-finder:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---- The promise, Neil and the map ---- */
.about { max-width: 1060px; margin: 18px auto 0; padding: 0 22px; display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: center; align-items: center; }
.neil { width: 150px; height: 150px; border-radius: 50%; filter: drop-shadow(0 3px 6px rgba(60, 40, 10, 0.3)); }
.about-text { padding: 20px 26px 16px; }
.written { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(19px, 4.4vw, 24px); line-height: 1.3; }
.byline { margin-top: 12px; font-family: var(--cond); font-weight: 800; font-size: 20px; letter-spacing: 0.12em; color: var(--cream); }
.map { width: 100%; max-width: 270px; }

/* ---- The buy bar ---- */
.buy-bar { margin-top: 26px; background: var(--bar); color: var(--cream); padding: 22px 22px 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12); }
.buy-text { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: clamp(30px, 7.4vw, 42px); line-height: 1.05; max-width: 13em; }
.price { font-family: var(--sans); font-weight: 900; font-size: clamp(64px, 17vw, 84px); line-height: 1; color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: min(100%, 320px); padding: 15px 28px 13px; text-decoration: none; color: #fff; background: linear-gradient(var(--btn-a), var(--btn-b)); border: 3px solid var(--cream); border-radius: 16px; font-family: var(--cond); font-weight: 800; font-size: clamp(28px, 6.6vw, 38px); line-height: 1.1; letter-spacing: 0.02em; box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28); }
.btn:hover { background: linear-gradient(#4d9c30, #327a1e); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.arrow { flex: none; }

/* ---- A laptop and wider: two columns and the bar goes sideways ---- */
@media (min-width: 900px) {
  .page { flex-direction: row; align-items: stretch; gap: 36px; padding-top: 26px; }
  .col { display: flex; flex-direction: column; gap: 24px; flex: 1 1 0; min-width: 0; }
  .col-b { justify-content: space-between; }
  .chapters .ribbon { font-size: 29px; white-space: nowrap; }
  .finder { padding: 34px 30px 36px; }
  .finder .laptop { max-width: 360px; }
  .finder h2 .the { font-size: 36px; }
  .finder h2 .big { font-size: 56px; }
  .finder p { margin-top: 18px; font-size: 21px; }
  .col-a .van { margin-left: 0; }
  .col-b .house { margin-right: 0; }
  h1 { font-size: clamp(50px, 5.6vw, 63px); }
  .about { grid-template-columns: 168px 1fr 270px; margin-top: 8px; gap: 22px 28px; justify-items: stretch; }
  .neil { width: 168px; height: 168px; }
  .buy-bar { flex-direction: row; justify-content: center; gap: 30px; padding: 20px 28px 24px; }
  .buy-text { text-align: left; max-width: 15em; font-size: 34px; }
  .btn { white-space: nowrap; }
  .price { padding-left: 34px; border-left: 2px solid rgba(255, 244, 222, 0.55); }
}
