/* ==========================================================================
   SLS "field manual" theme layer.

   Loaded AFTER each page's own <style>. It re-themes the existing pages by
   remapping their colour variables and overriding type and components — the
   pages' content, structure and scripts are deliberately left alone.

   Light "paper" is the default. Anything inside an ink scope (covers, the
   price card, closing bands) gets the original dark tokens back, so those
   components keep the look they were built with.
   ========================================================================== */

body.fm {
  --paper: #F4F2EC; --paper-2: #ECE9E0; --ink: #0A0F14; --volt: #C8FF00;
  --olive: #4F6A00; --grey: #4C5460; --line: rgba(10, 15, 20, .14);
  --fm-ease: cubic-bezier(.2, .7, .1, 1);

  /* remap the pages' own tokens */
  --night-black: #F4F2EC;
  --surface-dark: #ECE9E0;
  --deep-navy: #FFFFFF;
  --sprint-volt: #4F6A00;
  --clean-white: #0A0F14;
  --muted-slate: #4C5460;
  --green-lift: #4F6A00;
  --border-subtle: rgba(10, 15, 20, .14);
  --border-volt: rgba(79, 106, 0, .4);

  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
}

/* ink scope: original dark tokens */
body.fm .final-cta,
body.fm .price-card,
body.fm .guide-card.featured,
body.fm .pdf-mock,
body.fm .product-mockup,
body.fm-reader .pillars-container,
body.fm .fm-ink {
  --night-black: #0A0F14;
  --surface-dark: #111920;
  --deep-navy: #1A2332;
  --sprint-volt: #C8FF00;
  --clean-white: #F5F6F4;
  --muted-slate: #A9B4C2;
  --green-lift: #3DBA6B;
  --border-subtle: rgba(255, 255, 255, .12);
  --border-volt: rgba(200, 255, 0, .3);
  color: #F5F6F4;
}

/* ---------- type ---------- */
body.fm, body.fm * { font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif !important; }
/* the coded covers keep the typeface of the real PDFs */
body.fm .pdf-mock, body.fm .pdf-mock *, body.fm .product-mockup, body.fm .product-mockup * { font-family: 'Saira Condensed', 'Instrument Sans', sans-serif !important; }

body.fm h1, body.fm h2, body.fm h3,
body.fm .hero-headline, body.fm .section-headline, body.fm .final-cta-heading, body.fm .final-cta-headline,
body.fm .solution-headline, body.fm .preview-headline, body.fm .pain-lead, body.fm .about-quote,
body.fm .ty-headline, body.fm .legal-headline, body.fm .guide-title, body.fm .pillar-name, body.fm .pillar-title,
body.fm .pcard-title, body.fm .step-title, body.fm .edition-title, body.fm .guarantee-text-title,
body.fm .pull-quote, body.fm .pillar-close, body.fm .pain-close-line, body.fm .fit-close-line,
body.fm .inside-close-line, body.fm .solution-final, body.fm .who-final, body.fm .final-onesys,
body.fm .format-tile-title, body.fm .citations-headline, body.fm .inside-twoline, body.fm .solution-simple {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic; font-weight: 400 !important;
  text-transform: none !important; letter-spacing: -0.012em !important;
  line-height: 1.04; text-wrap: balance;
}
body.fm .hero-headline { font-size: clamp(42px, 6vw, 76px); line-height: 1.0; }
body.fm .section-headline, body.fm .final-cta-heading, body.fm .final-cta-headline,
body.fm .solution-headline, body.fm .preview-headline, body.fm .pain-lead, body.fm .about-quote { font-size: clamp(34px, 4.4vw, 56px); }
body.fm .legal-headline, body.fm .ty-headline { font-size: clamp(40px, 6vw, 64px); }
body.fm .guide-title, body.fm .pillar-name, body.fm .pillar-title, body.fm .pcard-title,
body.fm .step-title, body.fm .edition-title, body.fm .guarantee-text-title, body.fm .format-tile-title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.08; }
body.fm .pull-quote, body.fm .pillar-close, body.fm .pain-close-line, body.fm .fit-close-line,
body.fm .inside-close-line, body.fm .solution-final, body.fm .who-final, body.fm .final-onesys { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.12; }
/* emphasis inside a serif heading stays serif */
body.fm :is(h1, h2, h3, .hero-headline, .section-headline, .final-cta-heading, .final-cta-headline, .solution-headline,
  .preview-headline, .pain-lead, .about-quote, .ty-headline, .legal-headline, .guide-title, .pillar-name, .pillar-title,
  .pcard-title, .step-title, .edition-title, .guarantee-text-title, .pull-quote, .pillar-close, .pain-close-line,
  .fit-close-line, .inside-close-line, .solution-final, .who-final, .final-onesys, .format-tile-title, .citations-headline,
  .inside-twoline, .solution-simple, .faq-q) :is(span, em, strong, b) { font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400 !important; }
