/* Funnel Mastery: markup-on-paper system.
   Paper is cool, not cream. Ink is a blue-black. Red is the teardown pen.
   Blue and red come from the 2019 Funnel Mastery logo (#3C9BD5, #E84E38). */
:root {
  --paper: #eef1ee;
  --paper-2: #e3e8e4;
  --sheet: #fbfcfb;
  --ink: #1b2532;
  --ink-2: #4a5666;
  --rule: #c5ccc7;
  --teal: #1f6fa3;
  --teal-2: #17587f;
  --blue: #3c9bd5;
  --pen: #b8341f;      /* pen as text: 5.2:1 on paper */
  --pen-mark: #d4402b; /* pen as stroke: rings, rules */
  --amber: #7a5e00;
  --hi: #f1d54a;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 1120px;
  --radius-s: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
::selection { background: var(--hi); color: var(--ink); }
html { scrollbar-color: var(--ink-2) var(--paper-2); }
input, textarea, select { caret-color: var(--pen); accent-color: var(--teal); }
.price, .stack, .wo-day { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; z-index: 10; }

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; font-stretch: 108%; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-2); }
.small { font-size: .9rem; color: var(--ink-2); }
.hand { font-family: var(--hand); color: var(--pen); font-size: 1.5rem; line-height: 1.1; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { height: 54px; width: auto; margin: -6px 0; }
.site-foot .brand img { height: 48px; }
.nav { display: flex; gap: 22px; align-items: center; font-family: var(--display); font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }
@media (max-width: 600px) { .nav a:not(.btn) { display: none; } .brand { font-size: 1.05rem; white-space: nowrap; } .btn .long { display: none; } }
.btn .short { display: none; } @media (max-width: 600px) { .btn .short { display: inline; } }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 14px 22px; border-radius: var(--radius-s); border: 2px solid var(--ink); cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--pen); border-color: var(--pen); color: #fff; }
.btn-primary:hover { background: #a92b23; border-color: #a92b23; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 14px; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.cta-note { font-size: .92rem; color: var(--ink-2); margin-top: 10px; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.band-ink { background: var(--ink); color: #e9eef0; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: var(--hi); }
.band-sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.progress { font-family: var(--display); font-weight: 700; color: var(--teal); margin: 0 0 14px; font-size: 1rem; }

/* The marked-up page: the one memorable thing */
.markup { position: relative; padding: 8px 180px 8px 0; margin: 0; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(27,37,50,.45); transform: rotate(-1.2deg); padding: 0 0 18px; font-family: var(--display); }
.sheet-bar { height: 30px; border-bottom: 1px solid var(--rule); display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.sheet-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); display: block; }
.sheet-url { margin-left: 10px; font-size: .72rem; color: var(--ink-2); font-family: var(--body); }
.mock { padding: 20px 22px 0; }
.mock .m-logo { font-weight: 800; font-size: .85rem; color: var(--ink-2); margin-bottom: 16px; }
.mock .m-h { font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: 8px; position: relative; display: inline-block; }
.mock .m-p { font-family: var(--body); font-size: .85rem; color: var(--ink-2); margin-bottom: 14px; }
.mock .m-form { display: grid; margin-top: 4px; grid-template-columns: 1fr 1fr; gap: 6px; position: relative; }
.mock .m-form i { height: 22px; border: 1px solid var(--rule); background: #fff; display: block; }
.mock .m-btn { margin-top: 10px; background: #66727f; color: #fff; font-size: .75rem; font-weight: 700; padding: 8px 12px; display: inline-block; }
.mock .m-phone { font-size: .78rem; margin-top: 12px; color: var(--ink-2); position: relative; display: inline-block; }
.ring { position: absolute; border: 2.5px solid var(--pen-mark); border-radius: 50%; pointer-events: none; }
.r1 { inset: -10px -14px -8px -12px; transform: rotate(-3deg); border-radius: 46% 54% 50% 50%; }
.r2 { inset: -9px -10px -9px -10px; transform: rotate(2deg); border-radius: 40% 60% 48% 52%; }
.r3 { inset: -7px -12px -7px -10px; transform: rotate(-4deg); }
.note { position: absolute; font-family: var(--hand); color: var(--pen); font-size: 1.32rem; line-height: 1.3; width: 168px; margin: 0; }
.note b { font-family: var(--display); font-weight: 800; font-size: .8rem; color: #fff; background: var(--pen); border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 2px; }
.n1 { top: 70px; right: 0; transform: rotate(3deg); }
.n2 { top: 49%; right: 0; transform: rotate(-3deg); }
.n3 { bottom: 14px; right: 0; transform: rotate(2deg); }
@media (max-width: 1100px) { .markup { padding-right: 160px; } .note { width: 150px; font-size: 1.2rem; } }
@media (max-width: 700px) {
  .markup { padding: 0; }
  .note { position: static; transform: none; width: auto; display: block; margin: 10px 0 0; font-size: 1.25rem; }
  .sheet { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ring { stroke-dasharray: 1; animation: draw .7s ease-out both; }
  .r1 { animation-delay: .5s; } .r2 { animation-delay: 1s; } .r3 { animation-delay: 1.5s; }
  .note { animation: ink .5s ease-out both; }
  .n1 { animation-delay: .8s; } .n2 { animation-delay: 1.3s; } .n3 { animation-delay: 1.8s; }
  @keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes ink { from { opacity: 0; } to { opacity: 1; } }
}

/* Lanes */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.lane { padding: 34px 32px 30px; background: var(--sheet); }
.lane + .lane { border-left: 2px solid var(--ink); }
.lane h3 { font-size: 1.6rem; font-stretch: 110%; }
.lane ul { padding-left: 1.1em; margin: 0 0 20px; }
@media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } .lane + .lane { border-left: 0; border-top: 2px solid var(--ink); } }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--pen); line-height: 1; display: block; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

/* Agent roster: a schematic, not cards */
.roster { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.25); }
.roster div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.roster dt { font-family: var(--display); font-weight: 700; color: var(--hi); }
.roster dd { margin: 0; color: #d3dade; }
@media (max-width: 600px) { .roster div { grid-template-columns: 1fr; gap: 4px; } }

/* Engine list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.price { font-family: var(--display); font-weight: 800; font-size: 3.2rem; font-stretch: 112%; line-height: 1; }
.price span { font-size: 1.1rem; font-weight: 600; color: var(--ink-2); }

/* Founder */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.founder img { filter: grayscale(1) contrast(1.05); border: 1px solid var(--rule); }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 220px; } }
.sig { font-family: var(--hand); font-size: 2rem; color: var(--ink); margin: 4px 0 0; }

