/* The Friday Automation: office-memo style.
   One white memo sheet on a grey desk. Typewriter headers (TO / FROM / RE), Times body,
   fluorescent highlighter, red-pen notes in the margin. System fonts only: no font requests before consent.
   app.js hooks kept: .js-motion, .pw, .hw, mark.in, .checks.in, .chapters, .bump-pop, .sticky.is-on,
   .player, .player-chapters, .links-list, .notice, .field .err, .summary, .choice, .no-thanks, .steps. */

:root {
  --desk: #cfccc4;
  --sheet: #ffffff;
  --ink: #141414;
  --muted: #4a4a4a;
  --rule: #1d1d1d;
  --hair: #c9c6bd;
  --marker: #fff200;
  --pen: #c4161c;
  --pen-dark: #9e0f14;
  --ok: #1f6b2a;
  --type: "Courier New", Courier, "Nimbus Mono PS", monospace;
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --hand: "Bradley Hand", "Segoe Print", "Marker Felt", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 19px/1.55 var(--serif);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--pen-dark); }
:focus-visible { outline: 3px solid #1a4fd6; outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font: 700 26px/1.2 var(--serif); margin-top: 1.6em; }
h3 { font: 700 21px/1.25 var(--serif); }
strong, b { font-weight: 700; }
small { font-size: .8em; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 16px; font: 700 16px var(--type);
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- desk top line ---------- */
.topbar {
  background: #1d1d1d; color: #f2f2f2;
  font: 14px/1.4 var(--type); text-align: center; padding: 9px 16px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--marker); }

/* ---------- the memo sheet ---------- */
.memo {
  position: relative;
  max-width: 780px;
  margin: 22px auto 40px;
  background: var(--sheet);
  padding: 30px 18px 34px;
  box-shadow: 0 1px 0 #b3afa5, 0 14px 30px -12px rgba(0,0,0,.35);
}
/* staple, top left */
.memo::before {
  content: ""; position: absolute; top: 14px; left: 18px;
  width: 34px; height: 5px; border-radius: 3px;
  background: linear-gradient(#e6e6e6, #9a9a9a);
  box-shadow: 0 1px 1px rgba(0,0,0,.35);
  transform: rotate(-24deg);
}
@media (min-width: 640px) { .memo { padding: 44px 48px 48px; margin-top: 30px; } }
@media (min-width: 1040px) {
  .memo { max-width: 1000px; padding: 54px 64px 56px 250px; }
}

.memo-title {
  font: 700 15px/1 var(--type); letter-spacing: .5em; text-transform: uppercase;
  margin: 8px 0 18px; padding-left: 40px;
}
@media (min-width: 640px) { .memo-title { font-size: 18px; padding-left: 0; } }

.memo-head { font: 16px/1.45 var(--type); margin: 0 0 22px; }
.memo-head .row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 2px 0; }
.memo-head dt { font-weight: 700; }
.memo-head dd { margin: 0; }
.memo-head a { color: var(--ink); }
.memo-rule { border: 0; border-top: 3px double var(--rule); margin: 14px 0 22px; height: 0; }

.pre {
  font: 700 15px/1.4 var(--type); text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 10px; color: var(--pen-dark);
}
.pre small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 14px; }

