/* Fitted homepage v2: Claude's live home, tightened for the foundersmargin.com embed.
   Do not change colors, type, or layout structure — only spacing, motion, and embed chrome. */

.v2-preview{background:#7A5C18;color:#fff;text-align:center;padding:8px 16px;font-size:13.5px;font-weight:600}
.v2-preview a{color:#fff}

/* Compact spacing so Margin Makers + the pricing ladder aren't cut off in the iframe */
.home-v2 .hero-home{padding-bottom:40px}
.home-v2 .sec{padding:clamp(36px,5.5vw,72px) 0}
.home-v2 .g3,.home-v2 .g5{gap:14px}
.home-v2 .mm{padding:clamp(18px,3vw,32px);gap:22px}
.home-v2 .rung{padding:16px 14px}
.home-v2 .nav{padding-top:12px;padding-bottom:12px}

/* When this page is embedded on foundersmargin.com, hide the funnel nav so it doesn't stack under the Wix header */
html.fmm-embedded .v2-preview{display:none !important}
/* site.js wraps the funnel nav in a top-level <div class="dark"> that contains .nav */
html.fmm-embedded body.home-v2 > div.dark:has(.nav){display:none !important}

/* Sticky funnel nav on standalone visits (preview or later as the funnel home). Off when embedded. */
@media (min-width:701px){
  body.home-v2 > div.dark:has(.nav){position:sticky;top:0;z-index:40}
}

/* Hover lift on cards and boxes — only on devices that actually hover */
@media (hover:hover) and (pointer:fine){
  .home-v2 .prob,
  .home-v2 .rung,
  .home-v2 .lib a,
  .home-v2 .mm,
  .home-v2 .g3 > div,
  .home-v2 .btn{
    transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  }
  .home-v2 .prob:hover,
  .home-v2 .rung:hover,
  .home-v2 .lib a:hover,
  .home-v2 .g3 > div:hover{
    transform:translateY(-4px) scale(1.015);
    box-shadow:0 14px 28px -14px rgba(0,0,0,.5);
  }
  .home-v2 .btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px rgba(0,0,0,.45)}
}

/* Scroll fade/slide — applied by home-v2.js only when motion is allowed */
.home-v2 .fmm-reveal{opacity:0;transform:translateY(18px)}
.home-v2 .fmm-reveal.is-in{opacity:1;transform:none;transition:opacity .55s ease, transform .55s ease}

/* Back to top */
.fmm-top{
  position:fixed;right:18px;bottom:22px;z-index:80;
  width:48px;height:48px;border:0;border-radius:3px;
  background:var(--gold);color:var(--ink);cursor:pointer;
  font:700 13px var(--sans);letter-spacing:.02em;
  box-shadow:0 8px 20px -8px rgba(0,0,0,.55);
  opacity:0;transform:translateY(8px);pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.fmm-top.is-on{opacity:1;transform:none;pointer-events:auto}
.fmm-top:hover{transform:translateY(-2px)}
.fmm-top svg{display:block;margin:0 auto 1px}

/* Reduced motion: no movement, no delayed visibility */
@media (prefers-reduced-motion:reduce){
  .home-v2 .prob,
  .home-v2 .rung,
  .home-v2 .lib a,
  .home-v2 .g3 > div,
  .home-v2 .btn,
  .home-v2 .fmm-reveal,
  .fmm-top{transition:none !important;transform:none !important}
  .home-v2 .fmm-reveal{opacity:1}
  html{scroll-behavior:auto}
}

/* Embed: slightly tighter still */
html.fmm-embedded .home-v2 .sec{padding:clamp(28px,4.5vw,56px) 0}
html.fmm-embedded .home-v2 .hero-home{padding-bottom:28px}
html.fmm-embedded .fmm-top{bottom:20px;right:16px}

@media (max-width:700px){
  /* style.css hides every nav link but the first under 700px; show them all, wrapped, for easier phone navigation */
  .home-v2 .nav{align-items:flex-start;flex-wrap:wrap}
  .home-v2 .nav nav{width:100%;gap:10px 14px}
  .home-v2 .nav nav a:not(:first-child){display:inline-flex !important}
}

/* Official FMM mark + wordmark in the funnel nav (standalone; hidden when embedded).
   Horizontal-with-tagline lockup is too tall for this bar and makes the name unreadably small. */
.home-v2 .nav a.logo{gap:10px;align-items:center}
.home-v2 .nav a.logo img{width:auto;display:block}
.home-v2 .nav a.logo .logo-mark{height:42px}
.home-v2 .nav a.logo .logo-name{height:34px;max-width:min(240px,58vw)}
@media (max-width:700px){
  .home-v2 .nav a.logo{gap:8px}
  .home-v2 .nav a.logo .logo-mark{height:32px}
  .home-v2 .nav a.logo .logo-name{height:26px}
}

/* When embedded on foundersmargin.com, hide the funnel footer (stripe + band)
   so the Classic site footer is the only one. Also collapse leftover bottom space. */
html.fmm-embedded footer,
html.fmm-embedded .stripe:has(+ footer){
  display:none !important;
}
html.fmm-embedded,
html.fmm-embedded body,
html.fmm-embedded #main{
  min-height:0 !important;
  height:auto !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}