/* Software needs checklist (needs.html). Loaded after site.css. */
.needs-section { padding-top: clamp(8px, 2vw, 24px); }
.needs-wrap { max-width: 980px; }
.needs-card { margin-top: 18px; }

/* Progress (sticky below the site header) */
.needs-progress { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; padding: 12px 18px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-accent); background: rgba(10, 16, 32, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.np-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; margin-bottom: 8px; }
.np-top .muted { margin: 0; }
.np-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width .3s var(--ease); }
.np-steps { display: flex; gap: 6px 18px; flex-wrap: wrap; list-style: none; margin: 10px 0 0; padding: 0; font-size: .85rem; }
.np-steps a { color: var(--muted); text-decoration: none; padding: 4px 0; display: inline-block; }
.np-steps a:hover, .np-steps a:focus-visible { color: #fff; text-decoration: underline; }
.np-steps a.is-done { color: var(--accent-hi); }
.np-steps a.is-done::after { content: " \2713"; }
.np-steps a.is-current { color: #fff; font-weight: 600; }

/* Sections and groups */
.needs-sec, .needs-group, .choice-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.needs-sec { padding: 0 0 clamp(24px, 3vw, 36px); margin-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 130px); }
.needs-sec > legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.6rem)/1.2 var(--font-head); float: left; width: 100%; }
.needs-sec > legend + * { clear: both; }
.sec-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(79, 140, 255, .18); border: 1px solid var(--line-accent); color: var(--accent-hi); font-size: 1rem; flex: none; }
.needs-group { margin-bottom: 28px; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.needs-group > legend { padding: 0 8px; margin-left: -8px; font: 600 1.08rem/1.3 var(--font-head); }
.grp-count { margin-left: 8px; font: 500 .8rem/1 var(--font-body); color: var(--accent-hi); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: .95rem; line-height: 1.35; transition: border-color .15s, background-color .15s; }
.check:hover { border-color: rgba(255, 255, 255, .34); }
.check:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, .28); }
.check:has(input:checked) { border-color: var(--accent); background: rgba(79, 140, 255, .14); }
.check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--accent); box-shadow: none; }
.check input:focus { box-shadow: none; background: transparent; }
.add-field { margin-bottom: 0; }
.choice-set { margin-bottom: 22px; }
.choice-set > legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 10px; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }

/* Results */
.needs-results:focus { outline: none; }
.needs-results h2 { margin-bottom: .4em; }
.needs-results h3 { margin: 1.6em 0 .5em; font-size: 1.15rem; }
.res-tier { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line-accent); background: rgba(79, 140, 255, .1); margin-top: 22px; }
.res-tier .eyebrow { margin: 0 0 .3em; }
.res-tier-name { margin: 0; font: 700 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.1 var(--font-head); color: #fff; }
.res-tier .muted { margin: .5em 0 0; }
.res-list { margin: 0; padding-left: 1.2em; color: var(--muted); }
.res-list li { margin-bottom: .55em; }
.res-list strong { color: var(--text); }

@media (max-width: 720px) {
  .needs-progress { top: calc(var(--header-h) + 4px); padding: 10px 14px 8px; }
  .np-steps { display: none; }
  .needs-sec { scroll-margin-top: calc(var(--header-h) + 70px); }
  .needs-group { padding: 14px 12px; }
  .check-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .np-bar i { transition: none; } }
