/* ============================================================================
   MASS MONEY FUNNEL KIT — funnel skin
   Paste once into: Funnel > Settings > Custom CSS
   Applies to every step in the funnel, so there is one copy to maintain.

   Source of truth for the design: aff/optin-templates/classic-squeeze-mockup.html
   Rebuilt from the 2011 MassMoneyTemplatePages set, all in CSS, no image slices.

   TO RESKIN THE WHOLE FUNNEL, change only the six values in THEME below.
   ============================================================================ */

/* ---------------------------------------------------------------- THEME --- */
/* On :root, not .mmk, so the GHL section wrapper can read --ground too. */
:root {
  --ground:    #1570b5;               /* page background, set3 "colour" */
  --accent:    #c13100;               /* headline pop and form prompt   */
  --highlight: #fbf0a0;               /* the yellow marker pen          */
  --cta-a:     #f9ae42;               /* button gradient, top           */
  --cta-b:     #ee7a0c;               /* button gradient, bottom        */
  --face:      Georgia, "Times New Roman", Times, serif;

  /* Other colourways from the original set, swap the block above:
     set1 white   --ground:#ffffff;
     set2 arial   --ground:#ffffff;  --face: Arial, Helvetica, sans-serif;
     set4 grey    --ground:#adadad;
     AFF brand    --ground:#0B182B; --accent:#0a9e64; --highlight:#c8f5e2;
                  --cta-a:#FFC63C;   --cta-b:#FFB500; --face:"Inter",sans-serif;
                  (AFF also needs --cta-ink:#0B182B and the Inter font link) */

  /* Derived, leave alone unless you know why */
  --card:       #ffffff;
  --card-edge:  rgba(0,0,0,.14);
  --ink:        #151515;
  --body-ink:   #555555;
  --rule:       #d3d3d3;
  --panel-a:    #ececec;
  --panel-b:    #fbfbfb;
  --panel-edge: #d6d6d6;
  --soft:       #f6f6f4;
  --cta-edge:   #b95a05;
  --cta-ink:    #ffffff;
  --cta-shadow: rgba(120,48,0,.55);
  --foot-ink:   rgba(255,255,255,.62);
}

/* ------------------------------------------------------- FULL BLEED SHELL --- */
/* GHL nests the block in section > row > column, and each of those carries its
   own vertical padding (20px + 10px + 10px) that renders as a white band above
   and below the coloured ground. Zero them for any section holding a .mmk
   block, and paint the section itself as a belt-and-braces fallback. */
/* A short step (step 1) does not fill the viewport, and html/body are
   transparent by default, so everything below the content rendered white.
   Paint the page itself. Also covers overscroll bounce. */
html, body { background-color: var(--ground); }

/* GHL paints its own fixed white backdrop layer (div.bgCover.bg-fixed) on top
   of the html/body background, so on a screen taller than the content that
   layer, not ours, is what shows. Paint it too. */
.bgCover { background-color: var(--ground) !important; }

