/* J3U Free Lead-Magnet opt-in pages — shared page-level styles.
   Imports j3.css (tokens + header + buttons + form components).
   All form components (fl, pillset, seg, hub-err, hub-fine, field-label, field-optional)
   are already defined in the homepage styles and the shared j3.css. */

/* ---- hero layout: left form + right aside ---- */
.fm-hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }

.fm-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

/* ---- left column ---- */
.fm-left h1 {
  font-size: clamp(1.8rem, 1rem + 2.8vw, 2.8rem);
  line-height: 1.14;
  margin: 14px 0 0;
}
.fm-left .uline { margin: 18px 0 20px; }
.fm-subhead {
  font-size: 1.1rem;
  color: #34373d;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 540px;
}

/* ---- step container ---- */
.fm-step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.fm-stepind { display: flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fm-stepind .dot { width: 18px; height: 4px; border-radius: 4px; background: var(--line); }
.fm-stepind .dot.on { background: var(--red); }
.fm-step h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 6px; }
.fm-sub { font-size: .92rem; color: var(--muted); margin-bottom: 22px; line-height: 1.55; }

/* ---- form layout (imports .fl, .pillset, .seg, .hub-err, .hub-fine from j3.css/styles.css) ---- */
.fm-form { display: grid; gap: 18px; }
.fm-form .btn { width: 100%; justify-content: center; padding: 15px 28px; }

/* re-declare floating label + form elements here so they work without the modal parent */
.fl { position: relative; }
.fl input {
  width: 100%; font-family: var(--font-body); font-size: .97rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 20px 14px 8px; outline: none; transition: .2s;
}
.fl label { position: absolute; left: 14px; top: 13px; font-family: var(--font-head); font-size: .95rem; color: #9aa0aa; pointer-events: none; transition: .16s; }
.fl input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(211,30,3,.08); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 7px; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.fl.invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(211,30,3,.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { font-family: var(--font-head); font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; display: block; }
.field-optional { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* segmented controls */
.seg { display: grid; grid-template-columns: repeat(3,1fr); background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 11px; padding: 4px; gap: 4px; }
.seg.seg-2 { grid-template-columns: repeat(2,1fr); }
.seg label { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--muted); padding: 11px 6px; border-radius: 8px; cursor: pointer; transition: .16s; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:hover { color: var(--ink); }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.invalid { border-color: var(--red); }

/* pill radio group */
.pillset { display: grid; gap: 9px; }
.pillset label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 15px; cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--ink); transition: .16s; }
.pillset input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.pillset label:hover { border-color: var(--red); background: var(--bg-tint); }
.pillset label:has(input:checked) { border-color: var(--red); background: var(--bg-tint); font-weight: 600; }
.pillset.invalid label { border-color: var(--red); }

/* error + fine print */
.hub-err { display: none; color: var(--red); font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin: -2px 0 0; }
.hub-err.show { display: block; }
.hub-fine { font-size: .78rem; color: var(--muted); margin: 2px 0 0; text-align: center; }
.hub-fine a { color: var(--red); text-decoration: underline; }

/* ---- success state ---- */
.fm-success { text-align: center; padding: 28px 24px; }
.fm-success .check-ring {
  width: 64px; height: 64px; border-radius: 50%; background: var(--red);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
  box-shadow: 0 10px 28px -10px rgba(211,30,3,.5);
}
.fm-success .check-ring svg { width: 30px; height: 30px; color: #fff; }
.fm-success h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--ink); }
.fm-success > p { font-size: 1rem; color: #34373d; margin: 0 auto 22px; max-width: 440px; line-height: 1.6; }
.fm-dl-btn { display: inline-flex; width: auto; margin: 0 auto 28px; font-size: 1.05rem; }
.fm-success-secondary { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.fm-success-secondary p { font-size: .92rem; color: var(--muted); margin: 0 auto 16px; max-width: 400px; line-height: 1.6; }
.fm-success-secondary .btn { display: inline-flex; width: auto; }
.fm-support-note { font-size: .8rem; color: var(--muted); margin: 20px 0 0; }
.fm-support-note a { color: var(--red); text-decoration: underline; }

/* ---- right aside ---- */
.fm-aside {
  background: var(--ink-2, #1c1f26);
  color: #fff;
  border-radius: 26px;
  padding: clamp(28px, 3vw, 44px);
  position: sticky;
  top: 100px;
}
.fm-aside .a-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  background: rgba(255,255,255,.08); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.fm-aside h2 { color: #fff; font-size: clamp(1.15rem, .8rem + 1.1vw, 1.55rem); line-height: 1.22; margin-bottom: 14px; }
.fm-aside .a-lead { color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.6; margin-bottom: 22px; }
.hub-aside-list { list-style: none; padding: 0; margin: 0 0 0; display: grid; gap: 13px; }
.hub-aside-list li { display: flex; gap: 11px; align-items: flex-start; font-family: var(--font-head); font-size: .88rem; color: rgba(255,255,255,.9); line-height: 1.4; }
.hub-aside-list li svg { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; margin-top: 1px; }
.a-sign { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-head); font-size: .84rem; color: rgba(255,255,255,.6); }
.a-sign b { color: #fff; font-weight: 600; }

/* ---- trust strip ---- */
.fm-trust .fm-trust-inner {
  display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
}
.fm-trust-stat { text-align: center; padding: 16px 40px; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.stat-lab { display: block; font-size: .85rem; color: #34373d; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.fm-trust-div { width: 1px; height: 40px; background: var(--line); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .fm-layout { grid-template-columns: 1fr; }
  .fm-aside { position: static; }
  .fm-aside { order: -1; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .fm-trust-div { display: none; }
  .fm-trust-stat { padding: 12px 20px; }
}

/* --- Squeeze-page chrome: logo-only header + minimal legal footer (no nav) --- */
.fm-topbar { padding: 18px 0; background: #fff; border-bottom: 1px solid var(--line); }
.fm-topbar .wrap { display: flex; justify-content: center; }
.fm-logo { height: 38px; width: auto; display: block; }
.fm-minfoot { padding: 22px 0; background: #fff; border-top: 1px solid var(--line); }
.fm-minfoot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.fm-minfoot-links a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.fm-minfoot-links a:first-child { margin-left: 0; }
.fm-minfoot-links a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .fm-minfoot .wrap { flex-direction: column; gap: 8px; text-align: center; }
  .fm-minfoot-links a { margin: 0 9px; }
}

/* ---- personalized path block (post-onboarding, hub-path-block.js) ---- */
.hub-path { text-align: left; margin: 6px 0 4px; }
.hub-path p { margin: 0 0 10px; font-size: .95rem; line-height: 1.55; }
.hub-path .hub-path-lead { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.hub-path-goal { border: 1px solid var(--line, #e6e2dc); border-left: 3px solid var(--red); background: var(--bg-tint, #faf7f3); border-radius: 10px; padding: 14px 16px; margin: 14px 0 6px; }
.hub-path-goal h4 { margin: 0 0 8px; font-family: var(--font-head); font-size: .95rem; letter-spacing: .01em; }
.hub-path-goal p:last-child { margin-bottom: 0; }
