/* ==========================================================================
   Funded Assets — lead form + qualification quiz
   (uses the tokens defined in styles.css)
   ========================================================================== */

html.lf-lock, html.lf-lock body { overflow: hidden; }

/* ---------- Contact form (inline + overlay) ---------- */
.lf-form { display: grid; gap: 16px; }
.lf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .lf-grid2 { grid-template-columns: 1fr; } }
.lf-field { display: grid; gap: 7px; min-width: 0; }
.lf-field label { font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.lf-field input, .lf-phone {
  width: 100%; min-height: 54px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--white); color: var(--ink); font: inherit; font-size: 17px; letter-spacing: -0.01em;
  transition: border-color .2s, box-shadow .2s;
}
.lf-field input { padding: 0 16px; }
.lf-field input::placeholder { color: #9A97A0; }
.lf-field input:hover { border-color: rgba(35, 31, 32, .38); }
.lf-field input:focus, .lf-phone:focus-within { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-14); }
.lf-field input[aria-invalid="true"] { border-color: var(--neg); }
.lf-phone { display: flex; align-items: stretch; overflow: hidden; padding: 0; }
.lf-phone .lf-cc { display: grid; place-items: center; padding: 0 14px; background: var(--paper); border-right: 1.5px solid var(--line); font-family: var(--display); font-weight: 500; color: var(--ink-2); }
.lf-phone input { border: 0; border-radius: 0; min-height: 51px; box-shadow: none !important; }
.lf-phone:has(input[aria-invalid="true"]) { border-color: var(--neg); }
.lf-err { font-size: 13.5px; color: var(--neg); min-height: 0; }
.lf-err:empty { display: none; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 12.5px; line-height: 1.5; color: var(--text-3); cursor: pointer; }
.lf-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.lf-consent a { color: var(--text-2); }
.lf-submit { min-height: 60px; font-size: 18px; margin-top: 4px; }
.lf-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.lf-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.lf-trust svg { color: var(--blue); }

/* ---------- Overlay shell ---------- */
.lf-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: grid; grid-template-rows: auto 1fr; opacity: 0; transition: opacity .25s var(--ease);
}
.lf-overlay[hidden] { display: none; }
.lf-overlay.lf-in { opacity: 1; }
.lf-top {
  position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px;
  padding: 14px max(var(--gutter), calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--line); background: rgba(247, 247, 247, .9);
}
.lf-logo img { width: 150px; height: auto; }
.lf-progress { min-width: 0; }
.lf-bar { height: 6px; border-radius: 6px; background: var(--card); overflow: hidden; }
.lf-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 6px; transition: width .6s var(--ease); }
.lf-pct { display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.lf-pct b { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; color: var(--blue); min-width: 3.2ch; text-align: right; }
.lf-count { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--text-3); }
.lf-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s; }
.lf-close:hover { background: var(--paper-2); transform: rotate(90deg); }
@media (max-width: 640px) {
  .lf-top { grid-template-columns: 1fr auto auto; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .lf-logo img { width: 124px; }
  .lf-progress { grid-column: 1 / -1; grid-row: 2; }
  .lf-count { display: none; }
}
.lf-ended .lf-progress, .lf-ended .lf-pct { visibility: hidden; }

.lf-stage { position: relative; z-index: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: clamp(28px, 6vh, 72px) var(--gutter) 64px; }
.lf-step { width: 100%; max-width: 680px; margin: 0 auto; display: grid; gap: 26px; }
.lf-enter-f { animation: lfIn .45s var(--ease) both; }
.lf-enter-b { animation: lfInB .45s var(--ease) both; }
@keyframes lfIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lfInB { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Step content ---------- */
.lf-head { display: grid; gap: 14px; }
.lf-head h2, .lf-done h2, .lf-loading h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; outline: none; }
.lf-head h2 em, .lf-done h2 em { font-style: normal; color: var(--blue); }
.lf-sub { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 58ch; }

.lf-options { display: grid; gap: 10px; }
.lf-options.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .lf-options.cols2 { grid-template-columns: 1fr; } }
.lf-opt {
  display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; gap: 14px; text-align: left; width: 100%;
  min-height: 64px; padding: 12px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--white);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.lf-opt:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(35, 76, 240, .6); }