.c-section:has(.mmk) {
  background-color: var(--ground) !important;
  /* The coloured block fills the screen on any display, however tall. */
  min-height: 100vh;
}
.c-section:has(.mmk),
.c-section:has(.mmk) .c-row,
.c-section:has(.mmk) .c-column {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* This breaks the block out to the full viewport width so the coloured
   ground reaches the screen edges. */
.mmk {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 30px 18px 22px;
  /* Fill the screen on any display and centre the card in the spare room.
     `safe center` so a page taller than the viewport is never clipped at
     the top, which plain `center` would do. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  background: var(--ground);
  background-image: radial-gradient(120% 340px at 50% 0, rgba(255,255,255,.60), rgba(255,255,255,0) 72%);
  font-family: var(--face);
  color: var(--body-ink);
  text-align: center;
  overflow: hidden;
}
.mmk[data-set="set1"], .mmk[data-set="set2"] {
  background-image: radial-gradient(120% 340px at 50% 0, rgba(21,112,181,.07), rgba(255,255,255,0) 72%);
  --card-edge: rgba(0,0,0,.16);
  --foot-ink: #8b8b8b;
}
.mmk[data-set="set4"] { --foot-ink: rgba(255,255,255,.85); }

.mmk *, .mmk *::before, .mmk *::after { box-sizing: border-box; }
/* Guard: nothing may push the card sideways on a narrow screen. */
.mmk, .mmk * { overflow-wrap: break-word; }

/* Top and bottom blocks on the same step must not double their padding. */
.mmk + .mmk { padding-top: 0; }
.mmk:has(+ .mmk) { padding-bottom: 0; }

/* -------------------------------------------------------------- THE CARD --- */
.mmk-card {
  background: var(--card);
  width: 100%;
  max-width: 892px;
  margin: 0 auto;
  border: 1px solid var(--card-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 22px rgba(0,0,0,.14);
  padding: 34px clamp(20px, 6vw, 56px) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 9px;
}
/* When a step is split into stacked blocks, only the outer edges get rounded */
.mmk-card.is-top    { border-radius: 9px 9px 0 0; border-bottom: 0; padding-bottom: 0; }
.mmk-card.is-bottom { border-radius: 0 0 9px 9px; border-top: 0;    padding-top: 18px; }

/* ------------------------------------------------------------ TYPOGRAPHY --- */
.mmk h1, .mmk h2, .mmk h3, .mmk h4, .mmk p, .mmk ol, .mmk ul {
  margin: 0;
  padding: 0;
  font-family: var(--face);
}
.mmk-eyebrow {
  font: italic 400 clamp(15px, 2.4vw, 20px)/1.45 var(--face);
  color: var(--ink);
  text-wrap: balance;
  padding: 4px 16px;
  background-image: linear-gradient(90deg, rgba(0,0,0,0), var(--highlight) 12%, var(--highlight) 88%, rgba(0,0,0,0));
}
.mmk-eyebrow strong { font-style: normal; font-weight: 700; color: var(--accent); }

.mmk-headline {
  font: 700 clamp(26px, 4.8vw, 40px)/1.08 var(--face) !important;
  letter-spacing: -0.025em;
  color: var(--ink) !important;
  text-wrap: balance;
}
.mmk-headline em { font-style: normal; color: var(--accent); }

.mmk-sub {
  max-width: 34em;
  font: 400 clamp(15px, 2.2vw, 20px)/1.45 var(--face);
  color: var(--body-ink);
  text-wrap: balance;
}

.mmk-rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0), var(--rule) 18%, var(--rule) 82%, rgba(0,0,0,0));
}