h1 { font: 700 29px/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
h1 .re { font: 700 .62em/1 var(--type); letter-spacing: .06em; margin-right: .3em; vertical-align: .12em; }
@media (min-width: 640px) { h1 { font-size: 40px; } }
@media (min-width: 1040px) { h1 { font-size: 44px; } }

.sub { font-size: 20px; }
.sub--small { font-size: 17px; color: var(--muted); }
.small { font-size: 15px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.red { color: var(--pen-dark); }

mark { background: var(--marker); color: inherit; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* typed section label, like a form header */
.label {
  font: 700 14px/1.3 var(--type); text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 1px solid var(--rule); padding-bottom: 4px; margin: 2.2em 0 14px;
}

section { position: relative; }
.cut { border: 0; border-top: 1px dashed #8d8a82; margin: 34px 0; }

/* ---------- red-pen notes ---------- */
.pen {
  display: block; font: 20px/1.25 var(--hand); color: var(--pen);
  transform: rotate(-2deg); margin: 6px 0 14px 4px; max-width: 30ch;
}
.pen::before { content: "\2192\00a0"; }
@media (min-width: 1040px) {
  .pen--side {
    position: absolute; left: -200px; top: 0; width: 165px; margin: 0;
    transform: rotate(-4deg); text-align: right;
  }
  .pen--side::before { content: none; }
  .pen--side::after { content: "\00a0\2192"; }
}
.circled { border: 2.5px solid var(--pen); border-radius: 50% / 60%; padding: 0 .28em; margin: 0 -.1em; }
.struck { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2.5px; }

/* ---------- typed lists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 46px; margin: 0 0 .7em; }
.checks li::before {
  content: "[\2713]"; position: absolute; left: 0; top: .05em;
  font: 700 18px/1.4 var(--type); color: var(--ink);
}
.dash { padding-left: 1.2em; }
.dash li { margin-bottom: .45em; }

/* 7-day plan, typed like a schedule */
.days { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 18px; }
.days th, .days td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--hair); }
.days th { font: 700 15px/1.4 var(--type); white-space: nowrap; width: 1%; padding-left: 0; }
.days tr.fri th, .days tr.fri td { background: var(--marker); }
.days tr.fri th { padding-left: 6px; }

.chapters { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: c; }
.chapters li { position: relative; padding-left: 46px; margin-bottom: .6em; counter-increment: c; }
.chapters li::before { content: counter(c) "."; position: absolute; left: 0; font: 700 18px/1.4 var(--type); }

/* attached items (what's in the folder) */
.attach { border: 1px solid var(--rule); margin: 6px 0 20px; }
.attach__head { font: 700 14px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; background: #1d1d1d; color: #fff; padding: 9px 12px; margin: 0; }
.attach ol { margin: 0; padding: 4px 14px 6px 46px; }
.attach li { padding: 9px 0; border-bottom: 1px solid var(--hair); }
.attach li:last-child { border-bottom: 0; }
.attach li b { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%;
  background: var(--marker); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink);
  font: 700 18px/1.3 var(--type); text-transform: uppercase; letter-spacing: .02em;
  text-align: center; text-decoration: none;
  padding: 16px 16px; min-height: 56px; cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn:hover { color: var(--ink); background: #fff64d; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn small { display: block; margin-top: 6px; font: 400 15px/1.3 var(--serif); text-transform: none; letter-spacing: 0; }
.btn--plain { background: #fff; }
.btn--plain:hover { background: #f4f4f0; }
.btn:disabled, .btn[aria-disabled="true"] { background: #e4e2dc; color: #4a4a4a; box-shadow: 3px 3px 0 #7a7a7a; border-color: #7a7a7a; cursor: not-allowed; transform: none; }
.btn[aria-pressed="true"] { background: var(--marker); outline: 3px solid var(--ink); outline-offset: 2px; }
@media (min-width: 640px) { .btn { font-size: 20px; padding: 18px 22px; } }

.cta { margin: 22px 0 8px; }
.cta .btn { margin-bottom: 14px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 0; margin: 4px 0 8px; font: 14px/1.4 var(--type); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; flex: none; }
.ask { font-size: 16px; text-align: center; color: var(--muted); margin: 6px 0 0; }

/* ---------- fit (yes / no) ---------- */
.fit { display: grid; gap: 14px; margin: 8px 0 20px; }
@media (min-width: 640px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit > div { border: 1px solid var(--rule); padding: 14px 16px 6px; }
.fit h3 { font: 700 15px/1.3 var(--type); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- guarantee: red rubber stamp ---------- */
.guarantee { display: grid; gap: 18px; align-items: center; margin: 10px 0 18px; }
@media (min-width: 640px) { .guarantee { grid-template-columns: 190px 1fr; } }
.stamp {
  justify-self: center;
  display: grid; place-items: center; text-align: center;
  width: 172px; height: 172px; border-radius: 50%;
  border: 5px solid var(--pen); color: var(--pen);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--pen);
  font: 700 15px/1.15 var(--type); text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(-9deg);
  padding: 18px;
}
.stamp b { display: block; font-size: 34px; letter-spacing: 0; }
.stamp--sm { width: 128px; height: 128px; font-size: 12px; padding: 12px; border-width: 4px; }
.stamp--sm b { font-size: 25px; }
.sign { font: 22px/1.2 var(--hand); color: var(--ink); margin: 6px 0 4px; }
.ask--left { text-align: left; }

/* ---------- FAQ ---------- */
.qa { border-top: 1px solid var(--hair); padding: 14px 0 2px; }
.qa .q { font-weight: 700; margin-bottom: .35em; }
.qa .q::before { content: "Q. "; font-family: var(--type); }
.qa .a::before { content: "A. "; font-family: var(--type); font-weight: 700; }

/* ---------- footer ---------- */
.foot { border-top: 3px double var(--rule); margin-top: 36px; padding-top: 16px; font-size: 15px; color: var(--muted); }
.foot p { margin-bottom: .7em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--type); }
.foot nav a { display: inline-block; padding: 10px 0; min-height: 44px; }
.foot a { color: var(--ink); }

/* ---------- mobile sticky buy bar ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 3px solid var(--ink);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .2s ease-out;
}
.sticky .btn { font-size: 16px; padding: 12px; box-shadow: 3px 3px 0 var(--ink); min-height: 48px; }
.sticky.is-on { transform: none; }
@media (min-width: 1040px) { .sticky { display: none; } }

/* ---------- steps (checkout, upsell) ---------- */
.steps { margin: 0 0 18px; }
.steps__label { font: 700 13px/1 var(--type); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 8px; color: var(--muted); }
.steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font: 14px/1.2 var(--type); }
.steps li { border: 1px solid var(--rule); padding: 7px 10px; background: #fff; }
.steps li.now { background: var(--marker); font-weight: 700; }
.steps li.done { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; color: var(--muted); }

/* ---------- notices ---------- */
.notice { border: 2px solid var(--pen); color: var(--pen-dark); background: #fff; padding: 12px 14px; font-size: 17px; margin: 14px 0; }

/* ---------- checkout form ---------- */
.checkout { margin-top: 16px; }
.fields { border: 0; padding: 0; margin: 0 0 20px; }
.fields legend { font: 700 15px/1.3 var(--type); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--rule); width: 100%; padding-bottom: 4px; margin-bottom: 12px; }
.field { margin-bottom: 14px; }
.field label { display: block; font: 700 15px/1.3 var(--type); margin-bottom: 5px; }
.field label .muted { font-weight: 400; }
.field input {
  display: block; width: 100%; min-height: 50px;
  font: 19px/1.3 var(--serif); color: var(--ink);
  background: #fff; border: 0; border-bottom: 2px solid var(--ink);
  background-image: linear-gradient(#f7f7f3, #f7f7f3); padding: 10px 10px;
}
.field input:focus { background-image: none; background: #fffde0; outline: 3px solid #1a4fd6; outline-offset: 1px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--pen); }
.field .err { color: var(--pen-dark); font-size: 16px; margin: 6px 0 0; }
.payment-element { min-height: 60px; }

/* order summary as a routing slip */
.summary { border: 2px solid var(--ink); padding: 0; margin: 0 0 20px; }
.summary h3 { font: 700 14px/1 var(--type); text-transform: uppercase; letter-spacing: .16em; margin: 0; padding: 10px 12px; border-bottom: 2px solid var(--ink); background: #f4f4ef; }
.summary table { width: 100%; border-collapse: collapse; font-size: 17px; }
.summary td { padding: 10px 12px; border-bottom: 1px dashed #8d8a82; vertical-align: top; }
.summary tfoot td { font-weight: 700; border-bottom: 0; font-size: 19px; }
.summary .num { text-align: right; white-space: nowrap; font-family: var(--type); }

/* order bump: an attachment clipped to the memo */
.bump { position: relative; border: 2px dashed var(--ink); background: #fffef2; padding: 26px 16px 8px; margin: 0 0 22px; }
.bump__clip {
  position: absolute; top: -14px; left: 18px; width: 22px; height: 44px;
  border: 3px solid #8a8a8a; border-radius: 11px; border-bottom-color: transparent;
}
.bump__head { font: 700 14px/1.35 var(--type); text-transform: uppercase; letter-spacing: .05em; color: var(--pen-dark); margin-bottom: 10px; }
.bump__check { display: flex; gap: 12px; align-items: flex-start; background: var(--marker); border: 2px solid var(--ink); padding: 12px; cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1.35; }
.bump__check input { width: 26px; height: 26px; flex: none; margin: 1px 0 0; accent-color: #111; }
.bump__body { margin-top: 12px; font-size: 17px; }

.pay { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .pay { grid-template-columns: 150px 1fr; } }
.pay__main .btn { margin-bottom: 12px; }

/* ---------- upsell ---------- */
.bar { font: 700 15px/1.4 var(--type); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border: 2px solid var(--ink); margin: 0 0 18px; background: var(--marker); }
.bar--ok { background: #fff; border-color: var(--ok); color: var(--ok); }
.no-thanks { display: block; text-align: center; margin: 18px auto 0; padding: 12px 6px; min-height: 44px; font-size: 16px; color: var(--muted); }

/* ---------- thanks ---------- */
.player { margin: 18px 0; }
.player video { width: 100%; background: #000; display: block; border: 2px solid var(--ink); }
.player-chapters { list-style: none; padding: 0; margin: 10px 0 0; }
.player-chapters button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--hair); font: 17px/1.3 var(--serif); padding: 10px 2px; cursor: pointer; }
.player-chapters button span { font-family: var(--type); color: var(--muted); }

.links-list { display: grid; gap: 10px; margin: 16px 0 6px; }
.links-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 2px solid var(--ink); padding: 12px 14px; min-height: 52px; text-decoration: none; background: #fff;
  font-weight: 700;
}
.links-list a:hover { background: var(--marker); color: var(--ink); }
.links-list a span:last-child { font: 700 13px/1 var(--type); text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--ink); padding: 5px 7px; flex: none; }
.links-list a span:last-child:empty { display: none; }
.links-list a[aria-disabled="true"] { border-color: var(--hair); background: transparent; color: var(--muted); font-weight: 400; }
.links-list a[aria-disabled="true"]:hover { background: transparent; }

.stack { display: grid; gap: 14px; }
.choice { display: grid; gap: 14px; }
@media (min-width: 640px) { .choice { grid-template-columns: 1fr 1fr; } }

.two-ways { display: grid; gap: 16px; }
@media (min-width: 640px) { .two-ways { grid-template-columns: 1fr 1.25fr; } }
.two-ways > div { border: 1px solid var(--rule); padding: 16px 16px 10px; }
.two-ways__next { border-width: 3px !important; }

/* workshop sheet */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 6px 0 20px; font-size: 18px; }
.facts dt { font: 700 15px/1.6 var(--type); text-transform: uppercase; }
.facts dd { margin: 0; }
.agenda { width: 100%; border-collapse: collapse; font-size: 17px; margin: 6px 0 18px; }
.agenda td { border-bottom: 1px solid var(--hair); padding: 8px 6px; vertical-align: top; }
.agenda td:first-child { font: 700 15px/1.5 var(--type); white-space: nowrap; width: 1%; padding-left: 0; }

/* legal pages */
.legal h2 { font-size: 22px; }
.legal p, .legal li { font-size: 18px; }

/* ---------- motion (transform and opacity only; nothing moves under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
  .bump-pop { display: inline-block; animation: tick .45s ease-out; }
  @keyframes tick { 40% { transform: scale(1.18); } }
}

/* These need JavaScript to split words and watch the scroll; app.js adds .js-motion to <html> only when motion is allowed. */
.js-motion mark { background: none; padding: 0; }
.js-motion .hw { position: relative; z-index: 0; }
.js-motion .hw::before {
  content: ""; position: absolute; z-index: -1;
  left: -.08em; right: -.3em; top: .08em; bottom: -.02em;
  background: var(--marker);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s ease-out;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-motion .hw:last-child::before { right: -.08em; }
.js-motion mark.in .hw::before { transform: none; }

.js-motion h1 .pw {
  display: inline-block; opacity: 0;
  transform: translateY(.25em);
  animation: type-in .35s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes type-in { to { opacity: 1; transform: none; } }

.js-motion .checks li::before, .js-motion .chapters li::before {
  opacity: 0; transform: scale(.4);
  transition: opacity .2s ease-out, transform .3s cubic-bezier(.2, 1.6, .4, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js-motion .checks.in li::before, .js-motion .chapters.in li::before { opacity: 1; transform: none; }
.js-motion .stamp { display: grid; }

@media print {
  body { background: #fff; }
  .memo { box-shadow: none; margin: 0; }
  .topbar, .sticky, .skip { display: none; }
}

/* consent bar (app.js builds it only when a Pixel ID is set and consentMode is "ask") */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin: 0 auto;
  background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 14px; font-size: 16px;
}
.consent p { margin: 0 0 10px; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent .btn { font-size: 15px; padding: 10px; min-height: 44px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- phone first screen: headline, sub-line and button must fit 390x844 ---------- */
@media (max-width: 639px) {
  .topbar { font-size: 12px; padding: 6px 12px; }
  .memo { margin-top: 10px; padding-top: 22px; }
  .memo-title { font-size: 13px; margin: 4px 0 12px; }
  .memo-head { font-size: 14px; margin-bottom: 10px; }
  .memo-head .row { grid-template-columns: 56px 1fr; padding: 0; }
  .memo-rule { margin: 8px 0 14px; }
  .pre { font-size: 13px; margin-bottom: 8px; }
  .pre small { font-size: 13px; }
  h1 { font-size: 26px; margin-bottom: 10px; }
  .sub { font-size: 17px; margin-bottom: 14px; }
}
