/* MD4U funnel — /start, /checkout, /thank-you styling.
   Design tokens per plan §3 (cream page, navy ink, orange primary, pink
   accents, hard offset shadows, 2px navy inputs with the pink focus ring).
   Breakpoints 1080/900/620; everything centres <=900 (brand rule); no
   horizontal overflow at any width (320 checked). BEM md4u-* only.

   SCOPING (defect round 1 follow-up, 24 Aug 2026): every selector is scoped
   under .md4u-funnel — same fix as plan.css. Inside WordPress, Hello's
   reset.css + the child theme load AFTER this file and their
   `button, [type="button"]` rules tie a bare .md4u-btn at 0-1-0 and win on
   order (the /start wizard's Choose-tier buttons measured transparent/1px/
   r3/weight-400 before this). The prefix lifts everything to 0-2-0 so the
   authored values beat the theme resets in ANY load order. Values untouched. */

.md4u-funnel {
  background: #FFFAF4;
  color: #011627;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.md4u-funnel .md4u-fwrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.md4u-funnel .md4u-fwrap--hub { max-width: 880px; }
/* Tier picker: the 760px question-step shell squeezed three tier cards to
   219px each and pushed them below the fold on landing (Mitch, 25 Aug).
   Wide shell for any step showing the tier grid; question steps keep 760. */
.md4u-funnel .md4u-fwrap:has(.md4u-tier-grid) { max-width: 1140px; }
.md4u-funnel .md4u-fwrap--checkout { max-width: 1180px; }

/* ---------------------------------------------------------------- type */.md4u-funnel .md4u-fh1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.03;
  letter-spacing: -1.5px;
  font-weight: 900;
  margin: 0 0 14px;
  color: #011627;
}
.md4u-funnel .md4u-orange { color: #FE7F2D; }
.md4u-funnel .md4u-flead {
  font-size: 18px;
  line-height: 1.55;
  color: #3E4F5B;
  margin: 0 0 34px;
}
.md4u-funnel .md4u-fq {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.md4u-funnel .md4u-fhelper { font-size: 14px; color: #5A6770; line-height: 1.6; margin: 0 0 18px; }
.md4u-funnel .md4u-ferror { color: #E5446D; font-weight: 700; font-size: 14px; margin: 14px 0 0; }

/* -------------------------------------------------------------- buttons */.md4u-funnel .md4u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 7px;
  border: 2px solid #011627;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.md4u-funnel .md4u-btn--primary {
  background: #FE7F2D;
  color: #011627;
  box-shadow: 5px 5px 0 #011627;
}
.md4u-funnel .md4u-btn--primary:hover:not(:disabled) { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #011627; }
.md4u-funnel .md4u-btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.md4u-funnel .md4u-btn--ghost {
  background: transparent;
  color: #011627;
  border-color: rgba(1, 22, 39, .35);
  box-shadow: none;
}
.md4u-funnel .md4u-btn--ghost:disabled { opacity: .35; cursor: not-allowed; }
.md4u-funnel .md4u-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 900;
  color: #011627;
  border-bottom: 2px solid #FE7F2D;
  cursor: pointer;
}
.md4u-funnel .md4u-linkbtn:hover { color: #E5446D; }
@media (prefers-reduced-motion: reduce) {
  .md4u-funnel .md4u-btn, .md4u-funnel .md4u-choice, .md4u-funnel .md4u-hub-card { transition: none !important; transform: none !important; }
}

/* --------------------------------------------------------------- inputs */.md4u-funnel .md4u-input {
  width: 100%;
  border: 2px solid #011627;
  border-radius: 8px;
  background: #fff;
  color: #011627;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
}
.md4u-funnel .md4u-input:focus {
  outline: none;
  border-color: #E5446D;
  box-shadow: 0 0 0 4px rgba(229, 68, 109, .16);
}
.md4u-funnel textarea.md4u-input { min-height: 120px; resize: vertical; }
.md4u-funnel .md4u-input--other { margin-top: 12px; }

/* ------------------------------------------------------------ hub cards */.md4u-funnel .md4u-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.md4u-funnel .md4u-hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 3px solid #011627;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 8px 8px 0 #FE7F2D;
  text-decoration: none;
  color: #011627;
  transition: transform .15s ease, box-shadow .15s ease;
}
.md4u-funnel .md4u-hub-card:nth-child(3n+2) { box-shadow: 8px 8px 0 #E5446D; }
.md4u-funnel .md4u-hub-card:nth-child(3n) { box-shadow: 8px 8px 0 #2DE1FC; }
.md4u-funnel .md4u-hub-card:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #011627; }
.md4u-funnel .md4u-hub-card__emoji { font-size: 26px; }
.md4u-funnel .md4u-hub-card__name { font-size: 18px; font-weight: 900; letter-spacing: -0.4px; }
.md4u-funnel .md4u-hub-card__note { font-size: 13px; color: #5A6770; }

/* ---------------------------------------------------------- tier picker */.md4u-funnel .md4u-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.md4u-funnel .md4u-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid #011627;
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 8px 8px 0 #011627;
}
.md4u-funnel .md4u-tier.is-popular { box-shadow: 8px 8px 0 #E5446D; border-color: #011627; }
.md4u-funnel .md4u-tier__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #E5446D;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
.md4u-funnel .md4u-tier__name { font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.md4u-funnel .md4u-tier__price { font-size: 30px; font-weight: 900; letter-spacing: -1px; margin: 0 0 8px; }
.md4u-funnel .md4u-tier__price small { font-size: 14px; font-weight: 700; color: #5A6770; }
.md4u-funnel .md4u-tier__tagline { font-size: 14px; color: #3E4F5B; line-height: 1.5; margin: 0 0 14px; }
.md4u-funnel .md4u-tier__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #3E4F5B;
  flex: 1;
}
.md4u-funnel .md4u-tier__features li { padding-left: 20px; position: relative; }
.md4u-funnel .md4u-tier__features li::before { content: "✓"; position: absolute; left: 0; color: #FE7F2D; font-weight: 900; }
.md4u-funnel .md4u-tier__features li.md4u-tier__lead { font-weight: 900; color: #011627; }
.md4u-funnel .md4u-tier__features li.md4u-tier__lead::before { content: ""; }
.md4u-funnel .md4u-tier__choose { width: 100%; margin-top: auto; }
.md4u-funnel .md4u-tier-helper { text-align: center; margin: 30px 0 0; font-size: 15px; color: #3E4F5B; }

/* ------------------------------------------------------------- progress */.md4u-funnel .md4u-progress { margin: 0 0 30px; }
.md4u-funnel .md4u-progress__label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #E5446D;
  margin-bottom: 8px;
}
.md4u-funnel .md4u-progress__track {
  height: 8px;
  border: 2px solid #011627;
  border-radius: 99px;
  background: #fff;
  overflow: hidden;
}
.md4u-funnel .md4u-progress__fill {
  height: 100%;
  background: #FE7F2D;
  border-radius: 99px;
  transition: width .25s ease;
}
.md4u-funnel .md4u-fh1--wizard { font-size: clamp(24px, 3.4vw, 34px); }

/* --------------------------------------------------------------- wizard */.md4u-funnel .md4u-step { margin: 0 0 26px; }
.md4u-funnel .md4u-choices { display: grid; gap: 10px; }
.md4u-funnel .md4u-choice {
  text-align: left;
  background: #fff;
  border: 2px solid #011627;
  border-radius: 8px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #011627;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.md4u-funnel .md4u-choice:hover { border-color: #FE7F2D; }
.md4u-funnel .md4u-choice.is-on {
  border-color: #FE7F2D;
  box-shadow: 4px 4px 0 #FE7F2D;
  transform: translate(-1px, -1px);
}
.md4u-funnel .md4u-skipbtn { display: block; margin: 14px auto 0; }
.md4u-funnel .md4u-skipbtn.is-on { color: #FE7F2D; border-bottom-color: #E5446D; }
.md4u-funnel .md4u-file__box {
  display: block;
  border: 2px dashed #011627;
  border-radius: 8px;
  background: #fff;
  padding: 26px 18px;
  text-align: center;
  font-weight: 700;
  color: #5A6770;
  cursor: pointer;
}
.md4u-funnel .md4u-file__box:hover { border-color: #FE7F2D; color: #011627; }
.md4u-funnel .md4u-info__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #011627;
  border-radius: 99px;
  background: #fff;
  padding: 10px 10px 10px 18px;
  font-weight: 900;
}
.md4u-funnel .md4u-copybtn {
  border: 2px solid #011627;
  border-radius: 99px;
  background: #FE7F2D;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 14px;
  cursor: pointer;
}
.md4u-funnel .md4u-info__caption { font-size: 13px; color: #5A6770; margin: 12px 0 0; }
.md4u-funnel .md4u-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.md4u-funnel .md4u-fcontrols { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; }

/* --------------------------------------------------------------- upsell */.md4u-funnel .md4u-upsell-badge {
  display: inline-block;
  background: #FE7F2D;
  color: #011627;
  border: 2px solid #011627;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.md4u-funnel .md4u-upsell-list { display: grid; gap: 12px; }
.md4u-funnel .md4u-upsell {
  text-align: left;
  background: #fff;
  border: 2px solid #011627;
  border-radius: 12px;
  padding: 16px 18px;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}
.md4u-funnel .md4u-upsell.is-on {
  border-color: #FE7F2D;
  box-shadow: 5px 5px 0 #FE7F2D;
  transform: translate(-1px, -1px);
}
.md4u-funnel .md4u-upsell__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.md4u-funnel .md4u-upsell__head strong { font-size: 16px; font-weight: 900; }
.md4u-funnel .md4u-upsell__price { color: #FE7F2D; font-weight: 900; white-space: nowrap; }
.md4u-funnel .md4u-upsell__blurb { font-size: 13px; color: #5A6770; line-height: 1.5; }

/* ------------------------------------------------------------- checkout */.md4u-funnel .md4u-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: #011627;
  text-decoration: none;
  border-bottom: 2px solid #FE7F2D;
  margin-bottom: 22px;
}
.md4u-funnel .md4u-back::before { content: "← "; }
.md4u-funnel .md4u-ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.md4u-funnel .md4u-ck-main { display: grid; gap: 24px; min-width: 0; }
.md4u-funnel .md4u-ck-card {
  background: #fff;
  border: 3px solid #011627;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 8px 8px 0 #011627;
}
.md4u-funnel .md4u-ck-card h2 { font-size: 21px; font-weight: 900; letter-spacing: -0.5px; margin: 0 0 6px; }
.md4u-funnel .md4u-ck-card h3 { font-size: 16px; font-weight: 900; margin: 0 0 6px; }
.md4u-funnel .md4u-ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.md4u-funnel .md4u-ck-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #3E4F5B; min-width: 0; }
.md4u-funnel .md4u-ck-field b { color: #E5446D; }
.md4u-funnel .md4u-ck-pg { margin-top: 20px; border-top: 2px solid rgba(1, 22, 39, .13); padding-top: 18px; }

.md4u-funnel .md4u-ck-summary {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 3px solid #011627;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 8px 8px 0 #FE7F2D;
}
.md4u-funnel .md4u-ck-summary h2 { font-size: 19px; font-weight: 900; margin: 0 0 14px; }
.md4u-funnel .md4u-ck-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.md4u-funnel .md4u-ck-lines li { display: flex; justify-content: space-between; gap: 12px; }
.md4u-funnel .md4u-ck-lines small { color: #5A6770; }
.md4u-funnel .md4u-ck-totals { border-top: 2px solid rgba(1, 22, 39, .13); padding-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.md4u-funnel .md4u-ck-totals > div { display: flex; justify-content: space-between; }
.md4u-funnel .md4u-ck-today { font-size: 16px; }
.md4u-funnel .md4u-ck-today strong { color: #FE7F2D; font-weight: 900; }
.md4u-funnel .md4u-ck-foot { font-size: 12px; color: #5A6770; line-height: 1.55; margin: 16px 0 0; }

/* contract panel */.md4u-funnel .md4u-ct-panel {
  max-height: 420px;
  overflow-y: auto;
  border: 2px solid #011627;
  border-radius: 10px;
  background: #FFFAF4;
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #1c2b36;
}
.md4u-funnel .md4u-ct-panel h1 { font-size: 19px; margin: 0 0 10px; letter-spacing: -0.4px; }
.md4u-funnel .md4u-ct-panel h2 { font-size: 15px; margin: 20px 0 8px; }
.md4u-funnel .md4u-ct-panel h3, .md4u-funnel .md4u-ct-panel h4 { font-size: 13.5px; margin: 14px 0 6px; }
.md4u-funnel .md4u-ct-panel p { margin: 0 0 9px; }
.md4u-funnel .md4u-ct-panel ul { margin: 0 0 10px; padding-left: 20px; }
.md4u-funnel .md4u-ct-panel hr { border: 0; border-top: 1px solid rgba(1, 22, 39, .2); margin: 16px 0; }
.md4u-funnel .md4u-ct-tablewrap { overflow-x: auto; margin: 0 0 12px; }
.md4u-funnel .md4u-ct-panel table { border-collapse: collapse; width: 100%; font-size: 12px; }
.md4u-funnel .md4u-ct-panel th, .md4u-funnel .md4u-ct-panel td { border: 1px solid rgba(1, 22, 39, .25); padding: 5px 8px; text-align: left; vertical-align: top; }
.md4u-funnel .md4u-ct-panel th { background: rgba(1, 22, 39, .06); }
.md4u-funnel .md4u-ct-incomplete { font-weight: 700; }
.md4u-funnel .md4u-ct-err { font-size: 11px; color: #5A6770; white-space: pre-wrap; }
.md4u-funnel .md4u-ct-version { font-size: 12px; color: #5A6770; margin: 12px 0 0; }

/* sign + pay */.md4u-funnel .md4u-ck-sign { display: grid; gap: 16px; }
.md4u-funnel .md4u-ck-check { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; color: #1c2b36; align-items: flex-start; }
.md4u-funnel .md4u-ck-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #FE7F2D; flex-shrink: 0; }
.md4u-funnel .md4u-signature { font-style: italic; font-family: "Segoe Script", "Bradley Hand", cursive, Arial, sans-serif; font-size: 20px; }
.md4u-funnel .md4u-ck-pay { width: 100%; }
/* Stripe embedded checkout needs ROOM. Stripe renders its own two-column layout
   (branded summary panel + card form) and squashes badly inside the 760px
   question-step shell — it read as cramped/untrustworthy (Mitch, 25 Aug 2026).
   Wide shell + real vertical breathing room on the pay step only.
   NOTE: the summary panel's colour is Stripe's own branding
   (Stripe Dashboard > Settings > Branding), not our CSS. */
.md4u-funnel .md4u-fwrap:has(.md4u-stripe-mount) { max-width: 1120px; }
.md4u-funnel .md4u-fwrap:has(.md4u-stripe-mount) .md4u-fh1 { margin-bottom: 6px; }
.md4u-funnel .md4u-stripe-mount { min-height: 620px; margin: 32px 0 80px; }
@media (max-width: 900px) {
  .md4u-funnel .md4u-stripe-mount { margin: 24px 0 56px; }
}
.md4u-funnel .md4u-testbanner {
  background: #ffedd5;
  border: 2px solid #fdba74;
  color: #9a3412;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 14px;
  text-align: center;
  margin-bottom: 20px;
}
.md4u-funnel .md4u-testbanner code { font-family: ui-monospace, monospace; }

/* ------------------------------------------------------------ thank-you */.md4u-funnel .md4u-fwrap--thanks { max-width: 640px; text-align: center; padding-top: 96px; }
.md4u-funnel .md4u-thanks-card {
  background: #fff;
  border: 3px solid #011627;
  border-radius: 14px;
  padding: 44px 34px;
  box-shadow: 10px 10px 0 #2DE1FC;
}
.md4u-funnel .md4u-thanks-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #011627;
  background: #d9f7e6;
  color: #0f7a45;
  margin-bottom: 18px;
}
.md4u-funnel .md4u-fh1--thanks { font-size: clamp(26px, 4vw, 38px); }
.md4u-funnel .md4u-thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ------------------------------------------------------------ responsive */.md4u-funnel @media (max-width: 1080px) {
  .md4u-funnel .md4u-ck-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .md4u-funnel .md4u-fwrap { text-align: center; }
  .md4u-funnel .md4u-choices, .md4u-funnel .md4u-choice, .md4u-funnel .md4u-upsell { text-align: left; }
  .md4u-funnel .md4u-hub-grid, .md4u-funnel .md4u-tier-grid { grid-template-columns: 1fr 1fr; }
  .md4u-funnel .md4u-ck-layout { grid-template-columns: 1fr; }
  .md4u-funnel .md4u-ck-summary { position: static; order: -1; }
  .md4u-funnel .md4u-ck-main, .md4u-funnel .md4u-ck-card { text-align: left; }
}
@media (max-width: 620px) {
  .md4u-funnel .md4u-fwrap { padding: 44px 20px 64px; }
  .md4u-funnel .md4u-hub-grid, .md4u-funnel .md4u-tier-grid, .md4u-funnel .md4u-ck-grid { grid-template-columns: 1fr; }
  .md4u-funnel .md4u-fcontrols { flex-direction: row; }
  .md4u-funnel .md4u-btn { min-height: 50px; padding: 10px 20px; }
}

/* ------------------------------------------------------- quick fill (test)
   Logged-in editors ONLY (server-gated via MD4U_FUNNEL.quickFill +
   body.md4u-quickfill — see md4u-funnel.php, Mitch 24 Aug 2026). A tiny
   muted dashed pill, top-right of the wizard area, deliberately NOT part of
   the public design. Anonymous visitors never receive the markup. */
main.md4u-funnel { position: relative; }
.md4u-funnel button.md4u-qf {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 40;
  padding: 5px 12px;
  border: 1px dashed rgba(1, 22, 39, .35);
  border-radius: 99px;
  background: rgba(255, 255, 255, .72);
  color: #5A6770;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: none;
}
.md4u-funnel button.md4u-qf:hover { color: #011627; border-color: #011627; }