.mmk-note { max-width: 44em; font: 400 11.5px/1.55 var(--face); color: #767676; }

/* Left-aligned reading column inside the centred card */
.mmk-prose { width: 100%; max-width: 40em; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.mmk-prose p { font: 400 clamp(14.5px, 2vw, 16.5px)/1.65 var(--face); color: var(--body-ink); }
.mmk-prose h3 { font: 700 clamp(18px, 2.6vw, 22px)/1.25 var(--face); letter-spacing: -0.02em; color: var(--ink); margin-top: 6px; }
.mmk-prose strong { color: var(--ink); }

/* Facts still to be verified. These must not survive to a published page. */
.mmk-tbc {
  background: linear-gradient(180deg, rgba(0,0,0,0) 62%, var(--highlight) 62%);
  border-bottom: 1px dotted #b8912a;
  padding: 0 1px;
}

/* ------------------------------------------------------------ THE BUTTON --- */
.mmk-cta {
  display: block;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--cta-edge);
  /* Pill, not the 2011 rectangle. David's call, 22 Sep 2026. */
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cta-a), var(--cta-b));
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 2px 4px rgba(0,0,0,.22);
  color: var(--cta-ink) !important;
  font: 700 clamp(16px, 3vw, 22px)/1.15 var(--face);
  text-shadow: 0 1px 1px var(--cta-shadow);
  text-align: center;
  text-decoration: none !important;
  padding: 17px 16px 18px;
  cursor: pointer;
  transition: background .15s, transform .06s, box-shadow .15s;
}
.mmk-cta:hover { background: linear-gradient(180deg, #ee8f16, #d15c05); }
.mmk-cta:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mmk-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mmk-cta small { display: block; font-size: .62em; font-weight: 400; opacity: .9; margin-top: 4px; text-shadow: none; }

/* -------------------------------------------------- STEP 1: FORM PANEL --- */
/* Put the class mmk-panel on the GHL FORM ELEMENT's Advanced tab so the
   native form sits inside this grey box. The arrows are drawn here. */
.mmk-panel {
  position: relative;
  width: 100% !important;
  max-width: 524px;
  margin: 4px auto !important;
  padding: 16px clamp(14px, 3vw, 28px) 18px !important;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b) 85%) !important;
  border: 1px solid var(--panel-edge) !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 1px 3px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mmk-panel h3 { font: 700 clamp(19px, 3vw, 24px)/1.2 var(--face); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.mmk-panel .mmk-prompt { font: 400 clamp(13.5px, 2vw, 15px)/1.45 var(--face); color: var(--accent); text-wrap: balance; }

/* The two circular arrows pointing inward at the field. Signature detail. */
.mmk-panel::before, .mmk-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 52px; height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fdfdfd, #e6e6e6);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
/* Triangles are drawn as an SVG background on each circle, because both
   pseudo-elements are spent on the circles themselves. Matched to the
   original form-bg.jpg: WHITE (not grey), about 60% of the circle, with a
   concave back edge, a soft shadow, and nudged inward toward the field. */
.mmk-panel::before {
  left: -26px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.4 6.5 L22.4 12.7 L8.4 18.9 Q11.6 12.7 8.4 6.5 Z' fill='%23c9c9c9'/%3E%3Cpath d='M7.7 5.8 L21.5 12 L7.7 18.2 Q10.9 12 7.7 5.8 Z' fill='%23ffffff'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fdfdfd, #e6e6e6);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 100% 100%, 100% 100%;
}
.mmk-panel::after {
  right: -26px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.3 6.5 L2.3 12.7 L16.3 18.9 Q13.1 12.7 16.3 6.5 Z' fill='%23c9c9c9'/%3E%3Cpath d='M16.3 5.8 L2.5 12 L16.3 18.2 Q13.1 12 16.3 5.8 Z' fill='%23ffffff'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fdfdfd, #e6e6e6);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 100% 100%, 100% 100%;
}

.mmk-form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* The live GHL form is an iframe inside the panel. Its own heading, field and
   button are styled in the GHL form builder, because CSS out here cannot reach
   inside a cross-origin iframe. form_embed.js sets its height. */
.mmk-panel iframe {
  width: 100%;
  min-height: 210px;
  border: 0;
  display: block;
  background: transparent;
  overflow: hidden;
}
.mmk-field {
  width: 100%;
  height: 44px;
  border: 1px solid #9a9a9a;
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font: 400 19px/1 var(--face);
  text-align: center;
  padding: 0 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.10);
  transition: border-color .15s, box-shadow .15s;
}
.mmk-field::placeholder { color: #b0b0b0; font-style: italic; }
.mmk-field:focus {
  outline: none;
  border-color: #6d6d6d;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.10), 0 0 0 3px rgba(21,112,181,.22);
}

/* ------------------------------------------------ STEP 2: THANK YOU --- */
.mmk-tick {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cta-a), var(--cta-b));
  border: 1px solid var(--cta-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 2px 5px rgba(0,0,0,.2);
  display: grid; place-items: center; flex: none;
}
.mmk-tick::after {
  content: ""; width: 16px; height: 28px; margin-top: -6px;
  border: solid var(--cta-ink); border-width: 0 5px 5px 0;
  transform: rotate(45deg);
}

.mmk-steps { width: 100%; max-width: 40em; list-style: none; text-align: left; }
.mmk-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0 14px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  font: 400 clamp(14px, 2vw, 16px)/1.6 var(--face);
  color: var(--body-ink);
}
.mmk-steps li:last-child { border-bottom: 1px solid var(--rule); }
/* Grid items default to min-width:auto, so a long email address forces the
   column wider than the card and clips. This lets it wrap instead. */