body.fm .volt { color: var(--sprint-volt); }
body.fm .pillar-close, body.fm .pull-quote { text-align: left; max-width: none; }

/* kickers / small caps labels */
body.fm .section-tag, body.fm .hero-tag, body.fm .final-cta-tag, body.fm .guide-badge, body.fm .system-panel-label,
body.fm .headline-card-label, body.fm .citations-label, body.fm .pcard-eyebrow, body.fm .footer-sub, body.fm .logo-sub,
body.fm .format-spec-label, body.fm .stat-pill-label {
  font-stretch: 85%; font-weight: 600 !important; letter-spacing: .2em !important; text-transform: uppercase; font-size: 12px;
}
body.fm .logo-sub, body.fm .footer-sub { font-size: 9.5px; letter-spacing: .26em !important; }
body.fm .logo-text, body.fm .footer-tagline { font-stretch: 85%; font-weight: 700 !important; letter-spacing: .14em !important; font-size: 14px; }

/* body copy: comfortable reading size for the main text classes */
body.fm .hero-sub, body.fm .section-sub, body.fm .problem-body, body.fm .about-body, body.fm .product-body,
body.fm .pain-body, body.fm .solution-body, body.fm .guide-body, body.fm .pillar-desc, body.fm .pillar-body,
body.fm .format-prose p, body.fm .legal-body p, body.fm .legal-body li, body.fm .ty-body { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
body.fm .capture-fine, body.fm .capture-micro, body.fm .form-disclosure, body.fm .buy-legal, body.fm .footer-text,
body.fm .hero-micro, body.fm .product-micro, body.fm .capture-note, body.fm .ty-note, body.fm .stat-pill-src { font-size: 13.5px; line-height: 1.55; }

/* ---------- section furniture ---------- */
body.fm { counter-reset: fmsec; }
body.fm .section, body.fm .final-cta { border-top: 1px solid var(--line); }
body.fm .section .section-tag, body.fm .final-cta .final-cta-tag { counter-increment: fmsec; display: flex; align-items: baseline; gap: 10px; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid rgba(10, 15, 20, .3); margin-bottom: clamp(28px, 4vw, 48px); width: 100%; text-align: left; }
body.fm .section .section-tag::before, body.fm .final-cta .final-cta-tag::before { content: "§" counter(fmsec, decimal-leading-zero); font-stretch: 75%; font-weight: 700; letter-spacing: 0; color: var(--olive); }
body.fm .final-cta .final-cta-tag { color: #F5F6F4; border-color: rgba(255, 255, 255, .28); }
body.fm .final-cta .final-cta-tag::before { color: var(--volt); }
body.fm .section-rule { display: none; }
body.fm .section-head.center, body.fm .section-head[style*="center"] { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
body.fm .section-head.center .section-sub { margin-left: 0; margin-right: 0; }
body.fm .section-alt { background-color: var(--paper); background-image: repeating-linear-gradient(90deg, rgba(10, 15, 20, .05) 0 1px, transparent 1px 120px); }

/* ---------- buttons ---------- */
body.fm .cta-button, body.fm .nav-cta, body.fm .cta-ghost {
  position: relative; overflow: hidden; border-radius: 12px; text-transform: none !important;
  letter-spacing: 0 !important; font-weight: 600 !important; font-size: 16px !important; font-stretch: 100%;
  box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body.fm .cta-button, body.fm .nav-cta { background: var(--ink); color: var(--paper); min-height: 52px; }
body.fm .nav-cta { min-height: 44px; border-radius: 10px; font-size: 15px !important; }
body.fm .cta-button:hover, body.fm .nav-cta:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10, 15, 20, .55); }
body.fm .cta-button:active { transform: translateY(0) scale(.985); }
body.fm .cta-button::before, body.fm .nav-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s var(--fm-ease); pointer-events: none; }
body.fm .cta-button:hover::before, body.fm .nav-cta:hover::before { transform: translateX(120%); }
body.fm .cta-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); min-height: 52px; }
body.fm .cta-ghost:hover { background: rgba(10, 15, 20, .05); transform: translateY(-2px); }
body.fm .cta-button .arrow, body.fm .text-link .arrow { display: inline-block; transition: transform .2s ease; }
body.fm .cta-button:hover .arrow, body.fm .text-link:hover .arrow { transform: translateX(5px); }
/* volt buttons inside ink scopes */
body.fm .final-cta .cta-button, body.fm .price-card .cta-button, body.fm .guide-card.featured .cta-ghost, body.fm .fm-ink .cta-button {
  background: var(--volt); color: var(--ink); border: 0;
}
body.fm .final-cta .cta-button:hover, body.fm .price-card .cta-button:hover, body.fm .guide-card.featured .cta-ghost:hover, body.fm .fm-ink .cta-button:hover { background: var(--volt); box-shadow: 0 14px 34px -10px rgba(200, 255, 0, .6); }
body.fm .final-cta .cta-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
body.fm .final-cta .cta-ghost:hover { background: rgba(255, 255, 255, .08); }
body.fm .text-link { color: var(--ink); font-weight: 600; }
body.fm a { text-decoration-color: rgba(10, 15, 20, .35); }

