/* Isolated feature picker. Never reuse the phone mockup's .chip class.
   Verify changes with: node --test tests/demo-form.test.cjs */
#lead-form .demo-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
}
#lead-form .demo-feature {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  font-size: .875rem;
  cursor: pointer;
}
/* Visually hidden; still keyboard accessible and included in native FormData. */
#lead-form .demo-feature input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#lead-form .demo-feature > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: border-color .15s, background-color .15s, color .15s;
}
#lead-form .demo-feature > span::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 5px;
  background: var(--paper);
}
#lead-form .demo-feature:hover > span { border-color: var(--gold); }
#lead-form .demo-feature input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  color: var(--accent);
}
#lead-form .demo-feature input:checked + span::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--paper);
}
#lead-form .demo-feature input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  #lead-form .demo-features { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #lead-form .demo-feature > span { transition: none; }
}