/* Facts with sources */

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.12rem; cursor: pointer; list-style: none; padding-right: 30px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.5rem; color: var(--pen); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; }

/* Offer box and form */
.offer { background: var(--sheet); border: 2px solid var(--ink); padding: 34px; }
.offer h2 { margin-bottom: .3em; }
.stack { list-style: none; padding: 0; margin: 18px 0; }
.stack li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.stack li span:last-child { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.stack li.total { border-bottom: 0; font-weight: 700; }
.stack li.total span:last-child { color: var(--pen); text-decoration: line-through; text-decoration-color: var(--ink); }
form.lead { display: grid; gap: 16px; margin-top: 10px; }
form.lead label { font-family: var(--display); font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
form.lead input[type=text], form.lead input[type=email], form.lead input[type=tel], form.lead input[type=url], form.lead select {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 12px; border: 1.5px solid var(--ink-2); border-radius: var(--radius-s); background: #fff; color: var(--ink);
}
form.lead .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form.lead .two { grid-template-columns: 1fr; } }
form.lead .check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-family: var(--body); font-weight: 400; }
form.lead .check input { margin-top: 5px; }
form.lead .hint { font-size: .85rem; color: var(--ink-2); margin-top: 4px; }
.form-msg { font-family: var(--display); font-weight: 600; }
.form-msg.err { color: var(--pen); }
.disclose { font-size: .9rem; color: var(--ink-2); border-left: 3px solid var(--hi); padding-left: 12px; }
.guarantee { border: 2px dashed var(--pen); padding: 22px 24px; margin: 28px 0; background: #fff; }
.guarantee h3 { color: var(--pen); }

/* Sample teardown */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); background: var(--sheet); }
.sample div { padding: 22px 24px; }
.sample div + div { border-left: 1px solid var(--rule); }
.sample h3 { font-size: 1.05rem; }
@media (max-width: 760px) { .sample { grid-template-columns: 1fr; } .sample div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.score { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.score li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--paper-2); }
.score .r { color: var(--pen); font-weight: 700; font-family: var(--display); }
.score .y { color: var(--amber); font-weight: 700; font-family: var(--display); }
.score .g { color: var(--teal); font-weight: 700; font-family: var(--display); }