/* ---------- inputs ---------- */
body.fm input[type="email"] {
  background: #fff; color: var(--ink); border: 1px solid rgba(10, 15, 20, .28); border-radius: 10px;
  font-size: 16px !important; min-height: 52px; transition: border-color .2s ease, box-shadow .2s ease;
}
body.fm input[type="email"]::placeholder { color: #6B737E; }
body.fm input[type="email"]:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(79, 106, 0, .16); }
body.fm input[type="email"].valid, body.fm input[type="email"].ok { border-color: var(--olive); }

/* ---------- cards ---------- */
body.fm .capture, body.fm .guide-card, body.fm .pillar-block, body.fm .inside-card, body.fm .pcard,
body.fm .format-tile, body.fm .edition-card, body.fm .step, body.fm .guarantee-card, body.fm .citation-item,
body.fm .fit-col, body.fm .faq-item, body.fm .legal-callout, body.fm .stat-pill, body.fm .pain-stat {
  background-color: #fff; background-image: none; border: 1px solid var(--line); box-shadow: none;
}
body.fm .guide-card, body.fm .pillar-block, body.fm .inside-card, body.fm .pcard, body.fm .format-tile,
body.fm .edition-card, body.fm .step, body.fm .guarantee-card, body.fm .fit-col, body.fm .capture { border-radius: 22px; }
body.fm .guide-card, body.fm .pillar-block, body.fm .inside-card, body.fm .pcard, body.fm .edition-card, body.fm .format-tile { transition: transform .3s var(--fm-ease), box-shadow .3s ease, border-color .3s ease; }
body.fm .guide-card:hover, body.fm .pillar-block:hover, body.fm .inside-card:hover, body.fm .pcard:hover, body.fm .edition-card:hover, body.fm .format-tile:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -36px rgba(10, 15, 20, .5); border-color: var(--line); }
body.fm .guide-card.featured { background: linear-gradient(160deg, #2A2F3A, #1B1F27); border-color: transparent; }
body.fm .guide-card.featured .guide-title { color: #fff; }
body.fm .guide-card.featured .guide-body { color: #C4CAD3; }
body.fm .guide-card.featured .guide-badge { color: var(--volt); }
body.fm .guide-badge { background: none; border: 0; padding: 0; color: var(--olive); }
body.fm .tick, body.fm .check-icon, body.fm .fit-mark, body.fm .price-row-tick { color: var(--sprint-volt); border-color: var(--sprint-volt); background: transparent; }
body.fm .pull-quote, body.fm .pain-close, body.fm .fit-close, body.fm .inside-close, body.fm .notfor-block { background: none; border-left: 0; border-radius: 0; border-top: 1.5px solid var(--ink); padding: 22px 0 0; }
body.fm .inside-card.headline-card, body.fm .inside-card.stat-emphasis { background: #fff; box-shadow: none; }
body.fm .inside-card.headline-card { border-color: var(--border-volt); }
body.fm .inside-card.headline-card .check-icon { background: var(--ink); color: var(--volt); border-color: var(--ink); }
body.fm .stat-number, body.fm .stat-title { color: var(--ink); text-shadow: none; }
body.fm .stat-number { font-stretch: 75%; font-weight: 700 !important; }
body.fm .stat-pill-desc { color: var(--ink); }

/* numbered badges */
body.fm .pillar-num, body.fm .pcard-num, body.fm .step-num, body.fm .ppl-num {
  font-stretch: 75%; font-weight: 700 !important; color: var(--olive); font-variant-numeric: tabular-nums;
}
body.fm .pillar-block .pillar-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--olive); font-size: 14px; margin-bottom: 14px; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
body.fm .pillar-block:hover .pillar-num { background: var(--ink); color: var(--volt); border-color: var(--ink); }

/* ---------- header ---------- */
body.fm .site-nav { background: rgba(244, 242, 236, .97); border-bottom: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.fm .site-nav a, body.fm .nav-links a, body.fm .nav-back { color: var(--ink); }
body.fm .nav-links a { font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; }
body.fm .site-nav .nav-cta { color: var(--paper); }
body.fm .logo-text { color: var(--ink); }
body.fm .logo-sub { color: var(--olive); }
body.fm .logo-mark rect:first-child { fill: transparent; }
body.fm .logo-mark rect:not(:first-child), body.fm .logo-bar { fill: var(--ink); background: var(--ink); }
body.fm .fm-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--olive); transform: scaleX(0); transform-origin: left; z-index: 300; pointer-events: none; }

/* ---------- hero ---------- */
body.fm .hero { background: var(--paper); background-image: repeating-linear-gradient(90deg, rgba(10, 15, 20, .05) 0 1px, transparent 1px 120px); }
body.fm .hero::after { display: none; }
body.fm .hero::before { content: ""; display: block; position: absolute; inset: auto; left: 0; top: 0; width: 22vw; height: 2px; border-radius: 0; opacity: 1; filter: none; background: linear-gradient(90deg, transparent, var(--volt)); animation: fm-run 3.2s cubic-bezier(.5, 0, .2, 1) infinite; pointer-events: none; z-index: 3; transform: none; }
body.fm .hero { overflow: hidden; }
body.fm .hero-tag { background: none; border: 0; padding: 0; color: var(--olive); display: inline-flex; align-items: center; gap: 12px; }
body.fm .hero-tag::before { content: ""; width: 14px; height: 12px; flex: none; background: linear-gradient(90deg, var(--olive) 0 3px, transparent 3px 5.500px, rgba(79,106,0,.55) 5.500px 8.500px, transparent 8.500px 11px, rgba(79,106,0,.25) 11px 14px); }
body.fm .hero-sub { color: var(--grey); }
body.fm .track-container { display: none; }
body.fm .fm-streak { position: absolute; left: 0; top: 0; height: 2px; width: 22vw; background: linear-gradient(90deg, transparent, var(--volt)); animation: fm-run 3.2s cubic-bezier(.5, 0, .2, 1) infinite; pointer-events: none; z-index: 3; }

/* product mock-up stack (cover + a real page) */
body.fm .fm-stack { position: relative; margin: 0 auto; padding-left: 14%; max-width: 430px; width: 100%; }
body.fm .fm-plate { position: relative; z-index: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(10, 15, 20, .75), 0 14px 28px -12px rgba(10, 15, 20, .4); animation: fm-wipe 1.15s cubic-bezier(.75, 0, .2, 1) .15s both; transition: transform .5s var(--fm-ease); will-change: transform; }
body.fm .fm-plate img { display: block; width: 100%; height: auto; animation: fm-kb 2.6s var(--fm-ease) .15s both; }
body.fm .fm-plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(200, 255, 0, .13) 50%, transparent 65%); animation: fm-sheen 6.5s ease-in-out 2.2s infinite; }
body.fm .fm-page { position: absolute; left: 0; top: 16%; width: 50%; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 50px -28px rgba(10, 15, 20, .7); animation: fm-page 1.1s var(--fm-ease) .55s both; }
body.fm .fm-page img { display: block; width: 100%; height: auto; }
body.fm .real-product-cover, body.fm .product-cover, body.fm .product-cover-image { border-radius: 14px; box-shadow: 0 50px 80px -40px rgba(10, 15, 20, .75), 0 14px 28px -12px rgba(10, 15, 20, .4); }

/* ---------- footer ---------- */
body.fm .footer { background: var(--paper); border-top: 1.5px solid var(--ink); }
body.fm .footer-text, body.fm .footer-text a, body.fm .footer-links a, body.fm .footer-links-legal a { color: var(--grey); }
body.fm .footer-links a, body.fm .footer-links-legal a { color: var(--ink); font-weight: 500; }
body.fm .footer-divider { background: var(--ink); height: 1.5px; }
body.fm .footer-tagline { color: var(--ink); }
body.fm .social-row a { color: var(--grey); border-radius: 50%; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
body.fm .social-row a:hover { color: var(--ink) !important; background: rgba(10, 15, 20, .06); transform: translateY(-2px); }

/* ---------- closing band + price card (ink) ---------- */
body.fm .final-cta { background: linear-gradient(165deg, #2B303B 0%, #1C2029 70%); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 120px), linear-gradient(165deg, #2B303B 0%, #1C2029 70%); }
body.fm .final-cta::before, body.fm .final-cta::after { display: none; }
body.fm .price-card { background: linear-gradient(165deg, #2B303B 0%, #1C2029 70%); border: 0; border-radius: 22px; box-shadow: 0 40px 70px -40px rgba(10, 15, 20, .6); }
body.fm .price-card::before, body.fm .price-card::after { display: none; }
body.fm .price-card .price-reveal { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
body.fm .price-card .buy-legal { color: #AEB5BF; }
body.fm .price-now-amount, body.fm .pc-now { text-shadow: none; }

/* ---------- FAQ ---------- */
body.fm .faq-item { border-radius: 0; border-width: 0 0 1px; background: transparent; }
body.fm .faq-q { color: var(--ink); font-family: 'Instrument Serif', Georgia, serif !important; font-style: italic; font-weight: 400 !important; font-size: clamp(22px, 2.2vw, 28px) !important; text-transform: none !important; letter-spacing: -0.01em !important; min-height: 56px; }
body.fm .faq-icon::before, body.fm .faq-icon::after { background: var(--ink); }

/* ---------- motion ---------- */
@keyframes fm-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fm-wipe { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes fm-kb { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes fm-sheen { 0%, 70% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes fm-run { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@keyframes fm-page { from { opacity: 0; transform: translateX(90px) rotate(0deg); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes fm-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.fm .reveal { transition: opacity .8s var(--fm-ease), transform .8s var(--fm-ease); }

@media (prefers-reduced-motion: reduce) {
  body.fm *, body.fm *::before, body.fm *::after { animation: none !important; transition: none !important; }
}

/* ---------- home: hero ---------- */
body.fm-home .hero-grid { align-items: start; }
body.fm-home .hero-visual { flex-direction: column; gap: 28px; align-items: center; }
body.fm-home .system-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: none; max-width: 430px; }
body.fm-home .system-panel::before, body.fm-home .system-panel::after { display: none; }
body.fm-home .system-panel-label { color: var(--olive); }
body.fm-home .sp-name { color: var(--ink); font-family: 'Instrument Serif', Georgia, serif !important; font-style: italic; font-weight: 400 !important; text-transform: none; letter-spacing: -0.01em; font-size: 22px; }
body.fm-home .sp-row { border-color: var(--line); }
body.fm-home .sp-bar { background: var(--olive); box-shadow: none; opacity: 1; }
body.fm-home .sp-foot { color: var(--grey); }
body.fm-home a.system-panel { transition: transform .3s var(--fm-ease), box-shadow .3s ease, border-color .3s ease, background-color .3s ease; }
body.fm-home a.system-panel:hover, body.fm-home a.system-panel:focus-visible { transform: translateY(-6px); border-color: var(--olive); background: #FCFDF6; box-shadow: 0 34px 60px -36px rgba(10, 15, 20, .5), 0 0 0 4px rgba(200, 255, 0, .28); }
body.fm-home .pillar-more { color: var(--olive); }
body.fm .pillar-dialog { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 50px 90px -40px rgba(10, 15, 20, .6); }
body.fm .pillar-dialog::backdrop { background: rgba(10, 15, 20, .5); }
body.fm .pillar-detail-title { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-size: clamp(30px, 5vw, 38px); }
body.fm .pillar-detail-tag, body.fm .pillar-detail-label { color: var(--olive); }
body.fm .pillar-detail-list li::before { background: var(--olive); }
body.fm .pillar-dialog-close:hover { color: var(--ink); }
body.fm-home .capture-label { color: var(--ink); font-stretch: 85%; letter-spacing: .12em; }
body.fm-home .capture-label .volt { color: var(--olive); }
body.fm-home .capture-more { font-size: 14.5px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
/* Sleep / Nutrition toggle (built by fm.js from the two existing forms) */
body.fm-home .capture-grid.fm-toggle { display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px -44px rgba(10, 15, 20, .4); max-width: 600px; }
body.fm-home .fm-seg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--paper); border-radius: 12px; margin-bottom: 4px; }
body.fm-home .fm-seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 9px; background: var(--ink); transition: transform .35s var(--fm-ease); }
body.fm-home .fm-seg[data-pick="1"] .fm-seg-pill { transform: translateX(calc(100% + 4px)); }
body.fm-home .fm-seg button { position: relative; z-index: 1; min-height: 48px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: color .25s ease; padding: 4px 6px; line-height: 1.2; }
body.fm-home .fm-seg button[aria-pressed="true"] { color: #fff; }
body.fm-home .capture-grid.fm-toggle .capture { background: none; border: 0; border-radius: 0; padding: 10px 2px 0; box-shadow: none; }
body.fm-home .capture-grid.fm-toggle .capture[hidden] { display: none; }
body.fm-home .capture-grid.fm-toggle .capture:not([hidden]) { animation: fm-swap .35s var(--fm-ease); }
body.fm-home .capture-grid.fm-toggle .capture-label { display: none; }
@media (max-width: 960px) { body.fm .fm-stack { max-width: 340px; } }

/* ---------- opt-in pages: cover moved up into the hero ---------- */
body.fm-optin .hero { min-height: 0; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); padding: 8rem 2rem 4.5rem; align-items: center; }
body.fm-optin .hero-inner { max-width: 560px; flex: 1 1 420px; text-align: left; }
body.fm-optin .hero .hero-sub, body.fm-optin .hero .form-wrap, body.fm-optin .hero .form-disclosure { margin-left: 0; margin-right: 0; }
body.fm-optin .hero .form-wrap { max-width: 520px; }
body.fm-optin .hero-cue { color: var(--grey); }
body.fm-optin .hero .pdf-mock-wrap { position: static; flex: 0 1 380px; width: min(380px, 100%); }
body.fm-optin .pdf-mock { box-shadow: 0 50px 80px -40px rgba(10, 15, 20, .75), 0 14px 28px -12px rgba(10, 15, 20, .4); }
body.fm-optin .inside-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
body.fm-optin .who-line::before { background: var(--olive); }
body.fm-optin .final-cta .form-disclosure, body.fm-optin .final-cta .form-disclosure a { color: #AEB5BF; }
body.fm-optin .citation-item { border-left: 2px solid var(--olive); border-radius: 0 12px 12px 0; }
@media (max-width: 960px) {
  body.fm-optin .hero { padding: 6.5rem 1.25rem 3.5rem; }
  body.fm-optin .hero .pdf-mock-wrap { flex-basis: 100%; max-width: 320px; margin: 0 auto; order: 0; }
}

/* ---------- reader pages: cover beside the offer on wide screens ---------- */
body.fm-reader .hero { min-height: 0; }
body.fm-reader .product-cover-mockup { border: 0; background: none; box-shadow: none; padding: 0; }
body.fm-reader .pillars-container, body.fm-reader .price-compare { border-color: var(--line); }
body.fm-reader .pillars-container { border-radius: 22px; border-color: transparent; box-shadow: 0 40px 70px -44px rgba(10, 15, 20, .6); }
body.fm-reader .offer-eyebrow .oe-txt { color: var(--ink); }
body.fm-reader .offer-eyebrow .oe-rule { background: linear-gradient(90deg, transparent, rgba(79, 106, 0, .5)); }
body.fm-reader .offer-eyebrow .oe-rule.r { background: linear-gradient(90deg, rgba(79, 106, 0, .5), transparent); }
body.fm-reader .pc-now, body.fm-reader .final-cta-pricing .now { color: var(--clean-white); }
@media (min-width: 961px) {
  /* Two columns: offer left, cover right, pillars across the full width below.
     .pillars-wrap stays a real box (its entry into view starts the unlock
     animation), laid over the same grid with subgrid. */
  body.fm-reader .hero-container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 72px); row-gap: 3rem; max-width: 1140px; text-align: left; align-items: center; }
  body.fm-reader .hero-left { align-items: flex-start; grid-column: 1; grid-row: 1; max-width: none; position: relative; z-index: 2; }
  body.fm-reader .hero-left .hero-sub { margin-left: 0; }
  body.fm-reader .offer-eyebrow, body.fm-reader .price-compare { justify-content: flex-start; }
  body.fm-reader .offer-eyebrow .oe-rule:first-child { display: none; }
  body.fm-reader .pillars-wrap { grid-column: 1 / -1; grid-row: 1 / -1; max-width: none; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; align-items: center; pointer-events: none; }
  body.fm-reader .pillars-wrap > * { pointer-events: auto; }
  body.fm-reader .product-cover-mockup { grid-column: 2; grid-row: 1; width: min(380px, 100%); margin: 0 auto; }
  body.fm-reader .pillars-label, body.fm-reader .pillars-container { grid-column: 1 / -1; }
  body.fm-reader .pillars-label { grid-row: 2; align-self: start; }
  body.fm-reader .pillars-container { grid-row: 2; margin-top: 2.2rem; }
}

/* ---------- phones ---------- */
@media (max-width: 540px) {
  body.fm-home .hero { padding-top: 6.4rem; }
  body.fm .section .section-tag, body.fm .final-cta .final-cta-tag { margin-bottom: 26px; }
}

/* small print that the old theme set below 12px */
body.fm .capture-note, body.fm .footer-legal, body.fm .hero-cue, body.fm .legal-updated { font-size: 13px; }
body.fm .hero-cue { letter-spacing: .2em; font-stretch: 85%; font-weight: 600; }
body.fm-reader .pillars-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.fm-reader .pillar-label, body.fm-reader .pillar-tag { font-stretch: 75%; letter-spacing: .04em !important; overflow-wrap: anywhere; }

/* ---------- thank-you / noted / 404 ---------- */
body.fm-ty .ty { background: var(--paper); background-image: repeating-linear-gradient(90deg, rgba(10, 15, 20, .05) 0 1px, transparent 1px 120px); }
body.fm-ty .ty-icon { background: #fff; border-color: var(--line); box-shadow: none; }
body.fm-ty .tap-btn, body.fm-strength .tap-btn { background: #fff; color: var(--ink); border: 1px solid rgba(10, 15, 20, .22); border-radius: 12px; min-height: 52px; font-weight: 600 !important; font-size: 16px; letter-spacing: 0; transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
body.fm-ty .tap-btn:hover, body.fm-ty .tap-btn:focus-visible, body.fm-strength .tap-btn:hover, body.fm-strength .tap-btn:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
body.fm-ty .tap-skip { color: var(--grey); min-height: 44px; }
body.fm-ty .tap-step { border-color: var(--line); }
body.fm-strength .tap-lead { color: var(--ink); }

/* ---------- swipeable page deck (built by fm.js around the cover image) ---------- */
body.fm .fm-deck { position: relative; width: 100%; max-width: 400px; margin: 0 auto; padding-left: 12%; outline: none; -webkit-user-select: none; user-select: none; animation: fm-rise .9s var(--fm-ease) .2s both; }
body.fm .fm-deck-stage { position: relative; aspect-ratio: 1653 / 2339; touch-action: pan-y; cursor: grab; }
body.fm .fm-deck-stage.dragging { cursor: grabbing; }
body.fm .fm-deck-card { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #0A0F14; box-shadow: 0 40px 70px -40px rgba(10, 15, 20, .75), 0 12px 26px -12px rgba(10, 15, 20, .4); transform-origin: 50% 90%; transition: transform .55s var(--fm-ease), opacity .4s ease, box-shadow .4s ease; will-change: transform; }
body.fm .fm-deck-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; border-radius: 0 !important; box-shadow: none !important; max-width: none; margin: 0; padding: 0; border: 0; animation: none; }
body.fm .fm-deck-card[data-pos="0"] { z-index: 5; }
body.fm .fm-deck-card[data-pos="1"] { z-index: 4; transform: translateX(-8%) rotate(-4deg) scale(.96); }
body.fm .fm-deck-card[data-pos="2"] { z-index: 3; transform: translateX(-15%) rotate(-7.5deg) scale(.92); }
body.fm .fm-deck-card[data-pos="rest"] { z-index: 1; transform: translateX(-15%) rotate(-7.5deg) scale(.92); opacity: 0; }
body.fm .fm-deck-card.out { transition: transform .38s cubic-bezier(.5, 0, .8, .6), opacity .38s ease; opacity: 0; z-index: 6; }
body.fm .fm-deck-card.no-anim { transition: none; }
body.fm .fm-deck-card[data-pos="0"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(200, 255, 0, .12) 50%, transparent 65%); animation: fm-sheen 6.5s ease-in-out 2.2s infinite; }
body.fm .fm-deck.hint .fm-deck-card[data-pos="0"] { animation: fm-nudge 1.1s var(--fm-ease) 1; }
@keyframes fm-nudge { 0%, 100% { transform: none; } 40% { transform: translateX(9%) rotate(3deg); } }
body.fm .fm-deck-bar { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--grey); font-size: 13.5px; }
body.fm .fm-deck-cap { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 500; }
body.fm .fm-deck-n { font-stretch: 75%; font-weight: 700; font-variant-numeric: tabular-nums; }
body.fm .fm-deck-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
body.fm .fm-deck-btn:hover { background: var(--ink); color: var(--volt); transform: translateY(-2px); }
body.fm .fm-deck-btn:active { transform: scale(.94); }
body.fm-reader .product-cover-mockup .fm-deck, body.fm-sales .hero-visual .fm-deck { max-width: 380px; }
body.fm-sales .hero-visual { display: block; width: 100%; }
@media (max-width: 960px) { body.fm .fm-deck { max-width: 330px; } }

/* ---------- back-to-site button on the sales pages ---------- */
body.fm .topbar .fm-back { position: absolute; left: clamp(12px, 3vw, 32px); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(10, 15, 20, .25); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; background: rgba(244, 242, 236, .9); transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
body.fm .topbar .fm-back:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.fm .topbar .fm-back span:first-child { transition: transform .2s ease; display: inline-block; }
body.fm .topbar .fm-back:hover span:first-child { transform: translateX(-4px); }
@media (max-width: 720px) {
  body.fm .topbar .fm-back { width: 44px; padding: 0; justify-content: center; }
  body.fm .topbar .fm-back .fm-back-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.fm .topbar .fm-back ~ .logo-unit { margin-left: 44px; }
}

/* ---------- home: fuller Blueprint card ---------- */
body.fm-home .fm-pillar-list { list-style: none; counter-reset: fmp; margin: 16px 0 4px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 7px; }
body.fm-home .fm-pillar-list li { counter-increment: fmp; display: flex; gap: 12px; align-items: baseline; color: #fff; font-family: 'Instrument Serif', Georgia, serif !important; font-style: italic; font-size: 20px; line-height: 1.15; }
body.fm-home .fm-pillar-list li::before { content: counter(fmp, decimal-leading-zero); font-family: 'Instrument Sans', sans-serif; font-style: normal; font-stretch: 75%; font-weight: 700; font-size: 12px; color: var(--volt); }
body.fm-home .guide-card.featured .guide-list { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
body.fm-home .guide-card.featured .guide-list li { color: #E6E9EE; }
body.fm-home .fm-card-micro { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #AEB5BF; }
