/* Contractor Risk Check. Scoped to .fmc so nothing leaks into the rest of the site.
   FM side of the design system: orange leads, navy text, paper surfaces. */
body { background: var(--paper); }
.fmnav .nav-bar { gap: 14px; }
.tag-orange { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--orange-tint); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.fmnav .home { margin-left: auto; color: var(--on-navy-body); font-size: 14px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fmnav .home:hover { color: var(--white); }
.fmfoot { padding: 28px 20px 40px; text-align: center; font-size: 13px; color: var(--ink-muted, #5a6690); }

.fmc { --line: #dfe4f2; font-family: var(--font); color: var(--navy); min-height: calc(100svh - 68px); }
.fmc *, .fmc *::before, .fmc *::after { box-sizing: border-box; }
.fmc .wrap { max-width: 720px; margin: 0 auto; padding: 28px 16px 56px; }
@media (min-width: 900px) { .fmc .wrap { padding: 56px 20px 88px; } }
.fmc h1, .fmc h2, .fmc h3, .fmc p { margin: 0; }
.fmc [data-focus]:focus, .fmc #qh:focus { outline: none; }
.fmc .overline { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.fmc .h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-top: 12px; }
.fmc .body { font-size: 16px; line-height: 1.6; }
.fmc .muted { color: #5a6690; }
.fmc .rv { margin-left: 6px; font-size: 12px; font-weight: 700; color: #8e5c06; background: #f6f0e6; border-radius: 4px; padding: 0 .3em; }

@keyframes fmc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fmc .step { animation: fmc-in .22s ease-out both; }
@media (prefers-reduced-motion: reduce) { .fmc .step, .fmc * { animation: none !important; transition: none !important; } }

.fmc .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--orange); color: var(--navy); font: 800 16px var(--font); cursor: pointer; text-decoration: none; transition: transform .1s; }
.fmc .btn-primary:hover { filter: brightness(.96); }
.fmc .btn-primary:active { transform: scale(.99); }
.fmc .btn-primary:disabled { opacity: .6; cursor: default; }
.fmc .btn-full { width: 100%; }
.fmc .link { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; font: 700 14px var(--font); color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fmc :is(button, a, input, select):focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.fmc .lede { font-size: 18px; line-height: 1.55; margin-top: 18px; }
.fmc .start-bar { margin-top: 28px; }
.fmc .start-bar .note { font-size: 14px; font-weight: 600; color: #5a6690; margin-bottom: 12px; }

.fmc .qtop { display: flex; align-items: center; gap: 14px; }
.fmc .back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #c9d1e8; background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.fmc .back svg { width: 20px; height: 20px; }
.fmc .bar { flex: 1; height: 8px; border-radius: 99px; background: #dfe4f2; overflow: hidden; }
.fmc .bar i { display: block; height: 100%; border-radius: 99px; background: var(--orange); transition: width .3s ease; }
.fmc .count { font-size: 13px; font-weight: 700; color: #5a6690; white-space: nowrap; }
.fmc .qtext { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 28px; }
.fmc .opts { display: grid; gap: 10px; margin-top: 24px; }
.fmc .opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px; border-radius: 14px; border: 1px solid #c9d1e8; background: var(--white); color: var(--navy); font: 700 16px/1.4 var(--font); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.fmc .opt::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid #8792b7; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fmc .opt:hover { border-color: var(--orange); }
.fmc .opt:active { transform: scale(.995); }
.fmc .opt[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-tint); }
.fmc .opt[aria-pressed="true"]::before { border-color: var(--orange-deep); box-shadow: inset 0 0 0 4px #fff; background: var(--orange-deep); }
.fmc .hint { margin-top: 16px; font-size: 14px; color: #5a6690; }

.fmc .beat { display: grid; place-items: center; min-height: 50svh; text-align: center; padding: 0 16px; }
.fmc .beat h2 { font-size: 24px; font-weight: 800; }
.fmc .beat .bar { width: 220px; margin: 20px auto 0; }
.fmc .beat .bar i { width: 0; animation: fmc-fill 1.1s ease-out forwards; }
@keyframes fmc-fill { to { width: 100%; } }

/* result */
.fmc .gaps-title { margin-top: 36px; font-size: 22px; font-weight: 800; }
.fmc .gaps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.fmc .gap { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fmc .gap h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.fmc .gap p + p { margin-top: 8px; }
.fmc .gap p { font-size: 15px; line-height: 1.5; }
.fmc .gap b { display: inline-block; min-width: 4.6em; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.fmc .lead { margin-top: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; display: grid; gap: 6px; }
.fmc .lead h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.fmc .lead label { font-size: 13px; font-weight: 700; margin-top: 8px; }
.fmc .lead input, .fmc .lead select { min-height: 48px; padding: 0 14px; border: 1px solid #c9d1e8; border-radius: 12px; font: 600 16px var(--font); color: var(--navy); background: var(--white); }
.fmc .lead button[type=submit] { margin-top: 16px; }
.fmc .lead [data-msg] { min-height: 1.5em; margin-top: 8px; font-size: 14px; font-weight: 600; }
.fmc .lead [data-msg].err { color: var(--pink-deep); }
.fmc .talk { margin-top: 18px; font-size: 15px; }
.fmc .talk a { color: var(--navy); font-weight: 700; }

/* visually hidden h1 on steps that have no visible one */
.fmc .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fmc .sent h3 { margin: 0; }
@media (max-width: 520px) { .fmnav .hide-sm { display: none; } }

/* result: board and gaps side by side on desktop */
@media (min-width: 900px) {
  .fmc .wrap-wide { max-width: 1040px; }
  .fmc .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .fmc .cols .gaps-title, .fmc .cols .onb-title { margin-top: 24px; }
  .fmc .lead, .fmc .talk { max-width: 720px; }
}
.fmc .link + .link { margin-left: 20px; }

/* game plan */
.fmc .plan-head { margin-top: 12px; }
.fmc .gap .donow { background: var(--orange-tint); border-radius: 10px; padding: 10px 12px; }
.fmc .gap .donow b { color: var(--navy); }
.fmc .onb-title { margin-top: 36px; font-size: 22px; font-weight: 800; }
.fmc .onb-intro { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #5a6690; }
.fmc .steps { list-style: none; padding: 0; margin: 20px 0 0; }
.fmc .step-item { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.fmc .step-item:last-child { padding-bottom: 0; }
.fmc .step-item::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--orange-tint); }
.fmc .step-item:last-child::before { display: none; }
.fmc .step-item .num { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.fmc .step-item h4 { margin: 4px 0 4px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.fmc .step-item p { font-size: 15px; line-height: 1.5; margin: 0; }
.fmc .chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fmc .chip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: var(--orange-tint); color: var(--navy); }
.fmc .step-item .step-note { margin-top: 8px; font-size: 13px; color: #5a6690; }
.fmc .onb-close { margin-top: 14px; font-size: 14px; color: #5a6690; }

.fmc .step-item p + p { margin-top: 8px; }
.fmc .step-item .fixes { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