/* Footer */
.site-foot { background: var(--ink); color: #b9c2c9; padding: 48px 0 40px; font-size: .95rem; }
.site-foot a { color: #e9eef0; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot .brand { color: #fff; }
.legal-copy { max-width: 760px; }
.legal-copy h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* The work order: the Engine shown as a week of logged work */
.wo { margin: 0; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 18px 40px -26px rgba(27,37,50,.5); transform: rotate(.8deg); position: relative; font-family: var(--display); }
.wo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: var(--ink-2); border-radius: 4px 4px 2px 2px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.wo-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 24px 22px 12px; border-bottom: 2px solid var(--ink); font-weight: 800; font-stretch: 108%; font-size: 1.05rem; }
.wo-biz { font-weight: 500; font-size: .85rem; color: var(--ink-2); font-stretch: 100%; }
.wo-list { list-style: none; margin: 0; padding: 0 22px; }
.wo-list li { display: grid; grid-template-columns: 2.6em 6.2em 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--rule); font-size: .92rem; }
.wo-day { font-weight: 800; color: var(--ink-2); }
.wo-who { font-weight: 700; color: var(--teal); }
.wo-what { font-family: var(--body); line-height: 1.4; }
.stamp { font-weight: 800; font-size: .74rem; letter-spacing: .02em; padding: 3px 8px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-4deg); white-space: nowrap; }
.s-done { color: var(--teal); }
.s-won { color: var(--pen); transform: rotate(-7deg); }
.s-run { color: var(--amber); }
.s-you { color: var(--ink); border-style: dashed; }
.wo-foot { font-family: var(--body); font-size: .85rem; color: var(--ink-2); padding: 12px 22px 18px; }
@media (max-width: 560px) {
  .wo { transform: none; }
  .wo-list li { grid-template-columns: 2.6em 1fr auto; row-gap: 2px; }
  .wo-who { grid-column: 2; grid-row: 1; }
  .wo-what { grid-column: 1 / -1; grid-row: 2; }
  .stamp { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) {
  .wo.seen .stamp { animation: thump .35s cubic-bezier(.2,.9,.3,1.3) both; }
  .wo.seen li:nth-child(2) .stamp { animation-delay: .12s; } .wo.seen li:nth-child(3) .stamp { animation-delay: .24s; }
  .wo.seen li:nth-child(4) .stamp { animation-delay: .36s; } .wo.seen li:nth-child(5) .stamp { animation-delay: .48s; }
  .wo.seen li:nth-child(6) .stamp { animation-delay: .6s; }
  @keyframes thump { from { opacity: 0; transform: scale(1.6) rotate(-10deg); } to { opacity: 1; } }
}

/* The leak ladder: a pipe from lead to booked job, with the leaks marked */
.leaks { list-style: none; margin: 34px 0 0; padding: 0; max-width: 760px; position: relative; }
.leaks::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 26px; width: 6px; background: #46566a; border-radius: 3px; }
.leaks li { position: relative; padding: 0 0 26px 54px; }
.leaks li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 3px solid #c9d2d8; }
.leaks h3 { font-size: 1.3rem; margin: 0 0 6px; color: #fff; }
.leak-note { margin: 0; font-family: var(--hand); font-size: 1.45rem; line-height: 1.32; color: #ffb4a6; }
.leak-note b { font-family: var(--display); font-size: 1.15rem; font-weight: 800; color: #fff; background: var(--pen); padding: 1px 7px; margin-right: 6px; border-radius: 2px; }
.leak-note.keep { color: #f1d54a; }
.leaks li:last-child::before { background: var(--hi); border-color: var(--hi); }

/* The close */
.close { background: var(--paper-2); padding: 104px 0 112px; border-top: 2px solid var(--ink); }
.close-h { color: var(--ink); max-width: 15ch; font-size: clamp(2.4rem, 6vw, 4.6rem); font-stretch: 118%; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 36px; text-wrap: balance; }
.btn-lg { font-size: 1.15rem; padding: 18px 30px; }
.close .cta-note { color: var(--ink-2); margin-top: 16px; }