.lf-opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.lf-key { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-weight: 500; font-size: 14px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); transition: background-color .15s, color .15s; }
.lf-txt { display: grid; gap: 2px; min-width: 0; }
.lf-txt span { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; line-height: 1.25; }
.lf-txt small { font-size: 13.5px; color: var(--text-3); line-height: 1.35; }
.lf-tick { color: var(--blue); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.lf-opt.sel { border-color: var(--blue); background: #F2F5FF; box-shadow: 0 0 0 1px var(--blue) inset; }
.lf-opt.sel .lf-key { background: var(--blue); color: var(--white); border-color: var(--blue); }
.lf-opt.sel .lf-tick { opacity: 1; transform: none; }

.lf-other { display: grid; gap: 8px; }
.lf-other label { font-family: var(--display); font-weight: 500; font-size: 14px; }
.lf-other input { min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font: inherit; font-size: 17px; background: var(--white); }
.lf-other input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-14); }

.lf-textform { display: grid; gap: 22px; }
.lf-textform input { font-size: 20px; min-height: 62px; }

.lf-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lf-nav-end { justify-content: flex-start; flex-wrap: wrap; }
.lf-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--text-2); }
.lf-back:hover { color: var(--ink); }
.lf-kbd { font-size: 12.5px; color: var(--text-3); margin-top: -10px; }
.lf-kbd kbd { font-family: var(--display); font-weight: 500; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--white); }
@media (hover: none) { .lf-kbd { display: none; } }

/* loading */
.lf-loading { display: grid; justify-items: center; text-align: center; gap: 18px; padding-top: 8vh; }
.lf-spin { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--card); border-top-color: var(--blue); animation: lfSpin .9s linear infinite; }
@keyframes lfSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lf-spin { animation-duration: 3s; } .lf-enter-f, .lf-enter-b { animation: none; } }

/* done / dq */
.lf-done { display: grid; gap: 18px; }
.lf-done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.lf-done-ic svg { width: 30px; height: 30px; }
.lf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lf-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.lf-list svg { color: var(--blue); }
.lf-dq .eyebrow { color: var(--text-3); }

/* calendar */
.lf-cal { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.lf-cal iframe { display: block; width: 100%; height: min(720px, 75vh); border: 0; }

/* ---------- apply.html ---------- */
.apply-top { padding: 18px 0; border-bottom: 1px solid var(--line); }
.apply-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.apply-top img { width: 160px; height: auto; }
.apply-top a.back { font-size: 14px; color: var(--text-2); text-decoration: none; }
.apply-top a.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.apply-hero { padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1020px) { .apply-grid { grid-template-columns: 1fr; } }
.apply-copy { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.apply-copy h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.apply-copy h1 .line2 { display: block; color: var(--text-2); }
.apply-copy h1 .line2 .hl { color: var(--blue); }
.apply-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.apply-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: 17px; }
.apply-checks .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.apply-checks svg { width: 15px; height: 15px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-blue); overflow: hidden; }
.form-card-head { padding: 22px 26px; background: var(--ink); color: var(--on-dark); display: grid; gap: 6px; }
.form-card-head .eyebrow { color: var(--yellow); }
.form-card-head h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.035em; }
.form-card-body { padding: 24px 26px 26px; }
@media (max-width: 520px) { .form-card-head, .form-card-body { padding-left: 18px; padding-right: 18px; } }
.next-steps { counter-reset: n; }
.apply-foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.apply-foot .wrap { display: grid; gap: 10px; }
.apply-foot a { color: var(--text-2); }