.mmk-steps li > span:not(.n) { min-width: 0; }
.mmk-steps .n {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--panel-edge);
  display: grid; place-items: center; align-self: start;
  font: 700 13px/1 var(--face);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mmk-steps b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

.mmk-bridge {
  width: 100%; max-width: 560px; margin-top: 4px;
  background: var(--soft);
  border: 1px solid var(--panel-edge);
  border-radius: 9px;
  padding: 24px clamp(18px, 4vw, 30px) 26px;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
}
.mmk-bridge h3 { font: 700 clamp(18px, 2.8vw, 23px)/1.22 var(--face); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.mmk-bridge p { font: 400 clamp(14px, 2vw, 15.5px)/1.55 var(--face); color: var(--body-ink); text-wrap: balance; }

/* ------------------------------------------- STEP 3: VIDEO BRIDGE --- */
.mmk-video {
  width: 100%; max-width: 680px;
  aspect-ratio: 16 / 9;
  background: #10161d;
  border: 1px solid rgba(0,0,0,.4);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.mmk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mmk-video .play {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.65);
  display: grid; place-items: center;
}
.mmk-video .play::after {
  content: ""; width: 0; height: 0; margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid rgba(255,255,255,.9);
}
.mmk-video .cap {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center;
  font: 400 12.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: rgba(255,255,255,.62);
}

.mmk-objections {
  width: 100%; max-width: 40em;
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.mmk-objection { background: var(--card); padding: 16px 18px; text-align: left; }
.mmk-objection b { display: block; font: 700 clamp(14.5px, 2vw, 16px)/1.4 var(--face); color: var(--ink); margin-bottom: 5px; }
.mmk-objection span { font: 400 clamp(13.5px, 1.9vw, 15px)/1.6 var(--face); color: var(--body-ink); }

.mmk-disclosure {
  width: 100%; max-width: 40em; text-align: left;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font: 400 12.5px/1.65 var(--face);
  color: #6b6b6b;
}
.mmk-disclosure b { color: var(--ink); }

/* ----------------------------------------------------------- FOOTER --- */
.mmk-foot {
  margin: 22px auto 0;
  max-width: 820px;
  text-align: center;
  font: 400 11px/1.7 var(--face);
  color: var(--foot-ink);
}
.mmk-foot a { color: inherit !important; text-decoration: underline; }
.mmk-foot a:hover { text-decoration: none; }
.mmk-foot nav { margin-bottom: 4px; }
.mmk-foot nav span { opacity: .5; padding: 0 6px; }

/* --------------------------------------------------------- RESPONSIVE --- */
@media (max-width: 560px) {
  .mmk { padding: 20px 10px 16px; }
  .mmk-panel::before, .mmk-panel::after { display: none; }
  .mmk-card { padding: 26px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mmk * { transition: none !important; }
}

/* ------------------------------------------------------------ LATER: --- */
/* When step 1's inert form is swapped for a native GHL form element, the
   form lands between two custom-code blocks. Put mmk-band on the form's ROW
   so the white card reads as continuous behind it. */
.mmk-band {
  width: 100% !important;
  max-width: 892px;
  margin: 0 auto !important;
  background: var(--card) !important;
  border-left: 1px solid var(--card-edge);
  border-right: 1px solid var(--card-edge);
  padding: 0 clamp(20px, 6vw, 56px) !important;
}
